/* --- Variables de Color y Fuentes --- */
:root {
    --primary-color: #5F4B8B;
    --secondary-color: #1a1a1a;
    --accent-color-light: #f5f3f9;
    --white-color: #ffffff;
    --font-family: 'Montserrat', sans-serif;
    --font-kids: 'Fredoka One', cursive; 
}

/* --- Estilos Globales --- */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-family); line-height: 1.7; color: var(--secondary-color); background-color: var(--white-color); }
* { box-sizing: border-box; margin: 0; padding: 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 30px; }
.section { padding: 80px 0; }
.section h2 { text-align: center; font-size: 2.8rem; font-weight: 900; margin-bottom: 10px; color: var(--primary-color); }
.bg-accent { background-color: var(--accent-color-light); }
.responsive-img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.text-center { text-align: center; }
.mt-4 { margin-top: 2.5rem; }
.mt-5 { margin-top: 4rem; }

/* --- Estilos para Convocatoria Detallada --- */
.convocatoria-header { text-align: center; margin-bottom: 60px; }
.convocatoria-logo { max-width: 250px; margin-bottom: 20px; }
.convocatoria-header .slogan { font-size: 1.5rem; font-weight: 700; color: var(--secondary-color); margin-top: -10px; margin-bottom: 20px; }
.convocatoria-header .intro-text { max-width: 800px; margin: 0 auto; font-size: 1.1rem; }
.card-convocatoria { background: var(--white-color); border-radius: 12px; padding: 30px 40px; margin-bottom: 40px; box-shadow: 0 10px 40px rgba(95, 75, 139, 0.1); border: 1px solid var(--accent-color-light); }
.card-convocatoria h3 { font-size: 2rem; font-weight: 900; margin-bottom: 25px; color: var(--primary-color); border-bottom: 3px solid var(--accent-color-light); padding-bottom: 15px; }
.card-convocatoria h3 i { margin-right: 15px; }
.card-convocatoria h4 { font-size: 1.2rem; font-weight: 700; margin-top: 25px; margin-bottom: 15px; display: flex; align-items: center; }
.card-convocatoria h4 i { margin-right: 10px; font-size: 1rem; color: var(--primary-color); }
.card-convocatoria p { font-size: 1.1rem; line-height: 1.8; }
.grid-bases { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.grid-bases div { background: var(--accent-color-light); padding: 20px; border-radius: 8px; text-align: center; }
.grid-bases i { font-size: 2rem; color: var(--primary-color); display: block; margin-bottom: 10px; }
.lista-bonita { list-style: none; padding-left: 0; column-count: 2; column-gap: 30px; }
.lista-bonita li { padding: 10px 0 10px 35px; position: relative; font-size: 1.1rem; }
.lista-bonita li::before { content: '\f138'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--primary-color); position: absolute; left: 0; top: 12px; }
.nota-tabla { margin-top: 15px; text-align: center; font-style: italic; }
.alerta { background-color: #fff3cd; border-left: 5px solid #ffeeba; padding: 20px; margin-top: 20px; border-radius: 5px; }
.alerta p { margin: 0; }
.lista-numerada { list-style: none; counter-reset: mi-contador; padding-left: 0; }
.lista-numerada li { counter-increment: mi-contador; margin-bottom: 15px; font-size: 1.1rem; line-height: 1.5; padding-left: 50px; position: relative; }
.lista-numerada li::before { content: counter(mi-contador); position: absolute; left: 0; top: 5px; color: var(--white-color); background: var(--primary-color); width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.tabla-responsive-container { overflow-x: auto; margin-top: 20px; }
.tabla-premio, .tabla-categorias { width: 100%; border-collapse: collapse; text-align: center; min-width: 600px; }
.tabla-premio th, .tabla-premio td, .tabla-categorias th, .tabla-categorias td { padding: 15px; border-bottom: 1px solid #ddd; }
.tabla-premio thead, .tabla-categorias thead { background-color: var(--primary-color); color: var(--white-color); font-size: 1.2rem; }
.tabla-premio tbody tr:nth-child(even), .tabla-categorias tbody tr:nth-child(even) { background-color: var(--accent-color-light); }
.tabla-premio td, .tabla-categorias td { font-weight: 700; }
.tabla-premio caption { caption-side: top; font-size: 1.3rem; font-weight: 700; padding: 10px; color: var(--secondary-color); text-align: left; }
.animate-on-load { opacity: 0; transform: translateY(20px); animation: fadeIn 0.8s ease-out forwards; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }
.grid-costos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; max-width: 1000px; margin: 20px auto; }
.card-costo { background: var(--accent-color-light); border: 2px solid var(--primary-color); padding: 15px; border-radius: 8px; text-align: center; }
.card-costo h4 { font-size: 1.2rem; color: var(--primary-color); margin: 0 0 5px 0; }
.card-costo .precio { font-size: 1.8rem; font-weight: 900; color: var(--secondary-color); margin: 0; }

/* ###################################################### */
/* ############# ESTILOS PARA NUEVA SECCIÓN INSCRIPCIONES ############# */
/* ###################################################### */
.grid-inscripciones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    align-items: start;
}

.card-inscripcion {
    background: var(--white-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(95, 75, 139, 0.1);
    border: 1px solid var(--accent-color-light);
    height: 100%;
}

.card-inscripcion h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--primary-color);
}
.card-inscripcion h3 i {
    margin-right: 10px;
}
.card-inscripcion h4 {
    font-size: 1.2rem;
    font-weight: 700;
}

.lista-puntos-venta {
    list-style: none;
    padding: 0;
}
.lista-puntos-venta li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background-color: var(--accent-color-light);
    padding: 10px;
    border-radius: 8px;
}
.lista-puntos-venta img {
    width: 120px;
    height: 120px;
    margin-right: 15px;
    object-fit: contain;
}

.lista-pasos {
    list-style: none;
    counter-reset: pasos-counter;
    padding-left: 0;
}
.lista-pasos li {
    counter-increment: pasos-counter;
    margin-bottom: 20px;
    position: relative;
    padding-left: 50px;
}
.lista-pasos li::before {
    content: counter(pasos-counter);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--white-color);
    background: var(--primary-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.info-bancaria {
    background: var(--accent-color-light);
    padding: 15px;
    margin-top: 10px;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
}
.link-descarga {
    display: inline-block;
    margin-top: 10px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
.link-descarga:hover {
    text-decoration: underline;
}

/* --- Estilos Anteriores (Navegación, Botones, Footer, etc.) --- */
#header { position: absolute; top: 0; left: 0; width: 100%; z-index: 1000; transition: all 0.4s ease-out; }
.navbar { padding: 15px 0; transition: all 0.4s ease-out; }
/* ... (resto de los estilos anteriores) */
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.brand { font-size: 2.2rem; font-weight: 900; color: var(--white-color); text-decoration: none; line-height: 1.1; text-align: center; transition: font-size 0.4s ease-out; }
.tagline { display: block; font-size: 0.8rem; font-weight: 400; color: rgba(255, 255, 255, 0.9); }
#header.fixed { position: fixed; background-color: var(--primary-color); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); animation: slideDown 0.5s ease-out; }
#header.fixed .navbar { padding: 10px 0; }
#header.fixed .brand { font-size: 1.8rem; text-align: left; }
#header.fixed .tagline { display: none; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li a { color: var(--white-color); padding: 10px 16px; text-decoration: none; font-weight: 700; white-space: nowrap; position: relative; transition: color 0.3s; }
.hero { background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/carretera01.fw.png') no-repeat center center/cover; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--white-color); }
.hero-content h1 { font-size: 4rem; font-weight: 900; margin-bottom: 20px; text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); }
.countdown { font-size: 3.5rem; font-weight: 700; margin-bottom: 30px; color: var(--white-color); background: transparent; text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8); }
.btn { display: inline-block; padding: 12px 28px; background: var(--primary-color); color: #fff; border: 2px solid var(--primary-color); border-radius: 50px; text-decoration: none; font-weight: 700; transition: all 0.3s ease; margin: 5px; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 5px 10px rgba(0,0,0,0.2); }
.btn-primary { font-size: 1.1rem; background: transparent; color: var(--white-color); border: 2px solid var(--white-color); backdrop-filter: blur(2px); }
.btn-primary:hover { background: var(--white-color); color: var(--primary-color); }
.btn-large { padding: 18px 45px; font-size: 1.2rem; margin-top: 20px; }
.footer { background: var(--secondary-color); color: var(--white-color); padding: 40px 0; text-align: center; }
.social-icons a { color: var(--white-color); font-size: 1.5rem; margin: 0 15px; transition: color 0.3s; }
.social-icons a:hover { color: var(--primary-color); }
.contact-info { margin: 15px 0; }
.menu-icon { display: none; }
@media(max-width: 992px) {
    .brand { font-size: 1.5rem; text-align: left; }
    #header.fixed .brand { font-size: 1.5rem; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--secondary-color); flex-direction: column; padding: 10px 0; }
    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links li a { padding: 15px; display: block; }
    .menu-icon { display: block; cursor: pointer; }
    .bar { width: 25px; height: 3px; background-color: white; margin: 5px 0; transition: 0.4s; }
    .hero-content h1 { font-size: 3rem; }
    .countdown { font-size: 2.5rem; }
    .lista-bonita { column-count: 1; }
    .grid-inscripciones { grid-template-columns: 1fr; }
}

.swiper-slide img {
width: 400px; /* Ajusta este valor para cambiar el ancho de las imágenes */
height: auto;
display: block; /* Evita espacios extra debajo de las imágenes */
margin-left: auto;
margin-right: auto; /* Centra las imágenes dentro del slide */
}

.swiper-wrapper {
gap: 3px; /* Ajusta este valor para cambiar la separación entre los slides */
}

/* ###################################################### */
/* ############# ESTILOS PARA SECCIÓN JEBLA KIDS ############# */
/* ###################################################### */

.section-kids {
    padding: 80px 0;
    background-color: #f0f8ff; /* Un azul cielo muy claro */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.1'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.kids-header {
    text-align: center;
    margin-bottom: 60px;
}
.kids-header h2 img {
    max-width: 350px;
}
.kids-header p {
    font-family: var(--font-kids);
    font-size: 2rem;
    color: #ff6347; /* Color tomate */
    text-shadow: 2px 2px #fff;
}

.grid-kids {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.card-kids {
    background: var(--white-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 3px solid;
    text-align: center;
}
.card-kids:nth-child(1) { border-color: #1e90ff; /* Azul */ }
.card-kids:nth-child(2) { border-color: #32cd32; /* Verde */ }
.card-kids:nth-child(3) { border-color: #ffc107; /* Amarillo */ }
.card-kids:nth-child(4) { border-color: #ff6347; /* Tomate */ }

.card-kids h3 {
    font-family: var(--font-kids);
    font-size: 2rem;
    margin-bottom: 20px;
}
.card-kids:nth-child(1) h3 { color: #1e90ff; }
.card-kids:nth-child(2) h3 { color: #32cd32; }
.card-kids:nth-child(3) h3 { color: #ffc107; }
.card-kids:nth-child(4) h3 { color: #ff6347; }
.card-kids h3 i {
    display: block;
    font-size: 3rem;
    margin-bottom: 15px;
}

.lista-kids {
    list-style: none;
    padding: 0;
    text-align: left;
}
.lista-kids li {
    font-size: 1.1rem;
    padding: 8px 0 8px 30px;
    position: relative;
}
.lista-kids li::before {
    content: '\f005'; /* Icono de estrella de Font Awesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ffc107;
    position: absolute;
    left: 0;
    top: 12px;
}

.tabla-kids {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1.1rem;
}
.tabla-kids th, .tabla-kids td {
    padding: 12px;
    border: 2px solid var(--accent-color-light);
}
.tabla-kids thead {
    background-color: #32cd32;
    color: var(--white-color);
    font-family: var(--font-kids);
    font-size: 1.2rem;
}

.btn-kids {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    background-color: #bd1f03;
    color: var(--white-color);
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-kids);
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}
.btn-kids:hover {
    transform: scale(1.1);
}
