/* ============================================
   V&H Consultores — Stylesheet
   ============================================ */

:root {
    --green-primary: #1B5E3B;
    --green-dark: #134A2E;
    --green-light: #2D8A4E;
    --gold: #C9A84C;
    --gold-light: #D4B76A;
    --gold-dark: #A88A3A;
    --bg: #FAFBFC;
    --bg-alt: #F0F4F1;
    --text: #1F2937;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --border: #E5E7EB;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.02);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: baseline;
    text-decoration: none;
    gap: 4px;
}

.logo-vh {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--green-primary);
    letter-spacing: -0.5px;
}

.logo-amp {
    color: var(--gold);
    font-size: 1.3rem;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--green-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    background: var(--white);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}

.lang-toggle:hover {
    border-color: var(--gold);
    background: var(--bg-alt);
}

.lang-flag {
    font-size: 1rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 50%, #0F3D26 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding-top: 80px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 32px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: var(--gold);
    font-style: italic;
    display: block;
    margin-top: 8px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--gold);
    color: var(--green-dark);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(201,168,76,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn-full {
    width: 100%;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
}

.section-header.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 16px;
    padding: 4px 0;
    border-bottom: 2px solid var(--gold);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--green-dark);
    line-height: 1.3;
}

.section-title .highlight {
    color: var(--green-primary);
    font-style: italic;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text .lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--green-dark);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.tag {
    padding: 8px 16px;
    background: var(--bg-alt);
    color: var(--green-primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(27,94,59,0.1);
    transition: var(--transition);
}

.tag:hover {
    background: var(--green-primary);
    color: var(--white);
}

.about-visual {
    position: relative;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-alt) 0%, #E8EDE9 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    gap: 12px;
}

.image-placeholder svg {
    opacity: 0.4;
}

.image-placeholder span {
    font-size: 0.85rem;
    font-weight: 500;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.stat {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================
   EXPERTISE
   ============================================ */
.expertise {
    background: var(--bg-alt);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.expertise-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gold);
    transition: var(--transition);
}

.expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.expertise-card:hover::before {
    height: 100%;
}

.expertise-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--green-primary);
    transition: var(--transition);
}

.expertise-card:hover .expertise-icon {
    background: var(--green-primary);
    color: var(--white);
}

.expertise-icon svg {
    width: 24px;
    height: 24px;
}

.expertise-card h3 {
    font-size: 1.1rem;
    color: var(--green-dark);
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.expertise-card ul {
    list-style: none;
}

.expertise-card li {
    font-size: 0.875rem;
    color: var(--text-light);
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.expertise-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
}

/* ============================================
   EXPERIENCE / TIMELINE
   ============================================ */
.experience {
    background: var(--white);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), var(--green-light));
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 4px;
    width: 18px;
    height: 18px;
    background: var(--white);
    border: 3px solid var(--gold);
    border-radius: 50%;
    z-index: 2;
    transition: var(--transition);
}

.timeline-item:hover .timeline-marker {
    background: var(--gold);
    transform: scale(1.2);
}

.timeline-content {
    background: var(--bg);
    padding: 28px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    box-shadow: var(--shadow);
    border-color: rgba(201,168,76,0.2);
}

.timeline-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--green-primary);
    background: rgba(27,94,59,0.08);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.timeline-content h3 {
    font-size: 1.15rem;
    color: var(--green-dark);
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   TEAM
   ============================================ */
.team {
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--white) 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.team-content .section-label {
    margin-bottom: 16px;
}

.team-content .section-title {
    margin-bottom: 24px;
}

.team-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.team-divider {
    height: 1px;
    background: var(--border);
    margin: 32px 0;
}

.presence h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 12px;
}

.presence p {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.presence-highlight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--green-primary);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.location-pin {
    font-size: 1.1rem;
}

.team-visual {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.team-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16/10;
}

.team-map {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.mozambique-map {
    width: 100%;
    height: auto;
    max-height: 200px;
}

.map-country {
    fill: #E8EDE9;
    stroke: var(--green-primary);
    stroke-width: 1.5;
}

.map-highlight {
    fill: var(--green-light);
    opacity: 0.7;
    stroke: var(--green-dark);
    stroke-width: 1;
}

.map-label {
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-weight: 600;
    fill: var(--white);
    pointer-events: none;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: var(--green-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.contact-info .section-label {
    color: var(--gold-light);
    border-bottom-color: var(--gold);
}

.contact-info .section-title {
    color: var(--white);
}

.contact-lead {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 90%;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-item strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green-primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(27,94,59,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #0F2E1E;
    color: rgba(255,255,255,0.7);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-vh {
    color: var(--white);
}

.footer-brand .logo-text {
    color: rgba(255,255,255,0.5);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-light);
    margin-bottom: 16px;
}

.footer-contact p {
    font-size: 0.875rem;
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.footer-domain {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem !important;
    color: var(--gold) !important;
    font-weight: 600;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about-grid,
    .team-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .hero-title {
        font-size: 2rem;
    }
}


/* ============================================
   UPDATES: Logo, Images, Gallery & Lightbox
   ============================================ */

/* Logo with image */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-img {
    height: 48px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.logo-img-small {
    height: 40px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    gap: 2px;
}

/* Hero with real background */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(19,74,46,0.92) 0%, rgba(27,94,59,0.88) 50%, rgba(15,61,38,0.95) 100%);
}

.about-image img,
.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-map img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

/* ============================================
   MEDIATECA / GALLERY
   ============================================ */
.mediateca {
    background: var(--white);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.gallery-filter {
    padding: 10px 24px;
    background: var(--bg-alt);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-filter:hover {
    border-color: var(--gold);
    color: var(--green-primary);
}

.gallery-filter.active {
    background: var(--green-primary);
    color: var(--white);
    border-color: var(--green-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: var(--transition);
}

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

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,46,30,0.92) 0%, rgba(15,46,30,0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gold);
    color: var(--green-dark);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    margin-bottom: 8px;
    width: fit-content;
}

.gallery-overlay p {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15,46,30,0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 40px;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.lightbox-nav:hover {
    background: var(--gold);
    color: var(--green-dark);
    border-color: var(--gold);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 0.95rem;
    text-align: center;
    background: rgba(0,0,0,0.4);
    padding: 8px 20px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    max-width: 80vw;
}

/* ============================================
   RESPONSIVE GALLERY
   ============================================ */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-filters {
        gap: 8px;
    }

    .gallery-filter {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-prev { left: 12px; }
    .lightbox-next { right: 12px; }

    .logo-img {
        height: 40px;
    }
}

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

    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(15,46,30,0.85) 0%, transparent 60%);
    }
}


/* FIX HERO BACKGROUND IMAGE */
.hero-bg.has-image {
    background-image: none !important;
}
.hero-bg.has-image::after {
    background: linear-gradient(135deg, rgba(19,74,46,0.88) 0%, rgba(27,94,59,0.82) 50%, rgba(15,61,38,0.9) 100%);
}

/* Ensure all images are visible */
.about-image,
.team-image {
    background: none !important;
}
.about-image img,
.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Image loading fallback */
img {
    background: var(--bg-alt);
}
