*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#f5f7fa;
    color:#333;
}

/*---------------------*/

header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 80px;
    background:black;
    position:sticky;
    top:0;
    z-index:999;
    box-shadow:0 4px 12px rgba(0,0,0,.25);
}

.logo{
    font-size:30px;
    font-weight:bold;
    color:white;
}

.img{
    height:180px;
    width:auto;
    object-fit:contain;
}

nav{
	
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:35px;
}

nav a{
    color:white;
    text-decoration:none;
    font-size:40px;
}


/*---------------------*/
/* PRESENTACIÓN en imagenex <´¨¨> */

.hero {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    animation: slider 16s infinite;
}

.slide1 {
    animation-delay: 0s;
}

.slide2 {
    animation-delay: 4s;
}

.slide3 {
    animation-delay: 8s;
}

.slide4 {
    animation-delay: 12s;
}

@keyframes slider {

    0% {
        opacity: 0.5;
    }

    5% {
        opacity: 1;
    }

    20% {
        opacity: 1;
    }

    25% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/*---------------------*/

.overlay{
    background:rgba(0,0,0,.55);
    padding:60px;
    border-radius:15px;
    text-align:center;
    color:white;
    backdrop-filter:blur(5px);
}

.overlay h1{
    font-size:55px;
    margin-bottom:20px;
}

.overlay p{
    font-size:22px;
    margin-bottom:35px;
}

.boton{
    display:inline-block;
    padding:15px 35px;
    background:#00b894;
    color:white;
    text-decoration:none;
    border-radius:30px;
    font-size:18px;
    transition:.3s;
}

.boton:hover{
    background:#00d1a0;
    transform:translateY(-3px);
}

/*---------------------*/

.contenido{
    padding:80px;
    text-align:center;
}

.contenido h2{
    font-size:40px;
    margin-bottom:25px;
    color:#004b8d;
}

.contenido p{
    max-width:900px;
    margin:auto;
    line-height:30px;
    font-size:18px;
    margin-bottom:40px;
}




.imagen{
    width:80%;
    overflow:hidden;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.imagen img{
    width:100%;
    display:block;
    transition:.5s;
}

.imagen:hover img{
    transform:scale(1.05);
}

/*---------------------*/

.cards{
    display:flex;
    justify-content:center;
    gap:30px;
    padding:15px;
    background:white;
    flex-wrap:wrap;
}

.card{
    background:white;
    width:250px;
    padding:35px;
    border-radius:10px;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
    transition:.4s;
}

.card:hover{
    transform:translateY(-10px);
}

.card h3{
    margin-bottom:20px;
    font-size:28px;
    color:#004b8d;
}

.card p{
    line-height:15px;
}

/*---------------------*/

.servicios{
    padding:5px 10px;
    background:black;
    color:white;
    text-align:center;

    display:flex;
    flex-direction:column;
    align-items:flex-end; 
}
.servicios h2{
    font-size:40px;
    margin-bottom:20px;
}

.contacto{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.fila{
    display:flex;
    align-items:center;
    gap:20px;
}

.icono{
    width:100px;
    height:100px;
    object-fit:contain;
}


.item {
    background: #ffffff;
    padding: 4px;
    border-radius: 9px;
    width: 120px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.item img {
    display: block;
    width: 150px;
    height: 50px;
    object-fit: contain;
    transition: all 0.3s ease;
}


/* INTERACTIVIDAD */

.item:hover {
    background: #00b894;
    transform: scale(1.05);
    box-shadow: 0 5px 12px rgba(0, 184, 148, 0.30);
}

.item:hover img {
    transform: scale(1.03);
}


.correo{
    margin-left:120px;
}

.correo{
    grid-column: 2 / 4;   /* Empieza en la columna de los botones */
    justify-self: center;

    background: #fff;
    padding: 15px 30px;
    border-radius: 10px;
}

.correo a{
    text-decoration: none;
    color: #004b8d;
    font-weight: bold;
}
/*---------------------*/

footer{
    background:#111;
    color:white;
    text-align:center;
    padding:30px;
    font-size:16px;
}

/*---------------------*/

@media(max-width:900px){

header{
    flex-direction:column;
    padding:20px;
}

nav{
    margin-top:20px;
}

nav a{
    margin:10px;
    display:inline-block;
}

.overlay h1{
    font-size:38px;
}

.overlay p{
    font-size:18px;
}

.contenido{
    padding:40px;
}

}

/* 
   el menu */

#nav {
    width: 100%;
    background-color: lightgrey;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1000;

    box-shadow: 0 3px 8px rgba(0,0,0,0.20);
}

/* Contenedor del menú */

#nav .fixed {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

/* Tabla */

#nav table {
    width: 100%;
    max-width: 1250px;
    height: 65px;
    border-collapse: collapse;
}

/* Celdas */

#nav td.nav {
    text-align: center;
    padding: 0 5px;
}

/* Enlaces */

#nav td.nav a {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 65px;
    padding: 0 12px;

    color: #222;
    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: bold;

    white-space: nowrap;

    transition: 
        color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease;
}

/* Efecto al pasar el mouse */

#nav td.nav a:hover {
    color: #ffffff;
    background: #009db5;

    transform: translateY(-2px);
}

/* Efecto al hacer clic */

#nav td.nav a:active {
    transform: translateY(0);
}

/* Línea inferior al pasar el mouse */

#nav td.nav {
    position: relative;
}

#nav td.nav::after {
    content: "";
    position: absolute;

    bottom: 0;
    left: 50%;

    width: 0;
    height: 4px;

    background: #009db5;

    transform: translateX(-50%);

    transition: width 0.3s ease;
}

#nav td.nav:hover::after {
    width: 80%;
}
.titulo-rutas {
    text-align: center;
    font-family: "Arial";
    font-size: 15px;
    font-weight: bold;
    color: #1f1f1f;
     margin: 1px 0;
}

.text_nosotros1 {
    padding: 25px 35px;
    background: #ffffff;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    vertical-align: top;
}


/* BLOQUES GENERALES */

.bloque_nosotros {
    background: #FFC4C4;
    border-left: 5px solid #FF3636;
    padding: 20px 25px;
    margin-bottom: 18px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(242, 46, 46, 0.12);
    transition: all 0.25s ease;
}


/* EFECTO DINAMICO */

.bloque_nosotros:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(247, 86, 86, 0.20);
}


/* TITULOS */

.bloque_nosotros h2 {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 700;
    color: #DE2323;
    letter-spacing: 1px;
    border-bottom: 1px solid #FF9696;
    padding-bottom: 8px;
}


/* TEXTO */

.bloque_nosotros p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
    color: #444;
}


/* SECCION */

.seccion_nosotros {
    background: #ffffff;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    border: 1px solid #FF9696;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(21, 148, 71, 0.10);
}


/* TITULO PRINCIPAL */

.titulo_seccion {
    background: #DE2323;
    color: #ffffff;
    padding: 19px 26px;
    font-size: 21px;
    font-weight: bold;
    letter-spacing: 1px;
    border-left: 7px solid  #FF9696;
    position: relative;
}


/* PEQUEÑO DETALLE INFERIOR */

.titulo_seccion::after {
    content: "";
    display: block;
    width: 55px;
    height: 3px;
    background: #ffffff;
    margin-top: 8px;
    border-radius: 3px;
}


/* CONTENIDO */

.contenido_objetivos {
    padding: 22px 30px;
    background: #ffffff;
}


/* OBJETIVOS */

.objetivo {
    padding: 16px 15px;
    border-bottom: 1px solid #d7eadd;
    transition: all 0.25s ease;
}


/* EFECTO AL PASAR EL CURSOR */

.objetivo:hover {
    background: #f2faf5;
    padding-left: 22px;
}


/* NOMBRE DEL OBJETIVO */

.objetivo b {
    display: block;
    color: #159447;
    font-size: 17px;
    margin-bottom: 6px;
    font-weight: bold;
}


/* DESCRIPCION */

.objetivo p {
    margin: 0;
    color: #4a4a4a;
    font-size: 16px;
    line-height: 1.75;
    text-align: justify;
}


/* ULTIMO OBJETIVO */

.objetivo:last-child {
    border-bottom: none;
}


/* SEPARACION ENTRE SECCIONES */

.separacion_secciones {
    height: 30px;
}
/* CADA OBJETIVO */

.objetivo {
    padding: 14px 0;
    border-bottom: 1px solid #cccccc;
}


/* QUITAR LINEA AL ULTIMO */

.objetivo:last-child {
    border-bottom: none;
}


/* NOMBRE DEL OBJETIVO */

.objetivo b {
    display: block;
    font-size: 17px;
    color: #333333;
    margin-bottom: 5px;
}


/* TEXTO */

.objetivo p {
    margin: 0;
    padding: 0;
    color: #555555;
    font-size: 16px;
    line-height: 1.7;
    text-align: justify;
}

/* noticias de facebbok*/
.seccion-noticias {
    width: 100%;
    padding: 35px 20px 50px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;

    background: #f4f6f8;
}

.encabezado-noticias {
    width: 500px;
    max-width: 100%;

    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 20px;
}

.icono-noticias {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0086b3;
    color: white;

    border-radius: 12px;

    font-size: 24px;
}

.encabezado-noticias h2 {
    margin: 0;

    font-family: Arial, sans-serif;
    font-size: 28px;

    color: #222;
}

.encabezado-noticias p {
    margin: 3px 0 0;

    font-family: Arial, sans-serif;
    font-size: 13px;

    color: #777;
}

.facebook-noticias {
    width: 500px;
    max-width: 100%;

    min-height: 700px;

    display: flex;
    justify-content: center;

    background: white;

    border-radius: 14px;

    overflow: hidden;

    box-shadow: 0 8px 25px rgba(0,0,0,.12);
}

@media (max-width: 600px) {

    .seccion-noticias {
        padding: 25px 10px 40px;
    }

    .facebook-noticias {
        width: 100%;
    }

    .encabezado-noticias {
        width: 100%;
    }

}


/* aqui va recomendaciones 

espero que no te revuelvas si lees esto =)
*/


.info-usuario {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 35px 25px 60px;

    box-sizing: border-box;

    font-family: Arial, Helvetica, sans-serif;

    color: #30383d;
}


/* =====================================================
   BLOQUES
===================================================== */

.info-bloque {
    width: 100%;

    margin-bottom: 30px;

    background: #ffffff;

    border: 1px solid #e2e8e5;

    border-radius: 10px;

    overflow: hidden;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.06);
}


/* =====================================================
   ENCABEZADO
===================================================== */

.info-titulo {
    width: 100%;

    min-height: 82px;

    display: flex;

    align-items: center;

    gap: 18px;

    padding: 18px 25px;

    box-sizing: border-box;

    background: #E32B2B;

    color: white;
}


/* Número */

.info-numero {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 2px solid rgba(255,255,255,0.8);

    border-radius: 50%;

    font-size: 15px;

    font-weight: bold;
}


/* Título */

.info-titulo h2 {
    margin: 0;

    font-size: 24px;

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: 1px;
}


/* Subtítulo */

.info-titulo p {
    margin: 5px 0 0;

    font-size: 13px;

    color: rgba(255,255,255,0.85);
}


/* =====================================================
   CONTENIDO
===================================================== */

.info-contenido {
    width: 100%;

    padding: 5px 25px 10px;

    box-sizing: border-box;

    background: #ffffff;
}


/* =====================================================
   AVISO
===================================================== */

.info-aviso {
    margin: 15px 0 20px;

    padding: 20px 22px;

    background: #FFE0E0;

    border-left: 5px solid #E32B2B;

    border-radius: 5px;
}


.info-aviso strong {
    display: block;

    margin-bottom: 7px;

    color: #E32B2B;

    font-size: 17px;
}


.info-aviso p {
    margin: 0;

    font-size: 15px;

    line-height: 1.6;
}


/* =====================================================
   REGLAS
===================================================== */

.info-regla {
    padding: 18px 5px;

    border-bottom: 1px solid #e3e6e5;
}


.info-regla:last-child {
    border-bottom: none;
}


.info-regla h3 {
    margin: 0 0 7px;

    font-size: 16px;

    color: #222;

    font-weight: 700;
}


.info-regla p {
    margin: 0;

    font-size: 15px;

    line-height: 1.6;

    color: #4b555a;
}


/* =====================================================
   LISTA
===================================================== */

.info-regla ul {
    margin: 12px 0 3px;

    padding: 0;

    list-style: none;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 8px 20px;
}


.info-regla li {
    position: relative;

    padding: 10px 12px 10px 35px;

    background: #f6f8f7;

    border-radius: 5px;

    font-size: 14px;

    color: #4b555a;
}


.info-regla li::before {
    content: "✓";

    position: absolute;

    left: 12px;

    top: 50%;

    transform: translateY(-50%);

    color: #F03737;

    font-weight: bold;

    font-size: 16px;
}


/* =====================================================
   SEGURIDAD
===================================================== */

.info-seguridad .info-titulo {
    background: #E32B2B;
}


.info-seguridad .info-regla h3 {
    color: #E32B2B;
}


/* =====================================================
   EFECTO HOVER
===================================================== */

.info-regla {
    transition: background 0.2s ease;
}


.info-regla:hover {
    background: #fafcfb;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 768px) {

    .info-usuario {
        padding: 25px 15px 45px;
    }

    .info-titulo {
        padding: 16px 18px;
    }

    .info-titulo h2 {
        font-size: 20px;
    }

    .info-contenido {
        padding-left: 18px;
        padding-right: 18px;
    }

    .info-regla ul {
        grid-template-columns: 1fr;
    }

}


/* =====================================================
   CELULAR
===================================================== */

@media (max-width: 480px) {

    .info-usuario {
        padding: 20px 10px 40px;
    }

    .info-bloque {
        margin-bottom: 20px;

        border-radius: 8px;
    }

    .info-titulo {
        min-height: 70px;

        gap: 12px;

        padding: 14px;
    }

    .info-numero {
        width: 38px;
        height: 38px;

        font-size: 12px;
    }

    .info-titulo h2 {
        font-size: 17px;

        letter-spacing: 0.5px;
    }

    .info-titulo p {
        font-size: 11px;
    }

    .info-contenido {
        padding: 5px 14px 10px;
    }

    .info-aviso {
        padding: 15px;

        margin-top: 12px;
    }

    .info-aviso p,
    .info-regla p {
        font-size: 14px;
    }

    .info-regla {
        padding: 15px 2px;
    }

    .info-regla h3 {
        font-size: 15px;
    }

}


/* =========================================
   VIDEO YOUTUBE
========================================= */

.video-seccion {
    width: 100%;
    max-width: 1100px;

    margin: 40px auto;
    padding: 0 20px;

    box-sizing: border-box;

    font-family: Arial, Helvetica, sans-serif;
}


/* TÍTULO */

.video-titulo {
    text-align: center;
    margin-bottom: 20px;
}

.video-titulo h2 {
    margin: 0;

    color: #E32B2B;

    font-size: 28px;
    font-weight: 700;
}

.video-titulo p {
    margin: 6px 0 0;

    color: #666;

    font-size: 14px;
}


/* CONTENEDOR DEL VIDEO */

.video-contenedor {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    position: relative;

    aspect-ratio: 16 / 9;

    background: #000;

    overflow: hidden;

    border-radius: 12px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.18);
}


/* IFRAME */

.video-contenedor iframe {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    border: 0;
}


/* =========================================
   CELULAR
========================================= */

@media (max-width: 600px) {

    .video-seccion {
        padding: 0 10px;
        margin: 30px auto;
    }

    .video-titulo h2 {
        font-size: 23px;
    }

    .video-titulo p {
        font-size: 13px;
    }

    .video-contenedor {
        border-radius: 8px;
    }

}


/* =========================================
   MÓDULOS MEXIBÚS
========================================= */

.modulos-section {
    width: 100%;
    max-width: 1250px;
    margin: 70px auto;
    padding: 0 25px;
    box-sizing: border-box;
}


/* ENCABEZADO */

.modulos-header {
    text-align: center;
    margin-bottom: 45px;
}

.modulos-header h2 {
    margin: 12px 0;
    font-size: 38px;
    font-weight: 800;
    color: #E32B2B;
    letter-spacing: -1px;
}

.modulos-header p {
    margin: 0 auto;
    max-width: 700px;
    color: #666;
    font-size: 17px;
    line-height: 1.6;
}

.linea {
    display: block;
    width: 70px;
    height: 4px;
    margin: auto;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
       #E32B2B,
       #E32B2B
    );
}


/* GRID */

.modulos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}


/* TARJETA */

.modulo-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 22px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);

    border: 1px solid #eeeeee;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* EFECTO HOVER */

.modulo-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.15);
}


/* IMAGEN */

.modulo-img {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #eeeeee;
}

.modulo-img img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform 0.5s ease;
}


/* ZOOM DE IMAGEN */

.modulo-card:hover .modulo-img img {
    transform: scale(1.07);
}


/* ETIQUETA */

.linea-badge {
    position: absolute;

    top: 18px;
    left: 18px;

    padding: 8px 14px;

    background: #E32B2B;
    color: white;

    border-radius: 30px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .5px;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, .2);
}


/* CONTENIDO */

.modulo-content {
    padding: 25px;
}

.modulo-content h3 {
    margin: 0 0 10px;

    color: #222;

    font-size: 24px;
    font-weight: 800;
}

.modulo-content p {
    margin: 0 0 22px;

    color: #707070;

    font-size: 15px;
    line-height: 1.6;
}


/* BOTÓN */

.btn-ubicacion {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    width: 100%;

    padding: 14px 20px;

    box-sizing: border-box;

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #E32B2B,
        #E32B2B
    );

    color: #ffffff;

    text-decoration: none;

    font-size: 16px;
    font-weight: 700;

    box-shadow:
        0 7px 18px rgba(7, 140, 66, .25);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


/* ICONO */

.btn-ubicacion span {
    font-size: 20px;
}


/* HOVER BOTÓN */

.btn-ubicacion:hover {
    color: white;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(7, 140, 66, .35);

    background: linear-gradient(
        135deg,
        #E85A5A,
        #E85A5A
    );
}


/* CLICK */

.btn-ubicacion:active {
    transform: scale(.97);
}


/* =========================================
   RESPONSIVE TABLET
========================================= */

@media (max-width: 900px) {

    .modulos-grid {
        grid-template-columns: 1fr;
        max-width: 650px;
        margin: auto;
    }

    .modulos-header h2 {
        font-size: 32px;
    }

}


/* =========================================
   RESPONSIVE CELULAR
========================================= */

@media (max-width: 600px) {

    .modulos-section {
        margin: 40px auto;
        padding: 0 15px;
    }

    .modulos-header {
        margin-bottom: 30px;
    }

    .modulos-header h2 {
        font-size: 27px;
    }

    .modulos-header p {
        font-size: 15px;
    }

    .modulo-img {
        height: 230px;
    }

    .modulo-content {
        padding: 20px;
    }

    .modulo-content h3 {
        font-size: 21px;
    }

}


/* =====================================================
   RUTA MEXIBÚS
===================================================== */

.ruta-mexibus {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 25px;
    box-sizing: border-box;
}


/* =====================================================
   ENCABEZADO
===================================================== */

.ruta-header {
    text-align: center;
    margin-bottom: 45px;
}

.ruta-header h2 {
    margin: 12px 0;

    color: #DE2828;

    font-size: 38px;
    font-weight: 800;

    letter-spacing: -1px;
}

.ruta-header p {
    max-width: 700px;

    margin: auto;

    color: #666;

    font-size: 16px;
    line-height: 1.6;
}

.ruta-linea {
    display: block;

    width: 70px;
    height: 4px;

    margin: auto;

    border-radius: 20px;

    background: linear-gradient(
        90deg,
        #DE2828,
        #DE2828
    );
}




/* =====================================================
   INFORMACIÓN DE LA RUTA
===================================================== */
.ruta-info {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    margin: 0 auto 60px auto;
}


/* DESCRIPCIÓN */

.ruta-descripcion {
    display: flex;

    align-items: center;

    gap: 20px;

    padding: 30px;

    width: 100%;
    max-width: 750px;

    background: #ffffff;

    border-radius: 20px;

    border: 1px solid #e8e8e8;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .07);
}

.ruta-icono {
    display: flex;

    align-items: center;
    justify-content: center;

    min-width: 75px;
    height: 75px;

    border-radius: 10px;

    background: 
        #DE2828;

    font-size: 20px;

}

.ruta-descripcion h3 {
    margin: 0 0 8px;

    color: #222;

    font-size: 20px;
}

.ruta-descripcion p {
    margin: 5px 0;

    color: #666;

    line-height: 1.5;
}

.ruta-dato {
    color: #DE2828 !important;

    font-weight: 700;
}

/* =====================================================
   SERVICIOS
===================================================== */

.ruta-servicios {
    display: flex;

    flex-direction: column;

    gap: 15px;

    justify-content: center;
}

.servicio-ruta {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 20px;

    border-radius: 16px;

    background: #f7fff9;

    border-left: 5px solid #DE2828;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, .05);

    transition: .3s;
}

.servicio-ruta:hover {
    transform: translateX(6px);

    background: #FABBBB;
}



.servicio-ruta > span {
    font-size: 24px;
}

.servicio-ruta strong {
    display: block;

    color: #222;

    font-size: 15px;

    text-transform: uppercase;
}

.servicio-ruta small {
    color: #777;

    font-size: 13px;
}

/* =====================================================
   TÍTULO ESTACIONES
===================================================== */

.estaciones-titulo {
    display: flex;

    align-items: center;

    gap: 16px;

    margin-bottom: 25px;
}

.estaciones-titulo h3 {
    margin: 0;

    color: #DE2828;

    font-size: 25px;

    font-weight: 800;

    white-space: nowrap;
}

.estaciones-titulo span {
    flex: 1;

    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #DE2828
    );
}

.estaciones-titulo span:last-child {
    background: linear-gradient(
        90deg,
        #DE2828,
        transparent
    );
}


.estaciones-grid {
    display: grid;

    grid-template-columns: repeat(5, 280px);

    justify-content: center;

    column-gap: 45px;

    row-gap: 90px;

    width: 100%;
}


/* =====================================================
   TARJETA
===================================================== */

.estacion-card {
    overflow: hidden;

    width: 300px;

    margin-bottom: 10px;

    background: #ffffff;

    border-radius: 14px;

    border: 1px solid #e3e7e5;

    box-shadow:
        0 5px 16px rgba(0, 0, 0, .08);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.estacion-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 12px 25px rgba(0, 0, 0, .14);
}


/* =====================================================
   IMAGEN
   NO SE MODIFICA
===================================================== */

.estacion-imagen {
    position: relative;

    width: 100%;

    height: 190px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #DE2828,
            #FA5F5F
        );
}

.estacion-imagen img {
    width: 100%;

    height: 100%;

    object-fit: contain;

    display: block;

    margin: 0 auto;

    transition: transform .5s ease;
}

.estacion-card:hover
.estacion-imagen img {
    transform: scale(1.08);
}


/* =====================================================
   NUMERO
===================================================== */

.numero-estacion {
    position: absolute;

    top: 12px;

    left: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 40px;

    height: 40px;

    border-radius: 50%;

    background: #ffffff;

    color: #DE2828;

    font-size: 13px;

    font-weight: 800;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, .18);
}


/* =====================================================
   CONTENIDO
===================================================== */

.estacion-contenido {
    padding: 16px 18px 17px;
}

.estacion-linea {
    display: inline-block;

    padding: 4px 9px;

    margin-bottom: 6px;

    border-radius: 15px;

    background: #FABBBB;

    color: #DE2828;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .4px;
}

.estacion-contenido h4 {
    margin: 4px 0 5px;

    color: #222;

    font-size: 19px;

    line-height: 1.2;

    font-weight: 700;
}

.estacion-contenido p {
    margin: 0 0 13px;

    color: #777;

    font-size: 13px;

    line-height: 1.4;
}


/* =====================================================
   BOTÓN UBICACIÓN
===================================================== */

.btn-estacion {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    width: 100%;

    padding: 11px;

    box-sizing: border-box;

    border-radius: 9px;

    background: linear-gradient(
        135deg,
        #DE2828,
        #FABBBB
    );

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    box-shadow:
        0 5px 13px rgba(7, 139, 65, .22);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.btn-estacion:hover {
    color: #ffffff;

    transform: translateY(-2px);

    background: linear-gradient(
        135deg,
        #DE2828,
        #C91C1C
    );

    box-shadow:
        0 8px 18px rgba(7, 139, 65, .30);
}

.btn-estacion:active {
    transform: scale(.97);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1300px) {

    .estaciones-grid {
        grid-template-columns: repeat(3, 300px);
    }

}


@media (max-width: 1000px) {

    .estaciones-grid {
        grid-template-columns: repeat(2, 300px);
    }

}


@media (max-width: 680px) {

    .estaciones-grid {
        grid-template-columns: 300px;
    }

    .estaciones-titulo h3 {
        font-size: 21px;
    }

}
/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 950px) {

    .ruta-info {
        grid-template-columns: 1fr;
    }

    .estaciones-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .ruta-mexibus {
        margin: 50px auto;

        padding:
            0 15px;
    }

    .ruta-header h2 {
        font-size: 28px;
    }

    .ruta-header p {
        font-size: 14px;
    }

    .ruta-descripcion {
        flex-direction: column;

        text-align: center;

        padding: 22px;
    }

    .estaciones-grid {
        grid-template-columns: 1fr;
    }

    .estaciones-titulo h3 {
        font-size: 21px;
    }

    .estacion-imagen {
        height: 220px;
    }


}


/* =====================================================
   CORREDOR CD. AZTECA - TECÁMAC
===================================================== */

.corredor-info {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 30px;

    margin-bottom: 65px;

    padding: 30px;

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f4fff7 100%
        );

    border: 1px solid #e3eee6;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, .08);
}


/* =====================================================
   DESCRIPCIÓN
===================================================== */

.corredor-descripcion {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 20px;
}

.corredor-etiqueta {
    display: inline-block;

    width: fit-content;

    padding: 7px 14px;

    margin-bottom: 12px;

    border-radius: 20px;

    background: #FABBBB;

    color: #DE2828;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .8px;
}

.corredor-descripcion h3 {
    margin: 0 0 15px;

    color: #222;

    font-size: 30px;

    line-height: 1.05;

    font-weight: 800;
}

.corredor-descripcion h3::after {
    content: "";

    display: block;

    width: 60px;
    height: 4px;

    margin-top: 14px;

    border-radius: 10px;

    background: #DE2828;
}

.corredor-descripcion p {
    max-width: 520px;

    margin: 10px 0;

    color: #666;

    font-size: 15px;

    line-height: 1.7;
}


/* =====================================================
   SERVICIOS
===================================================== */

.corredor-servicios {
    display: flex;

    flex-direction: column;

    gap: 12px;
}


/* =====================================================
   SERVICIO
===================================================== */

.servicio-card {
    position: relative;

    display: flex;

    align-items: center;

    min-height: 100px;

    overflow: hidden;

    border-radius: 14px;

    background: linear-gradient(
        135deg,
        #DE2828,
        #DE2828
    );

    color: white;

    box-shadow:
        0 6px 18px rgba(220, 48, 48, .18);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.servicio-card:hover {
    transform: translateX(5px);

    box-shadow:
        0 10px 25px rgba(220, 48, 48, .18);
}


/* SEGUNDO SERVICIO */

.servicio-card-blanco {
    background: linear-gradient(
        135deg,
        #ffffff,
        #f1fff5
    );

    color: #222;

    border: 1px solid #dceee2;
}


/* =====================================================
   ICONO AUTOBÚS
===================================================== */

.servicio-icono {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 95px;

    align-self: stretch;

    background: rgba(0, 0, 0, .08);

    font-size: 38px;
}


/* =====================================================
   TEXTO
===================================================== */

.servicio-texto {
    padding: 12px 15px;

    flex: 1;
}

.servicio-texto span {
    display: block;

    font-size: 9px;

    font-weight: 700;

    opacity: .8;
}

.servicio-texto strong {
    display: block;

    margin-top: 2px;

    font-size: 12px;
}

.servicio-texto small {
    display: block;

    margin-top: 2px;

    font-size: 11px;

    font-weight: 700;
}

.servicio-texto p {
    margin: 5px 0 0;

    font-size: 9px;

    line-height: 1.3;

    opacity: .85;
}


/* =====================================================
   BOTÓN
===================================================== */

.servicio-btn {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 35px;
    height: 35px;

    margin-right: 12px;

    border: none;

    border-radius: 50%;

    background: white;

    color: #DE2828;

    font-size: 25px;

    cursor: pointer;

    transition:
        transform .2s ease;
}

.servicio-btn:hover {
    transform: scale(1.15);
}


/* =====================================================
   CONEXIONES
===================================================== */

.conexion-card {
    padding: 14px 18px;

    border-radius: 12px;

    background: white;

    border: 1px solid #FABBBB;
}

.conexion-card h4,
.tarifa-card h4 {
    margin: 0 0 8px;

    color: #222;

    font-size: 14px;
}

.conexion-card ul {
    margin: 0;

    padding-left: 18px;

    color: #777;

    font-size: 10px;

    line-height: 1.6;
}


/* =====================================================
   TARIFAS
===================================================== */

.tarifa-card {
    padding: 14px 18px;

    border-radius: 12px;

    background: #FFE3E3;

    border-left: 4px solid #DE2828 ;
}

.tarifa-card p {
    margin: 0 0 5px;

    color: #666;

    font-size: 10px;

    line-height: 1.4;
}

.tarifa-card span {
    color: #079447;

    font-size: 10px;

    font-weight: 700;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 800px) {

    .corredor-info {
        grid-template-columns: 1fr;

        padding: 20px;
    }

    .corredor-descripcion {
        text-align: center;
        align-items: center;
    }

    .corredor-descripcion h3 {
        font-size: 27px;
    }

}


@media (max-width: 500px) {

    .corredor-info {
        padding: 15px;
    }

    .servicio-icono {
        width: 70px;

        font-size: 28px;
    }

    .servicio-texto {
        padding: 10px;
    }

}




/* seccion final */

.seccion_final {
    width: 100%;
    background: #111111;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px 30px;

    /* quitamos gap */
    gap: 0;

    overflow: visible;
}


/* =========================
   MOVIMEX
   ========================= */

.seccion_final .logo {
    width: 250px;
    min-width: 0px;
    max-width: 590px;

    height: 133px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 250px;

    /* separación con TBM */
    margin-right: 495px;
}

.seccion_final .logo img {
    width: 390px !important;
    height: 133px !important;

    display: block;
    object-fit: contain;

    flex-shrink: 0;
}


/* =========================
   TBM - LOGO AZUL
   ========================= */

.seccion_final nav {
    width: 258px;
    min-width: 258px;
    max-width: 258px;

    height: 138px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 258px;

    /* separación con MEXIBÚS */
    margin-right: 60px;
}

.seccion_final nav img {
    width: 258px !important;
    height: 138px !important;

    display: block;
    object-fit: contain;

    flex-shrink: 0;
}


/* =========================
   MEXIBÚS
   ========================= */

.seccion_final > img {
    width: 100px !important;
    min-width: 100px;
    max-width: 100px;

    height: 103px !important;

    display: block;
    object-fit: contain;

    flex: 0 0 100px;
}


/* =========================================================
   RESPONSIVE GENERAL - PC / TABLET / CELULAR
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}


/* =========================================================
   TABLET
   ========================================================= */

@media screen and (max-width: 900px) {

    /* HEADER */

    header {
        padding: 15px 25px;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 25px;
    }

    .img {
        height: 100px;
    }

    nav {
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        gap: 15px;
        flex-wrap: wrap;
    }

    nav a {
        font-size: 20px;
    }


    /* HERO */

    .hero {
        height: 65vh;
        min-height: 450px;
    }

    .overlay {
        width: 90%;
        padding: 35px 25px;
    }

    .overlay h1 {
        font-size: 38px;
    }

    .overlay p {
        font-size: 18px;
    }


    /* CONTENIDO */

    .contenido {
        padding: 50px 25px;
    }

    .contenido h2 {
        font-size: 32px;
    }

    .contenido p {
        font-size: 16px;
        line-height: 1.7;
    }

    .imagen {
        width: 100%;
    }


    /* TARJETAS */

    .cards {
        padding: 25px;
        gap: 20px;
    }

    .card {
        width: min(100%, 300px);
    }


    /* CONTACTO */

    .servicios {
        padding: 20px;
        align-items: center;
    }

    .fila {
        flex-wrap: wrap;
        justify-content: center;
    }

    .correo {
        margin-left: 0;
        grid-column: auto;
    }


    /* MÓDULOS */

    .modulos-section {
        padding: 0 20px;
    }

    .modulos-grid {
        grid-template-columns: 1fr;
    }


    /* ESTACIONES */

    .estaciones-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }

    .estacion-card {
        width: 100%;
    }


    /* CORREDOR */

    .corredor-info {
        grid-template-columns: 1fr;
    }


    /* SECCIÓN FINAL */

    .seccion_final {
        flex-wrap: wrap;
        gap: 25px;
        padding: 25px;
    }

    .seccion_final .logo {
        margin-right: 0;
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }

    .seccion_final nav {
        margin-right: 0;
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }

    .seccion_final > img {
        flex: 0 1 120px;
    }
}


/* =========================================================
   CELULAR
   ========================================================= */

@media screen and (max-width: 600px) {

    body {
        font-size: 16px;
    }


    /* HEADER */

    header {
        padding: 12px 15px;
    }

    .logo {
        font-size: 21px;
    }

    .img {
        height: 75px;
        max-width: 100%;
    }

    nav {
        gap: 5px;
    }

    nav a {
        font-size: 16px;
        margin: 4px;
    }


    /* HERO */

    .hero {
        height: 65vh;
        min-height: 400px;
    }

    .overlay {
        width: 92%;
        padding: 25px 15px;
        border-radius: 12px;
    }

    .overlay h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .overlay p {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .boton {
        width: 100%;
        padding: 13px 20px;
        font-size: 16px;
    }


    /* CONTENIDO */

    .contenido {
        padding: 35px 15px;
    }

    .contenido h2 {
        font-size: 27px;
    }

    .contenido p {
        font-size: 15px;
        line-height: 1.7;
    }


    /* TARJETAS */

    .cards {
        padding: 15px;
        gap: 15px;
    }

    .card {
        width: 100%;
        max-width: 350px;
        padding: 25px 20px;
    }

    .card h3 {
        font-size: 23px;
    }


    /* CONTACTO */

    .servicios {
        padding: 20px 12px;
    }

    .servicios h2 {
        font-size: 28px;
    }

    .fila {
        width: 100%;
        flex-direction: column;
    }

    .icono {
        width: 75px;
        height: 75px;
    }

    .item {
        width: 120px;
    }

    .correo {
        margin: 10px 0 0;
        width: 100%;
        text-align: center;
    }


    /* FACEBOOK */

    .seccion-noticias {
        padding: 25px 10px 35px;
    }

    .encabezado-noticias {
        width: 100%;
    }

    .facebook-noticias {
        width: 100%;
        min-height: 600px;
    }


    /* INFORMACIÓN */

    .info-usuario {
        width: 100%;
        padding: 20px 10px 35px;
    }

    .info-titulo {
        padding: 14px;
    }

    .info-titulo h2 {
        font-size: 17px;
    }

    .info-contenido {
        padding: 5px 14px 10px;
    }

    .info-regla ul {
        grid-template-columns: 1fr;
    }


    /* VIDEO */

    .video-seccion {
        padding: 0 10px;
    }

    .video-titulo h2 {
        font-size: 23px;
    }


    /* MÓDULOS */

    .modulos-section {
        margin: 40px auto;
        padding: 0 12px;
    }

    .modulos-header h2 {
        font-size: 27px;
    }

    .modulos-header p {
        font-size: 14px;
    }

    .modulo-img {
        height: 220px;
    }

    .modulo-content {
        padding: 20px;
    }

    .modulo-content h3 {
        font-size: 21px;
    }


    /* RUTA */

    .ruta-mexibus {
        margin: 45px auto;
        padding: 0 12px;
    }

    .ruta-header h2 {
        font-size: 27px;
    }

    .ruta-header p {
        font-size: 14px;
    }

    .ruta-descripcion {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }


    /* ESTACIONES */

    .estaciones-grid {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 20px;
    }

    .estacion-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .estacion-imagen {
        height: 210px;
    }

    .estaciones-titulo h3 {
        font-size: 20px;
        white-space: normal;
        text-align: center;
    }


    /* CORREDOR */

    .corredor-info {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 20px;
    }

    .corredor-descripcion {
        padding: 10px;
        text-align: center;
        align-items: center;
    }

    .corredor-descripcion h3 {
        font-size: 25px;
    }

    .servicio-icono {
        width: 65px;
        font-size: 26px;
    }

    .servicio-texto {
        padding: 10px;
    }


    /* =====================================================
       SECCIÓN FINAL
       ===================================================== */

    .seccion_final {
        width: 100%;
        flex-direction: column;
        gap: 20px;
        padding: 25px 15px;
    }

    .seccion_final .logo {
        width: 100%;
        height: auto;
        max-width: 100%;
        margin: 0;
        flex: none;
    }

    .seccion_final .logo img {
        width: min(90%, 300px) !important;
        height: auto !important;
    }

    .seccion_final nav {
        width: 100%;
        height: auto;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        flex: none;
    }

    .seccion_final nav img {
        width: min(90%, 230px) !important;
        height: auto !important;
    }

    .seccion_final > img {
        width: 90px !important;
        min-width: 90px;
        max-width: 90px;
        height: auto !important;
    }
}


/* =========================================================
   CELULARES PEQUEÑOS
   ========================================================= */

@media screen and (max-width: 380px) {

    .overlay h1 {
        font-size: 24px;
    }

    .overlay p {
        font-size: 14px;
    }

    .contenido h2 {
        font-size: 24px;
    }

    .modulos-header h2 {
        font-size: 24px;
    }

    .ruta-header h2 {
        font-size: 24px;
    }

    .estacion-contenido h4 {
        font-size: 17px;
    }

    .estacion-imagen {
        height: 190px;
    }
}



/* =====================================================
   MENÚ PRINCIPAL
===================================================== */

#nav {
    width: 100%;
    background: #d3d3d3;
    position: relative;
    z-index: 1000;
}

#nav .fixed {
    width: 100%;
    margin: 0 auto;
}

/* Tabla del menú */
#nav table {
    width: 100% !important;
    max-width: 1020px;
    height: 80px;
    margin: 0 auto;
    border-collapse: collapse;
}

/* Celdas */
#nav td.nav {
    text-align: center;
    padding: 0 18px;
    white-space: nowrap;
}

/* Enlaces */
#nav td.nav a {
    display: block;
    color: #292929;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: bold;
    padding: 30px 5px;
    transition: 0.3s ease;
}

/* Efecto al pasar el mouse */
#nav td.nav a:hover {
    color: #079447;
}


/* =====================================================
   VERSIÓN PARA CELULARES
===================================================== */

@media screen and (max-width: 768px) {

    #nav {
        width: 100%;
        overflow: visible;
    }

    #nav .fixed {
        width: 100%;
    }

    /* Quitamos el tamaño fijo de 1020px */
    #nav table {
        width: 100% !important;
        height: auto !important;
        max-width: none;
        display: block;
    }

    #nav tbody {
        display: block;
        width: 100%;
    }

    #nav tr {
        display: block;
        width: 100%;
    }

    /* Cada opción ocupa toda una línea */
    #nav td.nav {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 0;
        text-align: center;
        border-bottom: 1px solid #bdbdbd;
    }

    #nav td.nav a {
        width: 100%;
        box-sizing: border-box;
        padding: 16px 10px;
        font-size: 16px;
        line-height: 1.2;
    }

    /* Ocultar los espacios laterales */
    #nav td:first-child,
    #nav td:last-child {
        display: none;
    }

    /* Efecto táctil */
    #nav td.nav a:active {
        background: #079447;
        color: white;
    }
}


/* =====================================================
   CELULARES PEQUEÑOS
===================================================== */

@media screen and (max-width: 480px) {

    #nav td.nav a {
        font-size: 15px;
        padding: 14px 8px;
    }

}


/* =====================================================
   NOTICIA platica
===================================================== */

.noticia-morada {
    width: 100%;
    box-sizing: border-box;
    background: #C4240C;
    padding: 60px 20px;
    margin: 40px 0;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}

.noticia-contenido {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}


/* ETIQUETA */

.noticia-etiqueta {
    display: inline-block;
    background: #f4c400;
    color: #B8513E;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}


/* TÍTULO */

.noticia-morada h2 {
    font-size: 38px;
    margin: 18px 0 10px;
    color: white;
}


/* LÍNEA */

.linea-amarilla {
    width: 90px;
    height: 5px;
    background: #f4c400;
    margin-bottom: 20px;
}


/* FECHA */

.noticia-fecha {
    color: #f4c400;
    font-weight: bold;
    font-size: 14px;
}


/* DESCRIPCIÓN */

.noticia-descripcion {
    max-width: 950px;
    font-size: 17px;
    line-height: 1.8;
    text-align: justify;
    color: #eeeeee;
    margin-bottom: 45px;
}


/* =====================================================
   GALERÍA
===================================================== */

.galeria-noticia {
    background: #B8513E;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #f4c400;
}

.galeria-noticia h3 {
    color: #f4c400;
    font-size: 25px;
    margin-top: 0;
}

.texto-galeria {
    color: #eeeeee;
    margin-bottom: 25px;
}


/* GRID DE FOTOS */

.fotos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


/* CONTENEDOR DE CADA FOTO */

.foto-noticia {
    height: 230px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    background: #321047;
}


/* IMAGEN */

.foto-noticia img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}


/* EFECTO AL PASAR EL CURSOR */

.foto-noticia:hover {
    border-color: #f4c400;
}

.foto-noticia:hover img {
    transform: scale(1.08);
}


/* =====================================================
   VISOR DE FOTOGRAFÍA
===================================================== */

.visor-foto {
    display: none;

    position: fixed;
    z-index: 99999;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(20, 5, 30, 0.95);

    justify-content: center;
    align-items: center;

    padding: 30px;
    box-sizing: border-box;
}


/* IMAGEN GRANDE */

.visor-foto img {
    max-width: 90%;
    max-height: 85vh;

    object-fit: contain;

    border: 4px solid #f4c400;
    border-radius: 5px;

    box-shadow: 0 0 30px rgba(0,0,0,0.7);

    animation: aparecerFoto 0.3s ease;
}


/* ANIMACIÓN */

@keyframes aparecerFoto {

    from {
        opacity: 0;
        transform: scale(0.75);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}


/* BOTÓN CERRAR */

.cerrar-foto {
    position: absolute;

    top: 20px;
    right: 35px;

    color: white;

    font-size: 50px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;
}

.cerrar-foto:hover {
    color: #f4c400;
    transform: scale(1.1);
}


/* =====================================================
   HIPERVÍNCULO
===================================================== */

.enlace-noticia {
    text-align: center;
    margin-top: 45px;
}

.enlace-noticia a {
    display: inline-block;

    padding: 15px 30px;

    border: 2px solid #f4c400;

    color: #f4c400;

    text-decoration: none;

    font-weight: bold;

    border-radius: 5px;

    transition: 0.3s;
}

.enlace-noticia a:hover {
    background: #f4c400;
    color: #351047;
}


/* =====================================================
   CELULAR
===================================================== */

@media screen and (max-width: 768px) {

    .noticia-morada {
        padding: 40px 15px;
    }

    .noticia-contenido {
        width: 100%;
    }

    .noticia-morada h2 {
        font-size: 28px;
    }

    .noticia-descripcion {
        font-size: 16px;
    }

    .galeria-noticia {
        padding: 20px;
    }

    .fotos-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .foto-noticia {
        height: 180px;
    }

    .visor-foto img {
        max-width: 95%;
        max-height: 80vh;
    }

    .cerrar-foto {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }

}


/* CELULARES MUY PEQUEÑOS */

@media screen and (max-width: 480px) {

    .fotos-grid {
        grid-template-columns: 1fr;
    }

    .foto-noticia {
        height: 220px;
    }

}

/* =====================================================
   MENÚ HORIZONTAL PARA CELULAR
===================================================== */

@media screen and (max-width: 768px) {

    #nav {
        width: 100%;
        background: #d3d3d3;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    #nav .fixed {
        width: max-content;
        min-width: 100%;
    }

    #nav table {
        width: max-content !important;
        min-width: 100%;
        height: 65px !important;
        margin: 0;
        border-collapse: collapse;
    }

    #nav tbody {
        display: table-row-group;
    }

    #nav tr {
        display: table-row;
    }

    /* OPCIONES DEL MENÚ */

    #nav td.nav {
        display: table-cell;
        width: auto;
        padding: 0 18px;
        text-align: center;
        white-space: nowrap;
        border: none;
    }

    #nav td.nav a {
        display: block;
        padding: 23px 5px;
        color: #292929;
        text-decoration: none;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 14px;
        font-weight: bold;
        white-space: nowrap;
    }

    /* OCULTAR IMÁGENES LATERALES */

    #nav td:first-child,
    #nav td:last-child {
        display: none;
    }

    #nav td.nav a:active {
        color: #079447;
    }
}


/* =====================================================
   CELULARES PEQUEÑOS
===================================================== */

@media screen and (max-width: 480px) {

    #nav table {
        height: 60px !important;
    }

    #nav td.nav {
        padding: 0 15px;
    }

    #nav td.nav a {
        font-size: 13px;
        padding: 21px 3px;
    }

}
