/* Variables CSS */
:root {
    --primary-cyan: #00B5DD;
    --secondary-cyan: #00A3C7;
    --dark-blue: #004A7C;
    --light-bg: #e8f4f8;
    --white: #FFFFFF;
    --text-dark: #093a59;
    --green: #7AB648;
    --border-color: rgba(0, 181, 221, 0.2);
    --gradient-primary: linear-gradient(135deg, #00E5FF 0%, #00B8D4 50%, #004A7C 100%);
}

/* Reset y estilos base */
* {
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    padding-bottom: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--light-bg);
}

strong {
    font-weight: 600;
}

/* ========================================
   PARALLAX BACKGROUND
   ======================================== */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
    will-change: transform;
}

.parallax-bg img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   HEADER: LOGO CENTRADO + NAVBAR
   ======================================== */
.header-logo-centered {
    text-align: center;
    padding: 1.5rem 0 0.5rem;
}

.header-logo-centered img {
    max-width: 160px;
}

.navbar {
    margin-bottom: 20px;
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    transition: all 0.4s ease;
    border-radius: 0 !important;
    border: none;
}

.navbar:hover {
    box-shadow: none;
}

.navbar-nav {
    justify-content: center !important;
    width: 100%;
}

.logo-header {
    max-width: 130px;
    transition: transform 0.3s ease;
}

.logo-header:hover,
.logo-header:focus {
    transform: scale(1.05);
}

.nav-link {
    color: var(--dark-blue);
    font-weight: 400;
    font-size: 0.88rem;
    background-color: transparent;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.01em;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-cyan);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 70%;
}

@media (max-width: 991.98px) {
    .navbar-nav .nav-link::before {
        display: none;
    }
}

/* ========================================
   HERO
   ======================================== */
.bg {
    background: transparent;
    position: relative;
}

.entrada {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    border: none;
}

/* ========================================
   COLORED SECTIONS
   ======================================== */
.bg2 {
    background: transparent;
    position: relative;
    overflow: hidden;
}

.bg3 {
    background: transparent;
    position: relative;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary-cyan);
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    color: var(--green);
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 24px;
}

h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 16px;
    background: url('../img/separador.svg') no-repeat center;
    background-size: contain;
}

h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
}

h5 {
    font-family: 'Poppins', sans-serif;
}

/* Hero title - replica de la gráfica */
.hero-numero {
    font-family: 'Poppins', sans-serif;
    font-weight: 100;
    font-size: 13rem;
    line-height: 0.85;
    color: var(--green);
    letter-spacing: -0.02em;
    padding-right: 1.5rem;
    margin-right: 0.5rem;
}

.hero-pretitulo {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 1.4rem;
    color: var(--text-dark);
    letter-spacing: 0.01em;
}

.hero-pretitulo strong {
    font-weight: 700;
}

.hero-titulo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 1.15;
    color: var(--text-dark);
}

.hero-fecha {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--primary-cyan);
}

@media (max-width: 768px) {
    .hero-numero {
        font-size: 5rem;
        padding-right: 1rem;
    }
    .hero-titulo {
        font-size: 1.6rem;
    }
    .hero-pretitulo {
        font-size: 1.1rem;
    }
    .hero-fecha {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-numero {
        font-size: 3.5rem;
        padding-right: 0.8rem;
    }
    .hero-titulo {
        font-size: 1.2rem;
    }
}

.pretitulo {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
}

.display-5.text-body-emphasis {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 108%;
    color: var(--dark-blue) !important;
    animation: slideInFromRight 1s ease-out;
    text-shadow: none;
    font-size: 2.8rem;
}

.lead {
    animation: slideInFromRight 1.2s ease-out;
    font-size: 1rem;
    color: var(--dark-blue) !important;
    font-weight: 400;
    opacity: 0.8;
}

.etiqueta-pestana {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.88rem;
    margin: 0;
}

/* ========================================
   COLORS
   ======================================== */
.azul { color: var(--primary-cyan); }
.verde { color: var(--secondary-cyan); }
.oscuro { color: var(--dark-blue); }
.blanco { color: #fff !important; }

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-cyan);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-cyan);
    font-weight: 500;
    font-size: 0.82rem;
    border-radius: 50px;
    padding: 0.6rem 2.2rem;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: none;
    background: var(--primary-cyan);
    color: #fff;
    border-color: var(--primary-cyan);
}

/* ========================================
   NAV TABS
   ======================================== */
.nav-tabs {
    border: none;
    gap: 4px;
}

.nav-tabs .nav-item .nav-link {
    border: 1px solid var(--border-color);
    border-bottom: none;
    background: transparent;
    color: var(--text-dark);
    transition: all 0.3s ease;
    position: relative;
    border-radius: 16px 16px 0 0;
    font-size: 0.88rem;
}

.nav-tabs .nav-item .nav-link:hover,
.nav-tabs .nav-item .nav-link:focus-visible {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.nav-tabs .nav-item .nav-link.active {
    background: rgba(255, 255, 255, 0.45);
    color: var(--primary-cyan);
    font-weight: 600;
    border-color: var(--border-color);
}

/* ========================================
   GLASS PANELS
   ======================================== */
.pestana {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 0 0 24px 24px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    border-top: none;
}

.section-glass {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: none;
    padding: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   CARDS & IMAGES
   ======================================== */
.foto-carta {
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0, 74, 124, 0.1);
}

.foto-carta:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 74, 124, 0.18);
}

/* ========================================
   COUNTERS - editorial style
   ======================================== */
.counter-card {
    padding: 1.5rem 1rem;
}

.counter-number {
    font-family: 'Poppins', sans-serif;
    font-weight: 200;
    font-size: 5rem;
    line-height: 1;
    color: var(--green);
    display: block;
}

.counter-line {
    width: 150px;
    height: 12px;
    margin: 0.8rem auto;
    background: url('../img/separador.svg') no-repeat center;
    background-size: contain;
}

.counter-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
}

@media (max-width: 768px) {
    .counter-number { font-size: 3.5rem; }
    .counter-label { font-size: 0.75rem; letter-spacing: 2px; }
}

@media (max-width: 480px) {
    .counter-number { font-size: 2.5rem; }
    .counter-label { font-size: 0.65rem; }
}

/* ========================================
   ACCORDION
   ======================================== */
.accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 8px;
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.3s ease;
    background: transparent;
}

.accordion-item:hover {
    box-shadow: 0 2px 12px rgba(0, 74, 124, 0.06);
    border-color: var(--primary-cyan);
}

.accordion-header { width: 100%; }

.accordion-header .accordion-button {
    background: transparent;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 16px !important;
    font-size: 0.93rem;
}

.accordion-header .accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, var(--primary-cyan), var(--secondary-cyan));
    color: white;
    box-shadow: none;
}

.accordion-header .accordion-button:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-cyan);
    outline-offset: 2px;
}

.time {
    margin-right: .5rem;
    font-weight: 600;
    font-size: 0.88rem;
}

.accordion-body{
    font-size: 0.93rem;
}

.time::after {
    content: " \2022 ";
    color: var(--primary-cyan);
}

.desactivado::after {
    content: none !important;
    display: none !important;
}

.desactivado { box-shadow: none; }

.light {
    opacity: .5;
    font-weight: 300;
}

.brochure{
    
    box-shadow: 0 10px 30px rgba(0, 74, 124, 0.2);
}

/* ========================================
   SPEAKERS
   ======================================== */
@media (min-width: 992px) {
    .col-lg-5ths {
        flex: 0 0 auto;
        width: 20%;
    }
}

.speaker {
    padding: 1rem 0.5rem;
    border-radius: 16px;
}

.photo-wrapper {
    max-width: 140px;
    margin: 0 auto;
}

.photo-wrapper img {
    border-radius: 50%;
    border: 3px solid rgba(0, 181, 221, 0.15);
    aspect-ratio: 1;
    object-fit: cover;
}

.speaker .nombre {
    font-size: 0.93rem;
    font-weight: 600;
}

.speaker a {
    color: var(--primary-cyan);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.speaker a:hover {
    color: var(--dark-blue);
}

.twitter { font-size: 2rem; }

/* ========================================
   GALLERY
   ======================================== */
.thumb {
    margin: 8px 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 10px;
    overflow: hidden;
}

.thumb:hover,
.thumb:focus-visible {
    cursor: pointer;
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(0, 74, 124, 0.2);
}

/* ========================================
   MODAL
   ======================================== */
.modal-content {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 74, 124, 0.2);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.modal-header {
    background: var(--gradient-primary);
    border: none;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(180deg, var(--dark-blue) 0%, #001f3f 100%);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
}

.footer a {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary-cyan) !important;
}

/* ========================================
   SPACING
   ======================================== */
.mt-10 { margin-top: 5rem; }
.mb-10 { margin-bottom: 5rem; }

/* ========================================
   LOGOS
   ======================================== */
.logos-colab {
    transition: all 0.3s ease;
    padding: 1rem;
}

.logos-colab:hover,
.logos-colab:focus-within {
    transform: scale(1.05);
}

/* ========================================
   PRENSA CARDS
   ======================================== */
.prensa-card {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    color: var(--text-dark);
}

.prensa-card:hover,
.prensa-card:focus-within {
    border-color: var(--primary-cyan);
    transform: translateY(-4px);
}

.prensa-card h5 {
    color: var(--dark-blue);
}

.prensa-card .small {
    color: var(--text-dark);
    opacity: 0.7;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    .display-5.text-body-emphasis { font-size: 2rem; }
    .count { font-size: 2.5rem; }
}

@media (max-width: 576px) {
    .display-5.text-body-emphasis { font-size: 1.6rem; }
    .pretitulo { font-size: 1.1rem; }
    .section-glass { padding: 1.5rem; }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes slideInFromRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

img {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--dark-blue);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 9999;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

/* Global focus-visible */
:focus-visible {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 2px;
}

/* Tab label styling (replaces h5) */
.etiqueta-pestana {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
