:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-light: #e2e8f0;
    --muted: #94a3b8;
    --primary: #22c55e;
    --primary-hover: #16a34a;
    --border: rgba(255, 255, 255, 0.08);
    --card: rgba(255, 255, 255, 0.05);
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    --radius: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

a {
    text-decoration: none;
}

.container {
    width: min(92%, var(--container));
    margin: 0 auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

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

.nav a {
    color: #e5e7eb;
    font-weight: 600;
    transition: 0.25s ease;
}

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

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px 0;
    background: #fff;
    border-radius: 10px;
}

.section-dark {
    background: linear-gradient(180deg, var(--bg-dark), var(--bg-darker));
    color: var(--text-light);
}

.section-light {
    background: var(--bg-light);
}

.section-accent {
    background: linear-gradient(180deg, #111827, #0f172a);
    color: var(--text-light);
}

.hero {
    padding: 90px 0 70px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.eyebrow,
.section-tag {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.82rem;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-description {
    max-width: 640px;
    color: #cbd5e1;
    margin-bottom: 28px;
    font-size: 1.05rem;
}

.hero-image img {
    min-height: 460px;
    box-shadow: var(--shadow);
}

.hero-actions,
.contact-actions,
.social-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn,
.social-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.25s ease;
}

.btn-primary {
    background: var(--primary);
    color: #04130a;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.social-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.social-pill:hover {
    background: rgba(255, 255, 255, 0.14);
}

.about,
.featured,
.contact {
    padding: 90px 0;
}

.two-columns,
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}

.image-card img {
    min-height: 420px;
    box-shadow: var(--shadow);
}

.content-card h2,
.section-head h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.15;
    margin-bottom: 18px;
}

.content-card p,
.section-head p {
    color: #475569;
    margin-bottom: 14px;
}

.section-accent .section-head p,
.section-accent .timeline-item p {
    color: #cbd5e1;
}

.center {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px;
}

.stats {
    padding: 90px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 50px;
}

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

.stat-card h3 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-card p {
    color: #dbeafe;
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: var(--radius);
}

.timeline-year {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
}

.timeline-item h4 {
    margin-bottom: 8px;
}

blockquote {
    margin-top: 18px;
    padding: 18px 20px;
    border-left: 4px solid var(--primary);
    background: #eefbf2;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
}

.gallery {
    padding: 90px 0;
}

.gallery-grid {
    column-count: 2;
    column-gap: 1.5rem;
}

@media (min-width: 980px) {
    .gallery-grid {
        column-count: 3;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
    filter: grayscale(20%) brightness(0.85);
}

.gallery-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -15px rgba(34, 197, 94, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(1.05);
}

/* Efecto de máscara suave en el hover */
.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

.gallery-item:hover::after {
    opacity: 0.8;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    animation: zoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    font-weight: 200;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}

.lightbox-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.contact-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 36px;
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.btn-facebook {
    background: #1877f2;
    color: #fff;
}

.btn-facebook:hover {
    transform: translateY(-2px);
}

.btn-instagram {
    color: #fff;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.btn-instagram:hover {
    transform: translateY(-2px);
}

.footer {
    background: var(--bg-darker);
    color: #cbd5e1;
    padding: 24px 0;
    border-top: 1px solid var(--border);
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 980px) {

    .hero-grid,
    .two-columns,
    .featured-grid,
    .contact-box,
    .stats-grid,
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-grid,
    .two-columns,
    .featured-grid,
    .contact-box {
        display: grid;
    }

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

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

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        background: rgba(2, 6, 23, 0.98);
        border-top: 1px solid var(--border);
        display: none;
        flex-direction: column;
        padding: 20px;
    }

    .nav.active {
        display: flex;
    }

    .hero,
    .about,
    .stats,
    .featured,
    .gallery,
    .contact {
        padding: 72px 0;
    }

    .hero-grid,
    .two-columns,
    .featured-grid,
    .stats-grid,
    .gallery-grid,
    .contact-box {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: 26px;
    }

    .footer-wrap {
        flex-direction: column;
    }
}

.footer a {
    color: var(--primary);
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

/* Social Section Overlap */
.social-section {
    position: relative;
    z-index: 20;
    margin-top: -60px;
    padding-bottom: 30px;
}

.social-section .contact-box {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .social-section {
        margin-top: -40px;
    }
}

/* History List Styles */
.history-list {
    list-style: none;
    margin: 1.2rem 0;
}

.history-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: #475569;
}

.history-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 800;
}