/* ── Garet Font ─────────────────────────────────────────── */
@font-face {
    font-family: 'Garet';
    src: url('../assets/fonts/Garet-Book.woff2') format('woff2'),
         url('../assets/fonts/Garet-Book.woff')  format('woff'),
         url('../assets/fonts/Garet-Book.ttf')   format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Garet';
    src: url('../assets/fonts/Garet-Heavy.woff2') format('woff2'),
         url('../assets/fonts/Garet-Heavy.woff')  format('woff'),
         url('../assets/fonts/Garet-Heavy.ttf')   format('truetype');
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --dark-blue: #040e18;
    --darker-blue: #02070c;
    --green-accent: #4ab08b;
    --green-gradient: linear-gradient(90deg, #328770, #0c4a45);
    --light-gray: #f5f7f9;
    --text-white: #ffffff;
    --text-gray: #aab5c2;
    --text-dark: #111827;
    --text-muted: #6b7280;
    --blue-border: #4299e1;
    --yellow-border: #ecc94b;
    --success-color: rgba(40, 167, 69, 0.9);
    --error-color: rgba(220, 53, 69, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Garet', sans-serif;
}

html {
    scroll-behavior: smooth;
    /* Firefox scrollbar solo en el viewport principal */
    scrollbar-width: thin;
    scrollbar-color: #4ab08b #040e18;
}

body {
    background-color: var(--dark-blue);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Ocultar Scroll Nativo para usar el Flotante ─────────────────────────── */
::-webkit-scrollbar {
    width: 0px;
    display: none;
}
html {
    scrollbar-width: none; /* Firefox */
}

/* ── Dot Navigation (Scroll Spy) ─────────────────────────── */
.dot-navigation {
    position: fixed;
    top: 50%;
    right: 50px; /* Movido a la izquierda para evitar el corte del iframe */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999999;
}
.dot-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    padding: 5px 0;
}
.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid rgba(4, 14, 24, 0.6); /* Borde oscuro para fondos claros */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
.dot-nav-item:hover .dot {
    background-color: var(--green-accent);
    border-color: #040e18;
}
.dot-nav-item.active .dot {
    background-color: var(--green-accent);
    transform: scale(1.3);
    border-color: #040e18;
    box-shadow: 0 0 10px rgba(74, 176, 139, 0.6);
}
.dot-tooltip {
    position: absolute;
    right: 30px;
    background-color: #040e18;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid rgba(74, 176, 139, 0.3);
}
.dot-nav-item:hover .dot-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Utilities */
.section-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--green-accent);
    margin-bottom: 15px;
    font-weight: 600;
}
.text-center { text-align: center; }

/* Buttons */
.btn-nav {
    background: linear-gradient(90deg, #5aa970 0%, #1998c3 100%);
    color: white;
    padding: 9px 22px;
    border-radius: 4px;
    border: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.3s;
}
.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 152, 195, 0.35);
    opacity: 0.95;
}
.btn-nav:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(90deg, #5aa970 0%, #1998c3 100%);
    color: white;
    border: none;
    padding: 12px 22px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.3s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(25, 152, 195, 0.4);
    opacity: 0.95;
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-link {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 2px;
    transition: border-color 0.3s, color 0.3s, padding-left 0.3s;
}
.btn-link:hover {
    color: var(--green-accent);
    border-color: var(--green-accent);
    padding-left: 6px;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}
.btn-white {
    background-color: white;
    color: var(--dark-blue);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 30px;
}

/* Navbar */
.navbar {
    background-color: var(--dark-blue);
    padding: 14px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.btn-fullscreen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-gray);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 14px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.02);
}
.btn-fullscreen:hover {
    color: var(--text-white);
    border-color: var(--green-accent);
    background-color: rgba(74, 176, 139, 0.1);
    transform: translateY(-1px);
}
.btn-fullscreen svg {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn-fullscreen:hover svg {
    transform: scale(1.15);
}
.btn-fullscreen:active {
    transform: translateY(0);
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-badge {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--green-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--green-accent);
    flex-shrink: 0;
}
.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}
.logo-sub {
    font-size: 0.65rem;
    color: #8899a8;
    letter-spacing: 0.5px;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    color: #cbd5e1;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 4px;
    text-decoration: none;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--green-accent);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.nav-links a:hover {
    color: white;
}
.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark-blue);
    min-width: 210px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    display: none;
    z-index: 101;
    flex-direction: column;
    padding: 8px 0;
}
.nav-dropdown:hover .dropdown-menu {
    display: flex;
}
.dropdown-menu li {
    width: 100%;
}
.nav-links .dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    color: #cbd5e1;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
    white-space: nowrap;
}
.nav-links .dropdown-menu a::after {
    display: none;
}
.nav-links .dropdown-menu a:hover {
    background-color: rgba(255,255,255,0.08);
    color: white;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    min-height: auto;
    padding: 20px 60px; /* Reducido al mínimo para eliminar el espacio */
    background: 
        radial-gradient(ellipse at 25% 50%, #0c2021 0%, transparent 55%),
        radial-gradient(ellipse at 75% 50%, #051b28 0%, transparent 60%),
        #031019;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(74, 176, 139, 0.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero-content {
    flex: 1;
    z-index: 1;
    max-width: 480px;
}
.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    overflow: hidden;
    min-width: 0;
}
.hero-logo {
    height: calc(520px * 0.80);
    width: auto;
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 0 50px rgba(74, 176, 139, 0.3));
}
/* Congress info next to logo - no box */
.congress-box {
    text-align: left;
    padding: 10px 0;
}
.congress-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.congress-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: white;
    margin-bottom: 14px;
    text-transform: uppercase;
}
.congress-countries {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--green-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--green-accent);
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}
.hero-content h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 20px;
    font-weight: 700;
}
.hero-content h1 .highlight {
    color: #4ab0cf;
    display: block;
}
.hero-desc {
    font-size: 1.05rem;
    color: #b0c4d4;
    max-width: 360px;
    margin-bottom: 35px;
    line-height: 1.5;
}
.hero-date {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.date-large { 
    font-size: 2.6rem; 
    font-weight: 700; 
    color: var(--green-accent); 
    line-height: 1;
}
.date-small { 
    font-size: 0.78rem; 
    font-weight: 900; 
    line-height: 1.1; 
    color: white; 
    letter-spacing: 1.5px; 
    text-transform: uppercase;
}
.location-text { font-size: 0.8rem; color: #6b8599; margin-bottom: 35px; }
.hero-buttons { display: flex; gap: 15px; align-items: center; }

/* Stats Section */
.stats-section {
    background-color: #f4f6f8;
    color: var(--text-dark);
    border-top: 3px solid var(--green-accent);
}
.stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 50px;
}
.stats-top {
    display: flex;
    gap: 80px;
    margin-bottom: 50px;
    align-items: flex-start;
}
.stats-heading { flex: 1; }
.section-label-dark {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #4a9b8a;
    margin-bottom: 18px;
    font-weight: 600;
}
.stats-heading h2 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}
.stats-text {
    flex: 1;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.7;
}
.stats-text p { margin-bottom: 15px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #d1d5db;
    padding-top: 35px;
}
.stat-item {
    padding: 0 30px;
    border-right: 1px solid #d1d5db;
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }
.stat-item h3 {
    font-size: 2.2rem;
    color: #3b82a0;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.stat-item p {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #9ca3af;
    text-transform: uppercase;
}

/* Programa Section */
.programa-section {
    background-color: #071d2a;
}
.prog-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 40px 60px;
}
.prog-top {
    display: flex;
    gap: 60px;
    margin-bottom: 50px;
    align-items: flex-start;
}
.prog-heading { flex: 2; }
.prog-heading h2 {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.25;
    color: white;
    margin-top: 15px;
}
.prog-text {
    flex: 1;
    font-size: 0.9rem;
    color: #6b8a9a;
    line-height: 1.6;
    display: flex;
    align-items: flex-end;
    padding-bottom: 6px;
}

.timeline { width: 100%; }
.timeline-item {
    display: flex;
    align-items: flex-start;
    padding: 28px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    gap: 40px;
}
.timeline-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.tl-left {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 180px;
    flex-shrink: 0;
}
.tl-date {
    font-size: 0.82rem;
    font-weight: 700;
    color: #4a9b8a;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    min-width: 75px;
}
.tl-num {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1998c3;
}
.tl-content h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; color: white; }
.tl-content p { font-size: 0.99rem; color: #6b8a9a; line-height: 1.5; }

/* White filled button */
.btn-outline {
    display: inline-block;
    margin-top: 40px;
    padding: 13px 30px;
    background: white;
    color: #071D2A;
    border: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.btn-outline:active {
    transform: translateY(0);
}

/* Sede Section */
.sede-section {
    display: flex;
    background-color: white;
}
.sede-image-css {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 350px;
}
.sede-image-css::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 100%, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 35%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}
.sede-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
.slider-slide {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.slider-slide.active {
    opacity: 1;
}
.sede-overlay {
    position: absolute;
    bottom: 30px; left: 40px;
    font-size: 2.2rem;
    font-weight: 300;
    color: white;
    line-height: 1.1;
    letter-spacing: 3px;
    z-index: 2;
}

.sede-content {
    flex: 1;
    padding: 40px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sede-content h2 {
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.1;
    color: #111827;
    margin-bottom: 25px;
    letter-spacing: -1px;
}
.sede-content p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 90%;
}
.sede-list {
    list-style: none;
    padding: 0;
    margin-bottom: 35px;
    width: 100%;
    max-width: 500px;
}
.sede-list li {
    padding: 16px 0;
    font-size: 0.85rem;
    color: #4b5563;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 500;
}
.sede-list li:first-child {
    border-top: 1px solid #e5e7eb;
}
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    border-bottom: 2px solid #111827;
    padding-bottom: 3px;
    align-self: flex-start;
    transition: color 0.3s, border-color 0.3s, transform 0.3s;
}
.link-arrow:hover {
    color: #4a9b8a;
    border-color: #4a9b8a;
    transform: translate(2px, -2px);
}

/* Lugar Section */
.lugar-section {
    background-color: #e8eef3;
    color: var(--text-dark);
    padding: 70px 0 80px;
}
.lugar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
.lugar-inner h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-top: 14px;
    margin-bottom: 45px;
    line-height: 1.2;
    color: #111827;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.lugar-card {
    background: white;
    padding: 35px 30px 30px;
    border-top: 3px solid;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s;
}
.lugar-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.border-green { border-color: #4a9b8a; }
.border-blue  { border-color: #1998c3; }
.border-yellow{ border-color: #d4a017; }

.card-num {
    font-size: 0.72rem;
    font-weight: 700;
    color: #4a9b8a;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
    display: block;
}
.lugar-card h3 {
    font-size: 1.35rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 14px;
}
.lugar-card p {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 30px;
    flex: 1;
}
.card-link {
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    display: inline-block;
    transition: transform 0.3s, opacity 0.3s;
}
.card-link:hover {
    transform: translateX(4px);
    opacity: 0.85;
}
.green-link  { color: #4a9b8a; }
.blue-link   { color: #1998c3; }
.yellow-link { color: #d4a017; }

/* Esencial Section */
.esencial-section {
    background-color: white;
    color: var(--text-dark);
}
.esencial-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 40px;
    display: flex;
    gap: 80px;
    align-items: flex-start;
}
.esencial-left {
    flex: 0 0 36%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.esencial-left h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: #111827;
    margin-top: 14px;
    margin-bottom: 18px;
}
.esencial-left p {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.6;
    max-width: 280px;
}
.esencial-right {
    flex: 1;
}

.faq-item {
    border-top: 1px solid #e5e7eb;
}
.faq-item:last-child { border-bottom: 1px solid #e5e7eb; }
.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 22px 0;
}
.faq-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    transition: color 0.3s;
}
.faq-header:hover h4 {
    color: #4a9b8a;
}
.faq-header .icon {
    color: #4a9b8a;
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 20px;
    transition: transform 0.3s;
}
.faq-header:hover .icon {
    transform: scale(1.22);
}
.faq-body {
    display: none;
    padding: 0 0 20px;
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.6;
}
.faq-item.active .faq-body { display: block; }

/* CTA Footer */
.cta-footer {
    background: linear-gradient(90deg, #5aa970 0%, #1998c3 100%);
    color: white;
}
.cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    display: flex;
    align-items: center;
    gap: 80px;
}
.cta-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin-bottom: 16px;
}
.cta-content { flex: 1; }
.cta-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}
.cta-content p {
    font-size: 0.88rem;
    opacity: 0.85;
    line-height: 1.6;
    max-width: 440px;
}
.cta-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
}
.btn-cta-outline {
    padding: 14px 28px;
    background: white;
    color: #111827;
    border: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn-cta-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.btn-cta-outline:active {
    transform: translateY(0);
}
.cta-email {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}
.cta-email:hover {
    color: white;
    transform: translateY(-1px);
}

/* Main Footer */
.main-footer {
    background-color: #040e18;
    color: #64748b;
}
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-logo-img {
    height: 53px;
    width: auto;
    opacity: 0.85;
}
.footer-center {
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
}
.footer-right {
    display: flex;
    gap: 28px;
    font-size: 0.75rem;
}
.footer-right a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 2px;
}
.footer-right a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1.5px;
    bottom: 0;
    left: 0;
    background-color: var(--green-accent);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.footer-right a:hover {
    color: white;
}
.footer-right a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Toast */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    padding: 15px 25px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast.success { background-color: var(--success-color); }
.toast.error { background-color: var(--error-color); }

/* ══════════════════════════════════════════
   RESPONSIVE — Tablet  ≤ 900px
══════════════════════════════════════════ */
@media (max-width: 900px) {

    /* Navbar */
    .nav-container { padding: 0 24px; }
    .nav-links { display: none; }          /* hide links on tablet+ */
    .btn-nav  { display: none; }
    .nav-actions { gap: 8px; }
    .btn-fullscreen { padding: 8px; gap: 0; }
    .btn-fullscreen span { display: none; }

    /* Hero */
    .hero-section {
        flex-direction: column;
        padding: 60px 30px;
        min-height: auto;
        text-align: center;
    }
    .hero-content { max-width: 100%; }
    .hero-right   { width: 100%; justify-content: center; order: -1; margin-bottom: 30px; }
    .hero-logo    { height: 260px; }
    .hero-buttons { justify-content: center; }

    /* Stats */
    .stats-top    { flex-direction: column; gap: 30px; }
    .stats-grid   { grid-template-columns: 1fr 1fr; }
    .stat-item:last-child { border-right: none; }

    /* Programa */
    .prog-top     { flex-direction: column; gap: 20px; }
    .timeline-item { gap: 20px; }
    .tl-left      { min-width: 120px; width: 120px; }

    /* Sede */
    .sede-section { flex-direction: column; }
    .sede-image-css { min-height: 300px; }
    .sede-content { padding: 50px 30px; }

    /* Cards */
    .cards-grid   { grid-template-columns: 1fr 1fr; gap: 16px; }

    /* Esencial */
    .esencial-inner {
        flex-direction: column;
        gap: 30px;
        padding: 50px 30px;
    }
    .esencial-left { flex: none; }
    .esencial-right { padding: 0; }

    /* CTA */
    .cta-inner {
        flex-direction: column;
        gap: 40px;
        padding: 60px 30px;
    }
    .cta-content h2 { font-size: 2.2rem; }
    .cta-content p  { max-width: 100%; }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 30px 20px;
    }
    .footer-right { justify-content: center; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Mobile  ≤ 600px
══════════════════════════════════════════ */
@media (max-width: 600px) {

    /* Navbar */
    .nav-container { padding: 0 16px; }
    .logo-title    { font-size: 0.75rem; }
    .logo-sub      { display: none; }

    /* Hero */
    .hero-section  { padding: 50px 20px; }
    .hero-content h1 { font-size: 2.6rem; }
    .hero-logo     { height: 200px; }
    .hero-subtitle { font-size: 0.95rem; }
    .date-large    { font-size: 1.6rem; }

    /* Stats */
    .stats-inner   { padding: 40px 20px; }
    .stats-heading h2 { font-size: 1.7rem; }
    .stats-grid    { grid-template-columns: 1fr; }
    .stat-item     { border-right: none; padding: 0; margin-bottom: 24px; }
    .stat-item:last-child { margin-bottom: 0; }
    .stat-item h3  { font-size: 1.8rem; }

    /* Programa */
    .prog-inner    { padding: 40px 20px 50px; }
    .prog-heading h2 { font-size: 1.6rem; }
    .timeline-item { flex-direction: column; gap: 8px; padding: 20px 0; }
    .tl-left       { width: 100%; }

    /* Sede */
    .sede-image-css { min-height: 220px; }
    .sede-content  { padding: 36px 20px; }
    .sede-content h2 { font-size: 2.4rem; }

    /* Lugar */
    .lugar-inner   { padding: 0 20px; }
    .lugar-inner h2 { font-size: 2rem; }
    .cards-grid    { grid-template-columns: 1fr; gap: 14px; }

    /* Esencial */
    .esencial-inner { padding: 40px 20px; gap: 20px; }
    .esencial-left h2 { font-size: 2rem; }

    /* CTA */
    .cta-inner     { padding: 50px 20px; }
    .cta-content h2 { font-size: 1.9rem; }
    .btn-cta-outline { width: 100%; text-align: center; }

    /* Footer */
    .footer-inner  { padding: 24px 16px; gap: 16px; }
    .footer-logo-img { height: 40px; }
    .footer-center { font-size: 0.7rem; }

    /* Stats section label */
    .section-label-dark { font-size: 0.65rem; }
}

/* ============================
   Fade-in from bottom transition
   ============================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   Form Modal
   ============================ */
.form-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(4, 14, 24, 0.85); /* var(--dark-blue) with opacity */
    backdrop-filter: blur(5px);
}

.form-modal-content {
    background-color: var(--light-gray);
    margin: 2% auto; /* 2% from the top and centered */
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    height: 90%;
    position: relative;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.form-modal-close {
    color: var(--text-dark);
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color 0.3s, color 0.3s;
}

.form-modal-close:hover,
.form-modal-close:focus {
    background-color: var(--error-color);
    color: white;
    text-decoration: none;
}

.form-modal-iframe-container {
    flex: 1;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.form-modal-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 600px) {
    .form-modal-content {
        margin: 5% auto;
        width: 95%;
        height: 90%;
    }
    .form-modal-close {
        right: 10px;
        top: -15px;
        background: #fff;
        color: #000;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    }
}

/* ============================================================
   SECCIÓN PRECIOS, CARRUSEL & LIGHTBOX
   ============================================================ */
.precios-section {
    background-color: #071d2a;
    background-image: radial-gradient(circle at 50% 0%, rgba(74, 176, 139, 0.08) 0%, transparent 65%);
    color: var(--text-white);
    padding: 85px 0 95px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.precios-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

.precios-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 45px;
}

.precios-header h2 {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-white);
    margin-top: 10px;
    margin-bottom: 15px;
}

.precios-subtitle {
    font-size: 0.95rem;
    color: #8da2b5;
    line-height: 1.6;
}

/* Carousel Container */
.precios-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.precios-carousel-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 14px;
    padding: 10px 4px;
}

.precios-carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    gap: 22px;
    will-change: transform;
}

/* Slides */
.precios-slide {
    flex: 0 0 calc((100% - 44px) / 3);
    min-width: 0;
    box-sizing: border-box;
}

.precios-card {
    background: #0d283b;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.35s ease;
}

.precios-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 25px rgba(74, 176, 139, 0.2);
    border-color: rgba(74, 176, 139, 0.7);
}

.precios-img-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #040e18;
}

.precios-img-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.precios-card:hover .precios-img-container img {
    transform: scale(1.04);
}

.precios-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(4, 14, 24, 0.85);
    backdrop-filter: blur(8px);
    color: var(--green-accent);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(74, 176, 139, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
}

.precios-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 14, 24, 0.88) 0%, rgba(4, 14, 24, 0.3) 50%, rgba(4, 14, 24, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.precios-card:hover .precios-overlay {
    opacity: 1;
}

.zoom-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #5aa970 0%, #1998c3 100%);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(12px);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.precios-card:hover .zoom-btn {
    transform: translateY(0);
}

/* Nav Buttons */
.carousel-nav-btn {
    background: rgba(13, 40, 59, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-nav-btn:hover:not(:disabled) {
    background: var(--green-accent);
    color: #040e18;
    border-color: var(--green-accent);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(74, 176, 139, 0.4);
}

.carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Dots Indicators */
.precios-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
}

.precios-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.precios-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.precios-dot.active {
    background: var(--green-accent);
    width: 32px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(74, 176, 139, 0.6);
}

/* ============================================================
   LIGHTBOX MODAL & ZOOM 4X
   ============================================================ */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(4, 14, 24, 0.95);
    backdrop-filter: blur(14px);
    cursor: pointer;
    z-index: 1;
}

/* Header Bar & Zoom Controls */
.lightbox-header-bar {
    position: relative;
    z-index: 30;
    width: 100%;
    max-width: 1280px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.lightbox-zoom-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(4, 14, 24, 0.85);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
}

.lightbox-tool-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 20px;
    height: 32px;
    min-width: 32px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-tool-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    transform: translateY(-1px);
}

.lightbox-tool-btn.zoom-highlight-btn {
    background: linear-gradient(90deg, #5aa970 0%, #1998c3 100%);
    border: none;
    color: #ffffff;
    padding: 0 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(25, 152, 195, 0.4);
}

.lightbox-tool-btn.zoom-highlight-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 16px rgba(25, 152, 195, 0.6);
}

.lightbox-zoom-level {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--green-accent);
    min-width: 52px;
    text-align: center;
    user-select: none;
}

.lightbox-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-close:hover {
    background-color: var(--error-color);
    border-color: var(--error-color);
    color: #ffffff;
    transform: rotate(90deg) scale(1.05);
}

/* Arrows */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 40, 59, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.lightbox-arrow:hover {
    background-color: var(--green-accent);
    color: #040e18;
    border-color: var(--green-accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 22px rgba(74, 176, 139, 0.6);
}

/* Viewport & Zoom Pan Area */
.lightbox-viewport {
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    overflow: hidden;
    touch-action: none;
    user-select: none;
}

.lightbox-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 100%;
    max-height: 100%;
    will-change: transform;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: zoom-in;
}

.lightbox-img-wrapper.is-zoomed {
    cursor: grab;
}

.lightbox-img-wrapper.is-dragging {
    cursor: grabbing;
    transition: none !important;
}

#lightboxImage {
    max-width: 90vw;
    max-height: 76vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity 0.25s ease;
    display: block;
}

/* Bottom Bar */
.lightbox-bottom-bar {
    position: relative;
    z-index: 30;
    width: 100%;
    max-width: 1280px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    gap: 15px;
}

.lightbox-hint {
    background: rgba(4, 14, 24, 0.85);
    backdrop-filter: blur(8px);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.78rem;
    color: #aab5c2;
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: auto;
    user-select: none;
}

.lightbox-counter {
    background: rgba(4, 14, 24, 0.85);
    backdrop-filter: blur(8px);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: auto;
    letter-spacing: 1.5px;
    user-select: none;
}

/* ============================================================
   RESPONSIVE PRECIOS & LIGHTBOX
   ============================================================ */
@media (max-width: 992px) {
    .precios-slide {
        flex: 0 0 calc((100% - 22px) / 2);
    }
    .precios-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .precios-section {
        padding: 55px 0 65px;
    }
    .precios-inner {
        padding: 0 16px;
    }
    .precios-slide {
        flex: 0 0 100%;
    }
    .precios-header h2 {
        font-size: 1.8rem;
    }
    .carousel-nav-btn {
        width: 38px;
        height: 38px;
    }
    
    /* Lightbox Mobile Adjustments */
    .lightbox-modal {
        padding: 12px 10px;
    }
    .lightbox-header-bar {
        gap: 8px;
    }
    .lightbox-zoom-controls {
        padding: 4px 8px;
        gap: 4px;
    }
    .lightbox-tool-btn {
        height: 28px;
        min-width: 28px;
        padding: 0 6px;
        font-size: 0.72rem;
    }
    .lightbox-zoom-level {
        font-size: 0.75rem;
        min-width: 40px;
    }
    .lightbox-close {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }
    .lightbox-arrow {
        width: 40px;
        height: 40px;
    }
    .lightbox-arrow.prev { left: 8px; }
    .lightbox-arrow.next { right: 8px; }
    .lightbox-hint {
        display: none; /* Hide hint on small mobile to save space */
    }
    .lightbox-bottom-bar {
        justify-content: center;
    }
    #lightboxImage {
        max-width: 96vw;
        max-height: 72vh;
    }
}


