:root {
    /* Paleta de colores extraída directamente del flyer */
    --primary-blue: #0a193e;
    --darker-blue: #040a1c;
    --accent-pink: #d85d06;
    /* Rosa/Magenta del título */
    --accent-cyan: #f0f4f5;
    /* Cian/Turquesa de la red y texto secundario */
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-light: #fdfdfd;
}

/* Estilos Generales */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;

}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--primary-blue);
    color: var(--text-dark);
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 1rem;
}

h3.section-subheader {
    color: var(--primary-blue);
    text-align: center;
    font-size: 2rem;
    margin-top: 4rem;
    border-top: 1px solid #ddd;
    padding-top: 4rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    color: #666;
    line-height: 1.6;
}

/* ---- NAVEGACIÓN Y HEADER ---- */
/* ---- NAVEGACIÓN Y HEADER COMPLETO ---- */
header {
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    top: 0;
    left: 0;
}

header.scrolled {
    background-color: rgba(10, 25, 62, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo */
.logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Navegación principal */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav ul li {
    position: relative;
    white-space: nowrap;
}

/* Enlaces de navegación */
nav a:not(.dropdown-item) {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 10px 5px;
    border-bottom: 2px solid transparent;
    position: relative;
}

nav a:hover:not(.dropdown-item),
nav a.active:not(.dropdown-item) {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
}

/* ---- MENÚ DE INSCRIPCIÓN ---- */
.inscription-nav-item {
    position: relative;
    margin-left: 1rem;
}

/* Botón de inscripción */
.inscription-btn {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 150px;
    height: 44px;
    box-sizing: border-box;
}

/* Efecto de brillo en el botón */
.inscription-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.inscription-btn:hover::before {
    left: 100%;
}

/* Estados del botón */
.inscription-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.inscription-btn:active {
    transform: translateY(0);
}

.inscription-btn.active {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

/* Icono del botón */
.inscription-btn i {
    font-size: 1rem;
}

/* Dropdown del menú de inscripción */
.inscription-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: rgba(10, 25, 62, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 15px;
    padding: 0.8rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    z-index: 1001;
}

/* Flecha del dropdown */
.inscription-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 25px;
    width: 16px;
    height: 16px;
    background: rgba(10, 25, 62, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
    backdrop-filter: blur(20px);
}

/* Estado activo del dropdown */
.inscription-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Items del dropdown */
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    border-radius: 0;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.2), rgba(255, 107, 157, 0.2));
    color: white;
    transform: translateX(5px);
}

.dropdown-item i {
    margin-right: 12px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: var(--accent-cyan);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ---- RESPONSIVE DESIGN ---- */
@media (max-width: 1024px) {
    header .container {
        padding: 0 1.5rem;
    }

    nav ul {
        gap: 1.5rem;
    }

    nav a:not(.dropdown-item) {
        font-size: 0.85rem;
    }

    .inscription-btn {
        min-width: 130px;
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 0;
    }

    header .container {
        padding: 0 1rem;
        height: 60px;
    }

    .logo {
        height: 40px;
    }

    /* Mostrar hamburger menu */
    .hamburger {
        display: flex;
    }

    /* Ocultar navegación normal */
    nav ul {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(10, 25, 62, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 3rem;
        gap: 2rem;
        transition: left 0.4s ease;
        z-index: 999;
    }

    nav ul.mobile-active {
        left: 0;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav a:not(.dropdown-item) {
        display: block;
        padding: 15px 20px;
        font-size: 1rem;
        border-bottom: none;
        border-left: 3px solid transparent;
        width: 100%;
    }

    nav a:hover:not(.dropdown-item),
    nav a.active:not(.dropdown-item) {
        border-left-color: var(--accent-cyan);
        border-bottom: none;
        background: rgba(0, 212, 255, 0.1);
    }

    /* Menú de inscripción en mobile */
    .inscription-nav-item {
        width: 90%;
        margin: 2rem 0 0 0;
    }

    .inscription-btn {
        width: 100%;
        min-width: auto;
        justify-content: center;
        height: 50px;
        font-size: 0.9rem;
    }

    .inscription-dropdown {
        position: relative;
        top: 15px;
        right: auto;
        left: 0;
        width: 100%;
        min-width: auto;
        transform: none;
        margin-top: 1rem;
        border-radius: 10px;
    }

    .inscription-dropdown.active {
        transform: none;
    }

    .inscription-dropdown::before {
        display: none;
    }

    .dropdown-item {
        justify-content: center;
        padding: 16px 20px;
        font-size: 0.95rem;
    }

    .dropdown-item:hover {
        transform: none;
    }
}

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

    .logo {
        height: 35px;
    }

    nav a:not(.dropdown-item) {
        font-size: 0.9rem;
        padding: 12px 15px;
    }

    .inscription-btn {
        height: 45px;
        font-size: 0.85rem;
        padding: 10px 18px;
    }

    .dropdown-item {
        padding: 14px 18px;
        font-size: 0.9rem;
    }
}

/* Variables CSS necesarias */
:root {
    --accent-cyan: #00d4ff;
    --accent-pink: #ff6b9d;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* ---- SECCIONES DE LA PÁGINA ---- */
section {
    padding: 6rem 0;
    position: relative;
}

#inicio {
    background: transparent;
    /* Fondo transparente para mostrar partículas */
    height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-light);
}

.hero-content {
    flex-grow: 1;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1rem;
    align-items: center;
}

.highlight-pink {
    color: #fd8c03;
    display: block;
    /* font-weight: bold; */
    font-size: 1.1em;
    font-style: italic;
    font-family: 'Arial Black', 'Arial Bold', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);

}

.highlight-line {
    border-top: 2px solid;
    /* Cambia el color a gusto */
    /* Espacio entre línea y texto */
    margin-top: 1rem;
}

.hero-text {
    /* font-size: clamp(2.2rem, 5vw, 3.8rem); */
    margin-top: 100px;
    padding-left: 55px;
    font-size: clamp(1.8rem, 5vw, 2.8em);
    color: var(--text-light);
    line-height: 1.3;
    /* Resplandor cian sutil como en la imagen de referencia */
    text-shadow: 0 0 20px rgba(225, 255, 0, 0.4);
    text-align: left;
    line-height: 1;
    letter-spacing: 0px;

}

.foco {
    position: relative;
    width: clamp(300px, 80vw, 1000px);
    height: auto;
    margin: 50px auto;
    overflow: visible;
    /* Asegura que el degradado no se salga */
}

.foco img {
    display: block;
    width: 100%;
    height: auto;
}

.foco::after {
    content: "";
    position: absolute;
    top: 35%;
    left: 50%;
    width: clamp(200px, 35vw, 350px);
    height: clamp(170px, 30vw, 300px);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 150, 0.4) 0%, transparent 80%);
    z-index: 0;
    filter: blur(30px);
}

.foco-transparente-hover {
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 1;

    -webkit-mask-image: linear-gradient(to top, transparent 12%, black 40%, black 90%, transparent 100%),
        linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-composite: intersect;

    mask-image: linear-gradient(to top, transparent 12%, black 30%, black 90%, transparent 100%),
        linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-composite: intersect;
}

.part-foco {
    padding-top: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text .highlight {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    /* Degradado de texto como en la imagen de referencia */
    background: -webkit-linear-gradient(left, var(--accent-pink), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text .subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-top: 1.5rem;
    color: var(--text-light);
    /* Texto blanco simple como en la referencia */
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#objetivos,
#convocatoria,
#sede,
#sponsor,
#spikers {
    background-color: var(--background-light);
}

#fechas {
    background-color: var(--primary-blue);
}

#contacto {
    background-color: var(--darker-blue);
}

#fechas h2,
#contacto h2 {
    color: var(--text-light);
}

#fechas .section-subtitle,
#contacto p {
    color: rgba(255, 255, 255, 0.8);
}

.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.grid-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.grid-item h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    border-bottom: 2px solid var(--accent-cyan);
    padding-bottom: 0.5rem;
    margin: 0 0 1.5rem 0;
}

.grid-item ul {
    list-style: none;
    padding-left: 0;
}

.grid-item ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.grid-item ul li::before {
    content: '✓';
    font-weight: bold;
    color: var(--accent-pink);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.grid-item i {
    font-size: 2rem;
    color: var(--accent-pink);
    margin-bottom: 1rem;
}

/* Estilos de Sponsors */

/* Grid de logos */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas por fila */
    gap: 2rem;                             /* espacio entre logos */
    justify-items: center;                  /* centra horizontalmente */
    align-items: end;                       /* alinea hacia abajo */
    padding: 10px 0;
}

/* Logos: estilo general */
.logo-grid img {
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Tamaños individuales */
.reforma { width: clamp(200px, 40vw, 460px); }
.colegio { width: clamp(100px, 16vw, 190px); }
.lectorum { width: clamp(120px, 25vw, 300px); }
.biblio { width: clamp(160px, 34vw, 400px); }
.penalolen { width: clamp(140px, 29vw, 350px); }
.nuevo2 { width: clamp(80px, 12vw, 150px); }

/* Efecto hover */
.logo-grid img:hover {
    transform: scale(1.05);
}


/*---------Hasta aqui logos patrocinio----*/

/* Estilos de Contacto / Footer */
#contacto {
    padding: 4rem 0;
    text-align: center;
}

#contacto a {
    color: var(--accent-cyan);
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
}

#contacto a:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    font-size: 0.9rem;
    border-top: 1px solid #444;
    color: rgba(255, 255, 255, 0.5);
}


/* ---- RESPONSIVE DESIGN ---- */

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
    .part-foco:nth-child(1) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    h2 {
        font-size: clamp(1.8rem, 5vw, 2.8rem);
    }

    h3.section-subheader {
        font-size: clamp(1.4rem, 4vw, 2rem);
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .section-subtitle {
        font-size: clamp(0.95rem, 3vw, 1.2rem);
        margin: 0 auto 2rem auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        /* Solo una columna en móviles */
    }

    .part-foco:nth-child(2) {
        display: none;
        /* Oculta las otras columnas (foto y xd) */
    }

    .hero-text {
        padding-left: 1rem;
        margin-top: 50px;
        font-size: clamp(1.4rem, 4vw, 1.8em);
        text-align: center;
    }

    .foco {
        width: clamp(250px, 90vw, 500px);
        margin: 30px auto;
    }

    .grid-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .grid-item {
        padding: 1.5rem;
    }

    .grid-item h3 {
        font-size: clamp(1.1rem, 3vw, 1.5rem);
    }

    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    #contacto a {
        font-size: clamp(1rem, 2vw, 1.2rem);
    }

    .footer-bottom {
        font-size: 0.8rem;
    }
}

@media (max-width: 600px) {
    section {
        padding: 3rem 0;
    }

    h2 {
        font-size: clamp(1.5rem, 4vw, 2.2rem);
        margin-bottom: 0.8rem;
    }

    h3.section-subheader {
        font-size: clamp(1.2rem, 3.5vw, 1.6rem);
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .section-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        margin: 0 auto 1.5rem auto;
    }

    .hero-text {
        padding-left: 0.5rem;
        margin-top: 30px;
        font-size: clamp(1.2rem, 3.5vw, 1.5em);
        text-align: center;
    }

    .hero-text .highlight {
        font-size: clamp(1.8rem, 4vw, 2.8rem);
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .hero-text .subtitle {
        font-size: clamp(0.8rem, 2vw, 1rem);
        margin-top: 1rem;
    }

    .highlight-pink {
        font-size: clamp(0.9rem, 2.5vw, 1.1em);
    }

    .grid-section {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .grid-item {
        padding: 1.2rem;
    }

    .grid-item h3 {
        font-size: clamp(1rem, 2.5vw, 1.3rem);
        margin: 0 0 1rem 0;
    }

    .grid-item i {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .logo-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    #contacto a {
        font-size: clamp(0.95rem, 2vw, 1.1rem);
    }

    .footer-bottom {
        font-size: 0.75rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 2rem 0;
    }

    h2 {
        font-size: clamp(1.3rem, 3.5vw, 1.8rem);
        margin-bottom: 0.6rem;
    }

    h3.section-subheader {
        font-size: clamp(1rem, 3vw, 1.4rem);
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .section-subtitle {
        font-size: clamp(0.85rem, 2vw, 0.95rem);
        margin: 0 auto 1rem auto;
    }

    .container {
        width: 95%;
    }

    .hero-text {
        padding-left: 0.3rem;
        margin-top: 20px;
        font-size: clamp(1rem, 3vw, 1.3em);
        text-align: center;
    }

    .hero-text .highlight {
        font-size: clamp(1.5rem, 3.5vw, 2.2rem);
        margin-top: 0.8rem;
        margin-bottom: 0.8rem;
        letter-spacing: 1px;
    }

    .hero-text .subtitle {
        font-size: clamp(0.75rem, 1.8vw, 0.9rem);
        margin-top: 0.8rem;
        letter-spacing: 0.5px;
    }

    .highlight-pink {
        font-size: clamp(0.85rem, 2vw, 1em);
    }

    .grid-section {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-top: 1rem;
    }

    .grid-item {
        padding: 1rem;
    }

    .grid-item h3 {
        font-size: clamp(0.95rem, 2.2vw, 1.2rem);
        margin: 0 0 0.8rem 0;
    }

    .grid-item ul li {
        padding-left: 20px;
        margin-bottom: 0.8rem;
        font-size: 0.9rem;
    }

    .grid-item i {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .logo-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    #contacto a {
        font-size: clamp(0.9rem, 1.8vw, 1rem);
    }

    .footer-bottom {
        font-size: 0.7rem;
        margin-top: 1rem;
        padding-top: 0.8rem;
    }
}