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

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

@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;
}

.texto {
    color: rgb(0, 0, 0);
    line-height: 30px;
    font-family: 'Poppins' !important;
    display: flex;
    justify-content: center;
    width: 1100px;
    height: 350px;
    margin-left: 9%;
    text-align: center;
    padding: 10%;
    padding-top: 10%;
    margin-top: 30px;
    font-size: 17px;
    align-items: center;
}

.texto p {
    font-size: 17px;
}

.texto h1 {
    font-size: 36px;
    text-align: left;
}

.texto h3 {
    text-align: left;
}

.cuadro {
    width: 90%;
    max-width: 1000PX;
    /* Limita el ancho en pantallas grandes */
    height: auto;
    margin-left: 2%;
    border-left: 10px solid #137261;
    /* Reducido para móviles */
    padding-left: 5%;
    font-family: 'Poppins', sans-serif !important;
    font-size: 24px;
    /* Ajuste dinámico del texto */
    text-align: justify;
    margin: 30px auto 0;
    /* Centra el cuadro y elimina el margen negativo */
    padding-bottom: 2%;
    line-height: 50PX;
    /* Ajuste dinámico */
}


/* Ajustes para pantallas más pequeñas */

@media screen and (max-width: 768px) {
    .cuadro {
        border-left: 7px solid #137261;
        /* Más delgado en pantallas chicas */
        font-size: 20px;
        /* Aumenta el tamaño del texto */
        padding-left: 3%;
    }
}


/* Ajustes para pantallas muy pequeñas (móviles) */

@media screen and (max-width: 480px) {
    .cuadro {
        font-size: 20px;
        ;
        /* Más grande en móviles */
        border-left: 5px solid #137261;
        padding-left: 2%;
    }
}


/* --- Sección Hero --- */

.herocall {
    position: relative;
    height: 100vh;
    background: url('../img/cfp.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlaycall {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-textcall {
    position: relative;
    z-index: 1;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    animation: fadeIn 1.5s ease-in-out;
}

.hero-textcall h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-textcall p {
    font-size: 18px;
    font-weight: 300;
}


/* --- Animaciones --- */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Responsividad --- */

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        text-align: right;
        padding: 15px;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 10px 0;
    }
    .hamburger {
        display: block;
    }
    .hero-text h1 {
        font-size: 36px;
    }
    .hero-text p {
        font-size: 16px;
    }
}

.btn {
    background-color: white;
    border: 1px solid gray-light;
    border-radius: 1rem;
    color: gray-dark;
    padding: 0.5rem;
    text-transform: lowercase;
}

.btn--block {
    display: block;
    width: 100%;
}

.div1:hover {
    transform: scale(1.05);
    transition-duration: 0.4s;
}

.parent .div1 .rec {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
}

.div1 {
    align-items: center;
    font-size: 22px;
    background: linear-gradient(90deg, #E1FFBB 0%, #1daa9086 100%);
    border-radius: 30px;
    padding: 5px;
    width: 280px;
    /* Ancho fijo */
    height: 300px;
    /* Alto fijo */
    color: rgb(0, 0, 0);
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-weight: normal;
    margin: 0 auto;
    /* Centra cada recuadro individualmente */
}

.parent {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Se ajusta a la pantalla */
    gap: 10px;
    /* Espacio entre recuadros */
    justify-content: center;
    /* Centra la cuadrícula en su contenedor */
    align-items: center;
    /* Asegura alineación vertical */
    width: 100%;
    max-width: 1200px;
    /* Evita que se extienda demasiado en pantallas grandes */
    margin: 0 auto;
    /* Centra el grid en la página */
    padding: 10px;
    /* Agrega un pequeño margen para evitar que se pegue a los bordes */
}

.p {
    color: #000000;
    font-weight: normal;
}

.links {
    display: flex;
    justify-content: center;
    /* Centra los botones horizontalmente */
    align-items: center;
    /* Centra los botones verticalmente */
    height: 100px;
    /* Define la altura del contenedor */
    padding: 40px;
    /* Añade espacio alrededor del contenedor */
    gap: 20px;
    /* Añade un espacio de 20px entre los botones */
}

.topics-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.topic-card {
    width: 120px;
    /* Aumenta el tamaño si es necesario */
    height: auto;
    /* Ajusta la altura para que el texto no se esconda */
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    position: relative;
    padding: 10px;
}

.icon {
    width: 95px;
    height: 95px;
}

.topic-card .text {
    visibility: hidden;
    /* Oculto por defecto */
    opacity: 0;
    height: 0;
    /* No ocupa espacio hasta que se active */
    overflow: hidden;
    transition: opacity 0.3s ease, height 0.3s ease;
    font-size: 14px;
    text-align: center;
    margin-top: 5px;
}

.topic-card:hover {
    transform: translateY(-10px);
    background-color: #ffcc00;
}

.topic-card:hover .text {
    visibility: visible;
    opacity: 1;
    height: auto;
    /* Ahora sí ocupa espacio */
}

.call-for-papers {
    background: linear-gradient(135deg, #1daa9046, #ffffff);
    padding: 50px 40px;
    /* Un poco más de espacio interno */
    border-radius: 15px;
    /* Bordes más suaves */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    margin: 40px auto;
    max-width: 1100px;
    line-height: 1.8;
    font-weight: normal;
}

.call-for-papers p {
    font-size: 18px;
    text-align: justify;
    color: #000000;
    margin-bottom: 20px;
}

.fechas {
    width: 100%;
    /* Establece el ancho del elemento a un 60% del contenedor padre */
    height: auto;
    /* La altura se ajusta automáticamente en función del contenido del recuadro */
    display: flex;
    /* Activa el modelo de layout Flexbox */
    justify-content: center;
    /* Centra los elementos hijos horizontalmente dentro del contenedor */
    align-items: center;
    /* Centra los elementos hijos verticalmente dentro del contenedor */
    /* Puedes agregar más atributos de estilo según lo necesites, por ejemplo: */
}

.fechas p {
    width: 1100px;
    height: 70px;
    background-color: #146b5b;
    color: #ffffff;
    font-size: 20px;
    border-radius: 4px;
    text-align: center;
    font-weight: normal;
    margin-top: 0px;
    padding: 20px;
    /* Espaciado interno alrededor del contenido dentro de .fechas */
    border-radius: 10px;
    /* Bordes redondeados para un estilo más suave */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Agrega sombra al recuadro */
    margin: 0 auto;
    /* Centra el contenedor .fechas dentro de su contenedor padre en horizontal */
    text-align: center;
    /* Alinea el texto dentro del recuadro al centro */
}

.call-for-papers .ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}


ul ul {
    padding-left: 20px; /* or margin-left: 20px; */
}


.call-for-papers li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

.call-for-papers li::before {
    position: absolute;
    left: 0;
    color: #000000ad;
    font-weight: bold;
}

.call-for-papers a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: bold;
}

.button-container {
    display: flex;
    justify-content: center;
    /* Centra el botón horizontalmente */
    align-items: center;
    /* Centra el botón verticalmente */
    height: 100px;
    /* Asegura que el contenedor ocupe toda la altura de la ventana */
}

.btn-templates {
    display: inline-block;
    margin: 25px 0;
    padding: 12px 20px;
    background-color: #146d5dec;
    color: #ffffff;
    font-weight: normal;
    text-transform: uppercase;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.call-for-papers .btn-templates {
    display: inline-block;
    margin: 25px 0;
    padding: 12px 20px;
    background-color: #146d5dec;
    color: #ffffff;
    font-weight: normal;
    text-transform: uppercase;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-templates:hover {
    background-color: #ffcc00;
    color: #000000;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .call-for-papers {
        padding: 30px 15px;
    }
    .call-for-papers p {
        font-size: 15px;
    }
    .fechas p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .btn-templates {
        width: 100%;
        text-align: center;
    }
}

#carrusel-caja {
    -moz-animation: automatizacion 15s infinite linear;
    -o-animation: automatizacion 15s infinite linear;
    -webkit-animation: automatizacion 15s infinite linear;
    animation: automatizacion 15s infinite linear;
    -webkit-transition: all 0.75s ease;
    -moz-transition: all 0.75s ease;
    -ms-transition: all 0.75s ease;
    -o-transition: all 0.75s ease;
    transition: all 0.75s ease;
    height: 500px;
    width: 300%;
}

#carrusel-contenido {
    margin: 0 auto;
    overflow: hidden;
    text-align: left;
}

.imagenes {
    height: 500px;
    width: 100%;
}

.carrusel-elemento {
    float: left;
    width: 33.333%;
}


/*keyframe por cada elemento del slide*/

@-moz-keyframes automatizacion {
    0% {
        margin-left: 0;
    }
    30% {
        margin-left: 0;
    }
    35% {
        margin-left: -100%;
    }
    65% {
        margin-left: -100%;
    }
    70% {
        margin-left: -200%;
    }
    95% {
        margin-left: -200%;
    }
    100% {
        margin-left: 0;
    }
}

@-webkit-keyframes automatizacion {
    0% {
        margin-left: 0;
    }
    30% {
        margin-left: 0;
    }
    35% {
        margin-left: -100%;
    }
    65% {
        margin-left: -100%;
    }
    70% {
        margin-left: -200%;
    }
    95% {
        margin-left: -200%;
    }
    100% {
        margin-left: 0;
    }
}

@keyframes automatizacion {
    0% {
        margin-left: 0;
    }
    30% {
        margin-left: 0;
    }
    35% {
        margin-left: -100%;
    }
    65% {
        margin-left: -100%;
    }
    70% {
        margin-left: -200%;
    }
    95% {
        margin-left: -200%;
    }
    100% {
        margin-left: 0;
    }
}

@media screen and (max-width: 1234px) {
    .llamadoimg h1 {
        font-size: 2rem;
        margin-top: 18px;
        margin-left: 10px;
    }
    .llamadoimg {
        background-size: contain;
    }
    .fechas {
        line-height: 20px;
    }
    .texto input {
        width: 60%;
        margin-left: 15%;
        font-size: 0.8em;
    }
    .enlaces img {
        width: 100%;
    }
    .texto {
        width: 80%;
        margin-left: 0px;
    }
    .imagenes {
        height: 200px;
        width: auto;
    }
    #carrusel-contenido {
        height: 200px;
        width: 100%;
    }
}

.footer {
    font-weight: normal;
}


/* ----- Ajustes Generales ----- */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}


/* HERO SECTION: Ajuste del texto para pantallas pequeñas */

@media screen and (max-width: 768px) {
    .hero-textcall h1 {
        font-size: 36px;
    }
    .hero-textcall p {
        font-size: 16px;
    }
}


/* HACER QUE .texto Y .cuadro SE ADAPTEN A PANTALLAS PEQUEÑAS */

@media screen and (max-width: 1024px) {
    .texto {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        padding: 5%;
        text-align: center;
    }
    .texto h1,
    .texto h3 {
        text-align: center;
    }
    .cuadro {
        margin-left: 0;
        padding-left: 3%;
    }
}


/* HACER QUE LAS TARJETAS .div1 SE ADAPTEN A DIFERENTES PANTALLAS */

@media screen and (max-width: 768px) {
    .div1 {
        width: 100%;
        /* Ocupará todo el ancho en móviles */
        max-width: 300px;
        height: auto;
        padding: 15px;
    }
}


/* HACER QUE LOS BOTONES SEAN MÁS FÁCILES DE USAR EN MÓVILES */

@media screen and (max-width: 480px) {
    .btn {
        width: 100%;
        font-size: 14px;
    }
}


/* AJUSTAR .topics-container PARA QUE SE ADAPTE A PANTALLAS PEQUEÑAS */

@media screen and (max-width: 1024px) {
    .topics-container {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .topic-card {
        width: calc(50% - 20px);
        /* 2 columnas en pantallas medianas */
    }
}

@media screen and (max-width: 480px) {
    .topic-card {
        width: 100%;
        /* 1 columna en móviles */
    }
}


/* AJUSTAR .fechas PARA QUE NO SE DESBORDE EN MÓVILES */

@media screen and (max-width: 768px) {
    .fechas p {
        width: 90%;
        font-size: 16px;
        padding: 15px;
    }
}


/* HACER QUE EL CARRUSEL SE ADAPTE A MÓVILES */

@media screen and (max-width: 768px) {
    .imagenes {
        height: auto;
        width: 100%;
    }
    #carrusel-contenido {
        height: auto;
    }
}