@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;
}


/* --- Sección Hero --- */

.herosede {
    position: relative;
    min-height: 100vh;
    /* Se cambió de height a min-height */
    background: url('../img/ciita_ipn.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlaysede {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-textsede {
    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-textsede h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-textsede p {
    font-size: 18px;
    font-weight: 300;
}


/* --- Animaciones --- */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Encabezados --- */

.titulo h1 {
    color: #0d463b;
    font-size: 30px;
    font-weight: normal;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    background: #ffcc00;
    -webkit-background-clip: text;
    background-clip: text;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.titulo {
    background-color: #ffcc00;
    width: 80%;
    /* Se cambió max-width */
    margin: 0 auto;
}


/* --- Sección Información --- */

.infociudades {
    background: linear-gradient(135deg, #1daa9046, #ffffff);
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    margin: 40px auto;
    width: 80%;
    /* Se cambió max-width */
    line-height: 1.8;
    font-weight: normal;
    text-align: justify;
}

.infociudades p {
    font-size: 18px;
    color: #000;
    margin-bottom: 20px;
}

.infociudades ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.infociudades li {
    margin-bottom: 12px;
    padding-left: 25px;
}

.infociudades a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: bold;
}


/* --- Mapa --- */

.inforeg {
    width: 70%;
    max-width: 600px;
    /* Controla el ancho máximo */
    margin: 0 auto;
}

.inforeg iframe {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
    /* Mantiene la proporción */
}

@media (max-width: 500px) {
    .inforeg iframe {
        min-width: 300px;
        height: 200px;
    }
}


/* --- Carrusel --- */

.carr {
    display: flex;
    flex-wrap: wrap;
    /* Evita que los elementos se encimen */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Se cambió height a min-height */
    margin: 0;
    background-color: #f4f4f4;
}

.carousel-container {
    width: 600px;
    height: auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.carousel-inner {
    display: flex;
    width: 100%;
    transition: transform 5s ease-in-out;
}

.carousel-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 10px;
}


/* --- Responsividad --- */

@media screen and (max-width: 1024px) {
    .titulo h1 {
        font-size: 26px;
    }
}

@media screen and (max-width: 768px) {
    .titulo h1 {
        font-size: 22px;
        letter-spacing: 1px;
    }
    .infociudades {
        padding: 30px 15px;
        margin: 20px auto;
    }
    .infociudades p {
        font-size: 15px;
    }
    .carousel-container {
        width: 90%;
    }
    .carousel-inner img {
        width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 480px) {
    button {
        width: 100%;
        font-size: 14px;
        padding: 12px;
    }
}