@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf');
}

@font-face {
    font-family: 'Poppins Bold';
    src: url('../fonts/Poppins-Bold.ttf');
}

/* Theme variables (Colombian flag colors) */
:root {
  /* Colores de Colombia */
  --color-amarillo: #FCD116; /* Acento Primario */
  --color-azul: #003893;    /* Principal / Fondo de Navegación */
  --color-rojo: #CE1126;     /* Alerta / Acento Secundario */
  /* Colores Neutros */
  --color-claro: #f4f4f4;
  --color-oscuro: #333333;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Skip link for keyboard users */
.skip-link{
    position: absolute;
    left: 0;
    top: 0;
    background: var(--col-blue);
    color: #fff;
    padding: 0.5rem 1rem;
    transform: translateY(-140%);
    transition: transform .18s ease;
    z-index: 9999;
}
.skip-link:focus{transform: translateY(0);outline: 3px solid var(--col-yellow);}

.slider-framesp {
    width: 100%;
    height: 100vh;
    /* Ajustamos para que ocupe toda la altura de la pantalla */
    margin: 0 auto;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.hero-text .pu {
    font-size: clamp(18px, 4vw, 28px);
    /* Ajuste dinámico del tamaño de fuente */
}

.hero-text .ib {
    font-size: clamp(24px, 5vw, 38px);
    /* Ajuste dinámico del tamaño de fuente */
    font-weight: 700;
    margin-bottom: 10px;
}

.slider-framesp ul {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    display: flex;
    padding: 0;
    width: 100%;
    height: 100%;
    animation: slidep 50s infinite alternate ease-in-out;
}

.slider-framesp li {
    list-style: none;
    width: 100%;
}

.slider-framesp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Hace que las imágenes no se deformen */
}

@keyframes slidep {
    0% {
        margin-left: 0%;
    }
    16% {
        margin-left: -100%;
    }
    32% {
        margin-left: -200%;
    }
    48% {
        margin-left: -300%;
    }
    64% {
        margin-left: -400%;
    }
    80% {
        margin-left: -500%;
    }
}


/* --- Botones Generales --- */

.botones1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-hero {
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 50px; /* Botones más redondeados */
    font-size: 1rem;
    font-weight: 600; /* Un poco más de peso en la fuente */
    transition: all 0.3s ease;
    display: inline-flex; /* Para alinear ícono y texto */
    align-items: center;
    gap: 10px; /* Espacio entre ícono y texto */
    text-align: center;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-hero.primary {
    background-color: var(--color-amarillo);
    color: var(--color-oscuro);
}

.btn-hero.secondary {
    background-color: var(--color-azul);
    color: white;
    border-color: var(--color-amarillo);
}

.btn-hero:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero.primary:hover {
    background-color: #FFDE59; /* Amarillo más claro */
    color: var(--color-oscuro);
}

.btn-hero.secondary:hover {
    background-color: #002A6E; /* Azul más oscuro */
    color: white;
    border-color: white;
}


/* --- Estilos para Móviles (Menos de 768px) --- */

@media only screen and (max-width: 768px) {
    .botones1 {
        flex-direction: column;
        align-items: center;
    }
    .btn-hero {
        font-size: 20px;
        padding: 10px 10px;
        width: 80%;
        max-width: 300px;
    }
    .slider-framesp {
        height: auto;
    }
    .hero-text .pu {
        font-size: 22px;
    }
    .hero-text .ib {
        font-size: 24px;
    }
    .slider-framesp img {
        object-fit: contain;
    }
}


/* Estilos para pantallas menores a 400px */

@media only screen and (max-width: 400px) {
    .btn-hero {
        font-size: 14px;
        /* Ajusta el tamaño del texto */
        padding: 8px 12px;
        /* Reduce el padding */
        width: 100%;
        /* Hace que el botón ocupe todo el ancho disponible */
        box-sizing: border-box;
        /* Asegura que el padding no afecte al ancho total */
    }
    .botones1 {
        flex-direction: column;
        /* Coloca los botones en columna */
        align-items: center;
        /* Centra los botones */
    }
}


/* Para pantallas menores a 428px de ancho */

@media only screen and (max-width: 400px) {
    .btn-hero {
        font-size: 14px;
        padding: 8px 12px;
        width: 90%;
        /* Usar un 90% del ancho en lugar de 100% para evitar que se estire demasiado */
        max-width: 300px;
        /* Máximo ancho del botón */
    }
}

@media only screen and (max-width: 428px) {
    .slider-framesp {
        width: 100%;
        height: auto;
        /* Asegúrate de que no se salgan de la sección */
        margin: 0;
    }
    .hero-text .pu {
        font-size: 18px;
        /* Ajusta el tamaño del texto */
    }
    .hero-text .ib {
        font-size: 24px;
        /* Ajusta el tamaño del texto */
    }
    .botones1 a {
        font-size: 14px;
        /* Reduce el tamaño de los botones */
        width: 90%;
        /* Los botones ocupan un mayor porcentaje del ancho */
    }
}

.llamado:hover {
    background-color: rgba(255, 255, 255, 0.192);
    color: rgb(255, 255, 255);
}

.registro:hover {
    background-color: rgba(255, 255, 255, 0.192);
    color: rgb(255, 255, 255);
}

.envio:hover {
    background-color: rgba(255, 255, 255, 0.192);
    color: rgb(255, 255, 255);
}

.flecha {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    width: 80px;
}

.divflecha {
    width: 100%;
}

/* --- Sección de Información --- */
.info-section {
    padding: 60px 20px;
    background-color: #ffffff;
    margin-top: 0; /* Se elimina el margen superior para que se una con la sección hero */
}

.info-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
    background-color: var(--color-claro);
    padding: 40px;
    border-radius: 12px;
    border-left: 10px solid;
    border-image: linear-gradient(to bottom, var(--color-amarillo), var(--color-azul), var(--color-rojo)) 1;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.info-text h2 {
    font-size: 2rem;
    color: var(--color-azul);
    margin-bottom: 20px;
    font-weight: 700;
}

.info-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-oscuro);
    margin-bottom: 15px;
    text-align: justify;
}

.info-details {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.info-details h3 {
    font-size: 1.4rem;
    color: var(--color-rojo);
    margin-bottom: 15px;
    font-weight: 600;
}

.info-details p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-oscuro);
}

.info-details a {
    color: var(--color-azul);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}
.info-details a:hover {
    color: var(--color-rojo);
}

/* --- Sección Fechas Importantes (Tarjetas) --- */
.dates-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-azul);
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-amarillo);
    margin: 10px auto 0;
    border-radius: 2px;
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.date-card {
    background-color: var(--color-claro);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid transparent;
}

.date-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.date-card:nth-child(1) { border-color: var(--color-amarillo); }
.date-card:nth-child(2) { border-color: var(--color-azul); }
.date-card:nth-child(3) { border-color: var(--color-rojo); }

.date-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.date-icon.color-amarillo { background-color: var(--color-amarillo); color: var(--color-oscuro); }
.date-icon.color-azul { background-color: var(--color-azul); }
.date-icon.color-rojo { background-color: var(--color-rojo); }

.date-info .date-day {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-oscuro);
    line-height: 1;
}

.date-info .date-month {
    font-size: 1.1rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.date-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-oscuro);
    margin-top: 20px;
}

/* --- Sección de Registro --- */
.registration-section {
    padding: 0 20px 80px;
    background-color: #ffffff;
}

.fees-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto 0;
}

.fee-card {
    background-color: var(--color-claro);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--color-azul);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fee-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.fee-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-oscuro);
    margin-bottom: 20px;
}

.fee-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-azul);
}

.ppos {
    font-size: 2.5em;
}

.inforeg {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--color-amarillo);
    color: var(--color-oscuro);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin: 0 auto 40px;
    max-width: 1100px;
}

.inforeg h1 {
    color: var(--color-azul);
}

.inforeg h1 small {
    font-size: 0.6em; /* Tamaño más pequeño que el título principal */
    font-weight: normal; /* Peso de fuente normal */
    display: block; /* Para que ocupe su propia línea */
    color: var(--color-oscuro);
}

.inforeg h2 {
    color: var(--color-oscuro);
}

/* --- Sección de Partners/Logos --- */
.partners-section {
    padding: 60px 20px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.partner-category {
    background-color: var(--color-claro);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-left: 5px solid var(--color-azul);
}

.partner-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-azul);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.partner-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-amarillo);
    margin: 8px auto 0;
    border-radius: 2px;
}

.titulo-texto {
    margin-left: 8px;
}

.titulo-texto {
    position: relative;
    top: 3px;
    /* Ajusta este valor para mover el texto ligeramente hacia abajo */
    margin-left: 8px;
    text-align: center;
}

.slider-logos img {
    width: 100%;
    height: auto;
    max-height: auto;
    /* Ajuste para evitar encimamiento */
    object-fit: contain;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
}

.slider-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
    padding: 0;
}

.slider-logos ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start; /* Alinea los logos al inicio */
    gap: 30px;
    /* Reduce el espacio entre logos */
    padding: 0;
    margin: 0 auto;
    list-style: none;
    width: 100%;
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho */
}

.slider-logos li {
    flex: 0 1 150px;
    max-width: 180px;
    padding: 10px;
    /* Agrega espacio interno para separar imágenes grandes */
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}


/* Estilos para pantallas más pequeñas (tablet) */

@media (max-width: 1024px) {
    .slider-logos img {
        width: 100%;
    }
    .slider-logos ul {
        gap: 50px;
        /* Reducir el espacio entre los logos en pantallas más pequeñas */
    }
    .slider-logos li {
        flex: 0 1 180px;
        /* Aumentamos el tamaño de los logos */
        max-width: 220px;
        /* Limita el ancho máximo de cada logo */
    }
}


/* Estilos para pantallas aún más pequeñas (móviles) */

@media (max-width: 768px) {
    .slider-logos ul {
        gap: 30px;
        /* Reducir aún más el espacio entre logos */
    }
    .slider-logos li {
        flex: 0 1 150px;
        /* Aumentamos el tamaño de los logos */
        max-width: 180px;
        /* Limitar aún más el ancho máximo de los logos */
    }
    .slider-logos img {
        width: 100%;
        /* Ajustar imagen a la pantalla */
    }
}


/* Media query para dispositivos móviles */

@media screen and (max-width: 1234px) {
    .envio {
        font-size: 13px !important;
    }
    .registro {
        font-size: 13px !important;
    }
    .llamado {
        font-size: 13px !important;
    }

    /* --- Secciones de Información y Fechas en Móvil --- */
    .info-container, .dates-grid { grid-template-columns: 1fr; }
    .info-text h2 { font-size: 1.8rem; }
    .registro {
        margin-right: 10%;
    }
    .llamado {
        padding: 5%;
    }
    .slider-framesp {
        margin-left: -0.5%;
        margin-top: 2%;
        width: 100%;
    }
    .parentpatro {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
}