/* ============================================
   EL CHILAQUIL - About Page Styles
   ============================================ */

/* --- Founder Story --- */
.founder-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.founder-section-reverse {
    direction: rtl;
}

.founder-section-reverse > * {
    direction: ltr;
}

.founder-img {
    border-radius: var(--radius-lg);
    overflow: visible;
}

.founder-img > picture > img,
.founder-img > img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: var(--radius-lg);
}

.founder-img .photo-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 12px;
}

.founder-text .section-tag {
    margin-bottom: 12px;
}

.founder-text .section-title {
    margin-bottom: 20px;
}

.founder-text p {
    color: var(--text-body);
    margin-bottom: 16px;
    line-height: 1.8;
    font-size: 1.02rem;
}

.founder-text p.lead {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* --- Story Quote Divider --- */
.story-quote-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 64px 0;
    text-align: center;
}

.story-quote {
    max-width: 100%;
    margin: 0 auto;
}

.story-quote p {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    font-style: italic;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 12px;
}

.story-quote-intro {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: 0.03em;
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--primary);
    padding: 56px 0;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-top: 6px;
    font-weight: 500;
}

/* --- Values --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.value-card {
    text-align: center;
    padding: 40px 28px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(200, 56, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
}

.value-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Photo Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}


/* --- Responsive --- */
@media (max-width: 768px) {
    .founder-section {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .founder-section-reverse {
        direction: ltr;
    }

    .founder-img > picture > img,
    .founder-img > img,
    .founder-img img {
        height: 350px;
    }

    .story-quote p {
        font-size: 1.4rem;
    }

    .stats-grid {
        gap: 40px;
        flex-wrap: wrap;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item img {
        height: 200px;
    }

}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .founder-img > picture > img,
    .founder-img > img,
    .founder-img img {
        height: 260px;
    }

    .story-quote p {
        font-size: 1.1rem;
    }
}

/* ============================================
   PHOTO GALLERY LIGHTBOX
   ============================================ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.lightbox-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}
