 /* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/*----------------------------------------- Header-------------------------- */
header {
    background-color: #fff;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}
.logo-principal {
    height: 80px;
    width: 100px;
    margin-right: 2rem;
}
.menu-principal {
    display: flex;
    list-style: none;
}
.menu-principal li {
    margin: 0 1rem;
    cursor: pointer;
    transition: color 0.3s;
    color: #000;
}
.menu-principal li:hover {
    color: #2477BD ;
}
/* Para marcar la posicion actual en el header del portal */
.menu-principal li.activo {
    color: #000 !important; 
    border-radius: 5px;
    font-weight: 600;
}
.menu-principal a{
    text-decoration: none;
    color: #2477bd;
    text-decoration: none;
    border-bottom: 2px solid transparent; 
    transition: all 0.2s ease;
    border-radius: 5px;
    padding: 5px;
        font-weight: 600;
}
.menu-principal a:hover{
    text-decoration: none;
    color: #2477bd;
}
/* Opcional: Estilo para el <a> que envuelve al <li> */
.menu-principal a.activo {
    text-decoration: none;
    color: #2477BD !important;
    border-bottom: 2px solid #2477BD;
    color: #2477BD;
}

/* Es importante anular el color inline para el texto del <li> */
.menu-principal a[style*="color:#000"] li.activo {
    color: #fff !important;
}
.icono {
    width: 20px;
    cursor: pointer;
}
/* contenido principal */
.contenido-principal {
    position: relative;
    height: 500px;
    overflow: hidden;
}
.contenido-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.contenido-secundario  {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.secion-titulo {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: #2477BD;
    position: relative;
}
.secion-titulo::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #2477BD;
    margin: 1rem auto 0;
    border-radius: 2px;
}
@keyframes slideIn {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.contenido-secundario {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.5);
    color: white;
    text-align: center;
    padding: 2rem;
    animation: slideIn 1s ease-out;
}
.contenido-principal h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.contenido-principal p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
}
.btn {
    display: inline-block;
    background-color: #2420fd;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.btn:hover{
    background-color: #8697ff;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10pxrgba(0,0,0,0.2);
}
   /* Horarios */
.horarios {
    background-color: #2f2d97;
    color: white;
    padding: 3rem 2rem;
}

.horarios h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}
.tablas-container {
    position: relative;
    width: 70%;
    margin: 0 auto;
    overflow: hidden;
    min-height: 300px; /* asegura espacio para las tablas */
}

.tabla-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-in-out;
}

.tabla-wrapper.active {
    position: relative; /* permite que el contenedor tome la altura */
    opacity: 1;
    transform: translateY(0);
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.tab {
    background: #512ecf;
    color: #000000;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.tab.active {
    background: #ffffff;
    color: #000000;
}

/* Estado con colores */
.estado-circulo {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.verde { background-color: #4CAF50; }     /* En curso */
.rojo { background-color: #f44336; }      /* Finalizado */
.amarillo { background-color: #FFC107; }  /* En espera */
.gris { background-color: #999; }         /* Otros */

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    color: #333;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #ffcc00;
    color: #1f1e74;
    font-weight: bold;
}

tr:hover {
    background-color: #f5f5f5;
}



.menu-desplegable{
    display: none;
    cursor: pointer;
}

.menu-desplegable img{
    width: 30px;
}

/*vista movil*/
/* Ajusta los anchos en responsive */
@media (max-width: 1024px) {
    .carousel-card {
        width: 250px;
    }
    
    .menu-desplegable{
        display: block;
    }
    
    .menu-principal{
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        z-index: 999;
    }
    
    .menu-principal.active{
        display: flex;
    }
}

@media (max-width: 768px) {
    .menu-desplegable{
        display: block;
    }
    
    .menu-principal{
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        z-index: 999;
    }
    
    .menu-principal.active{
        display: flex;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    
    .menu-principal {
        margin-top: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .rutas-contenedor {
        position: relative;
        max-width: 1500px;
        margin: 0;
        overflow: hidden; /* Esto ya lo tienes, está bien */
        padding: 1rem;
        background-color: #f9fafb;
        border-radius: 12px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
}
/* ============================================== */
/* --- SECCIÓN AGENCIAS Y RUTAS (COMPLETO Y CORREGIDO) --- */
/* ============================================== */

/*---------Promoción de agencias y rutas en la pagina principal------------*/

/* --- Keyframes para Animaciones de Entrada (CON PREFIJOS) --- */
@-webkit-keyframes slideInFromBottom { /* Prefijo Webkit */
    from {
        opacity: 0;
        -webkit-transform: translateY(60px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(60px); /* Distancia mayor para el deslizamiento */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clase que dispara la animación (agregada por JS cuando entra en el viewport) */
.animated {
    opacity: 1 !important;

    /* Asegurar que la animación se aplique */
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    animation-fill-mode: both;

    /* CORRECCIÓN: Prefijos y nombre de animación correcto */
    -webkit-animation-name: slideInFromBottom;
    animation-name: slideInFromBottom;

    /* Opcional: Asegurar el estado final de transform */
    -webkit-transform: translateY(0) !important;
    transform: translateY(0) !important;
}


/* --- SECCIÓN PRINCIPAL: Contenedor General --- */
.consulta-agencia-banner-contenedor {
    margin: 4rem auto; /* Se mueve el margen general aquí */
    max-width: 1200px;
    padding: 0 20px;
}

/* --- Nueva Sección: Consulta y Agencias (SOLO LAS DOS TARJETAS) --- */
.consulta-agencia-banner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Clave para que la altura se mantenga equilibrada */
    gap: 30px;
    margin-bottom: 30px; /* Separación del área de resultados */
}

/* Estilo Base para las Tarjetas */
.consulta-viaje-card, .agencia-banner-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;

    /* Estado inicial: oculto y ligeramente desplazado (Duplicado del CSS original para claridad) */
    opacity: 0;
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
    
    /* Nota: Las propiedades de animación (duration, timing, fill-mode) se mueven a .animated para evitar que se ejecuten inmediatamente */
}

/* Tarjeta de Consulta de Viajes (Lado Izquierdo) - Diseño más limpio */
.consulta-viaje-card {
    background-color: #f7f9fc;
    color: #333;
    padding: 30px;
    display: block;
    min-height: auto;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
}

.icon-viaje i {
    font-size: 30px;
    color: #2477bd;
}

.consulta-viaje-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #343a40;
}

.card-body p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #6c757d;
}

.formulario-viaje {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #2477bd;
    outline: none;
}

/* Botón de Buscar */
.btn-buscar {
    grid-column: 1 / -1;
    background-color: #dc3545;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-buscar:hover {
    background-color: #c82333;
}

/* ============================================== */
/* --- ESTILOS PARA EL CONTENEDOR DE RESULTADOS DE BÚSQUEDA (MOVIDO DEBAJO) --- */
/* ============================================== */
.resultado-busqueda-wrapper {
    /* Estilo contenedor general, debe ser ancho completo */
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    padding: 20px 30px;
    margin-top: 20px;
    width: 100%;
}

.resultado-busqueda-header h4 {
    font-size: 1.3rem;
    color: #2477bd;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-weight: 700;
}

.resultado-busqueda-content {
    /* Contenido donde se inserta la tabla o mensajes */
    padding: 5px 0;
}

.resultado-busqueda-content .mensaje-info,
.resultado-busqueda-content .mensaje-exito,
.resultado-busqueda-content .mensaje-error {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    border-radius: 6px;
    font-size: 1rem;
}

.resultado-busqueda-content .mensaje-exito {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.resultado-busqueda-content .mensaje-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Estilos de la tabla de resultados (sin encabezados) */
.tabla-resultado-busqueda {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px; /* Espacio entre filas */
    margin-top: 15px;
}

.tabla-resultado-busqueda td {
    padding: 12px;
    text-align: center;
    font-size: 0.95rem;
    background-color: #fcfcfc;
    border: 1px solid #eee;
    /* Se elimina el borde redondeado de las celdas */ 
}

.tabla-resultado-busqueda tr:hover td {
    background-color: #f0f8ff;
    cursor: pointer;
}


/* Tarjeta de Banner de Agencia (Lado Derecho) */
.agencia-banner-card {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    flex-shrink: 0;
}

/* Se agrega el header para que se vea como la tarjeta de la izquierda */
.agencia-header {
    margin-bottom: 20px;
}

.agencia-banner-card p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Detalle de Ondas Rojas */
.wave-icon {
    width: 40px;
    height: 10px;
    background: repeating-linear-gradient(
        45deg,
        #dc3545,
        #dc3545 5px,
        transparent 5px,
        transparent 10px
    );
    border-radius: 5px;
    display: block;
    margin-top: 5px;
}

/* Botón de Consultar Agencias */
.btn-consultar-modificado {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #2477bd;
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-consultar-modificado:hover {
    background-color: #1a5c92;
    transform: translateY(-1px);
}

/* Detalle circular decorativo */
.circular-detail {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(36, 119, 189, 0.1);
    border-radius: 50%;
    z-index: 0;
}


/* --- Media Queries para Responsividad --- */
@media (max-width: 768px) {
    .consulta-agencia-banner {
        flex-direction: column;
        gap: 20px;
        align-items: stretch; /* Se cambia a stretch para que tomen el ancho completo */
    }
    .resultado-busqueda-wrapper {
        padding: 15px 20px;
    }
    .formulario-viaje {
        grid-template-columns: 1fr;
    }
}
/* ============================================== */
/* --- ESTILOS: DISEÑO CORPORATIVO  --- */
/* ============================================== */

/* ========== VARIABLES Y ANIMACIONES ========== */
.intravialca-theme {
    --primary-color: #007bff;
    --secondary-red: #dc3545;
    --accent-green: #28a745;
    --neutral-light: #f8f9fa;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-dark: rgba(0, 0, 0, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Animaciones globales */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes buttonPulse {
    0%, 100% { box-shadow: 0 5px 15px rgba(220, 53, 69, 0.6); }
    50% { box-shadow: 0 5px 20px rgba(0, 123, 255, 0.6); }
}

/* ========== SECCIÓN PRINCIPAL ========== */
.info-terminal-grid-section {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
    animation: fadeInUp 1s ease-out;
}

/* ========== TARJETAS BASE ========== */
.info-card-general {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 5px 5px 15px var(--shadow-light), -5px -5px 15px rgba(255, 255, 255, 0.9);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    padding: 0;
    animation: slideInRight 0.8s ease-out 0.2s both;
}

.info-card-general:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 10px 10px 30px var(--shadow-dark), -10px -10px 30px rgba(255, 255, 255, 0.9);
}

/* ========== TARJETA PRINCIPAL ========== */
.terminal-main-card {
    /* Ocupa toda la primera fila (3 columnas) */
    grid-column: 1 / 4;
    grid-row: 1 / 2;
    min-height: 300px;
    justify-content: flex-end;
    color: white;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
}

.terminal-main-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: transform 0.5s ease;
}

.terminal-main-card:hover img {
    transform: scale(1.05);
}

.terminal-main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.9), rgba(0, 123, 255, 0.2), rgba(0, 123, 255, 0.2));
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    z-index: 2;
}

.terminal-main-card .card-content-general {
    padding: 40px;
    position: relative;
    z-index: 3;
}

.terminal-main-card .card-content-general h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.terminal-main-card .card-content-general p {
    font-size: 1.1rem;
    color: #f0f0f0;
    line-height: 1.6;
}

.icon-floating {
    margin-right: 15px;
    color: var(--secondary-red);
    animation: pulse 2s infinite;
}

/* ========== TARJETAS SECUNDARIAS ========== */
.servicios-card {
    /* Primera tarjeta secundaria: ocupa la primera columna de la segunda fila */
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    min-height: 120px; /* Reducido para evitar estiramiento, ajustable al contenido */
    padding: 20px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    clip-path: polygon(0 0, 100% 10%, 90% 100%, 10% 90%);
    transition: all 0.3s ease;
}

.requisitos-card {
    /* Segunda tarjeta secundaria: ocupa la segunda columna de la segunda fila */
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    min-height: 120px;
    padding: 20px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    clip-path: polygon(0 0, 100% 10%, 90% 100%, 10% 90%);
    transition: all 0.3s ease;
}

.sobre-nosotros-card {
    /* Tercera tarjeta secundaria: ocupa la tercera columna de la segunda fila */
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    min-height: 120px;
    padding: 20px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    clip-path: polygon(0 0, 100% 10%, 90% 100%, 10% 90%);
    transition: all 0.3s ease;
}

.servicios-card:hover {
    clip-path: polygon(0 0, 100% 5%, 95% 100%, 5% 95%);
    background: rgba(0, 123, 255, 0.1);
}

.requisitos-card:hover {
    clip-path: polygon(0 0, 100% 5%, 95% 100%, 5% 95%);
    background: rgba(220, 53, 69, 0.1);
}

.sobre-nosotros-card:hover {
    clip-path: polygon(0 0, 100% 5%, 95% 100%, 5% 95%);
    background: rgba(40, 167, 69, 0.1);
}

.link-card-general .card-content-general {
    padding: 0;
    width: 100%;
}

.link-card-general .card-content-general h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #343a40;
}

.link-card-general .card-content-general p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #6c757d;
    line-height: 1.5;
}

.icon-card {
    margin-right: 12px;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.servicios-card .icon-card { color: var(--primary-color); }
.requisitos-card .icon-card { color: var(--secondary-red); }
.sobre-nosotros-card .icon-card { color: var(--accent-green); }

.info-card-general:hover .icon-card {
    transform: rotate(10deg) scale(1.1);
}

/* ========== BOTONES ========== */
.info-card-link-general {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(45deg, var(--primary-color), #0056b3);
    color: white;
    text-align: center;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.info-card-link-general::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.info-card-link-general:hover::before {
    left: 100%;
}

.info-card-link-general:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.terminal-main-card .info-card-link-general {
    background: linear-gradient(45deg, var(--secondary-red), #c82333);
    border-radius: 25px;
    width: fit-content;
    padding: 12px 30px;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
    margin-top: 25px;
    animation: buttonPulse 2s infinite;
}

.terminal-main-card .info-card-link-general:hover {
    background: linear-gradient(45deg, #c82333, var(--secondary-red));
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .info-terminal-grid-section {
        /* En tablets: vuelve a 2 columnas, con la principal en la primera fila completa, y las secundarias apiladas en la segunda fila */
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 25px;
        padding: 0 1rem;
    }
    
    .terminal-main-card {
        grid-column: 1 / 3; /* Ocupa ambas columnas en la primera fila */
        grid-row: 1 / 2;
        min-height: 400px;
        clip-path: none;
    }
    
    .servicios-card {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        min-height: 140px;
        backdrop-filter: none;
        background: #ffffff;
        clip-path: none;
    }
    
    .requisitos-card {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        min-height: 140px;
        backdrop-filter: none;
        background: #ffffff;
        clip-path: none;
    }
    
    .sobre-nosotros-card {
        /* En tablets, esta tarjeta se mueve a una tercera fila para evitar apilamiento forzado */
        grid-column: 1 / 3;
        grid-row: 3 / 4;
        min-height: 140px;
        backdrop-filter: none;
        background: #ffffff;
        clip-path: none;
    }
}

@media (max-width: 600px) {
    .info-terminal-grid-section {
        /* En móviles: 1 columna, todas las tarjetas apiladas */
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        margin: 3rem auto;
        gap: 20px;
    }
    
    .terminal-main-card {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        min-height: 300px;
    }
    
    .terminal-main-card .card-content-general h3 {
        font-size: 1.8rem;
    }
    
    .servicios-card,
    .requisitos-card,
    .sobre-nosotros-card {
        grid-column: 1 / 2;
        grid-row: auto; /* Se apilan automáticamente */
        min-height: 120px;
        padding: 15px;
        backdrop-filter: none;
        background: #ffffff;
        clip-path: none;
    }
    
    .info-card-link-general {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/*------------------------------CSS DE AGENCIA Y RUTAS--------------------------------------------------------------------------*/
/* Sesion de rutas */
.rutas {
    padding: 4rem 0;
    text-align: center;
}

.rutas h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.rutas p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.estado {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.estado-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.estado-item:hover {
    transform: translateY(-5px);
}

.estado-numero {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.estado-label {
    color: var(--gray);
    font-weight: 500;
}


/* Contenedor principal */
.carousel-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    padding: 1rem;
    border-radius: 12px;

}

/* Pista del carrusel */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    flex-wrap: nowrap;
}

/* Tarjetas base: 3 visibles por defecto */
.carousel-card {
    flex: 0 0 auto;
    width: calc((100% - 5rem) / 3); /* 3 tarjetas con margen incluido */
    margin: 0 1rem;
    background: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    cursor: grab;
    padding: 15px;
    user-select: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Hover */
.carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Imagen dentro de la tarjeta */
.carousel-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

/* Título y descripción */
.carousel-card h4 {
    margin: 10px 0;          /* margen arriba y abajo */
    font-weight: bold;       /* negrita para destacar */
    color: #2a2d30ff;            /* color del texto */
    text-align: center;      /* centra el título */
}

.carousel-card p {
    margin-top: 0.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
    color: #3b3b3b;
    line-height: 1.5;
}

/* Botón dentro de la tarjeta */
.carousel-card button {
    margin-top: 1.5rem;
    background-color: #2477BD;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.carousel-card button:hover {
    background-color: #2477BD;
    transform: translateY(-2px);
}


/* Solo 1 tarjeta */
.carousel-track:has(.carousel-card:only-child) .carousel-card {
    flex: 0 0 100%;
    margin: 0 auto;
    max-width: 500px;
}

/* Solo 2 tarjetas */
.carousel-track:has(.carousel-card:nth-child(2)):not(:has(.carousel-card:nth-child(3))) .carousel-card {
    flex: 0 0 45%;
    margin: 0 2.5%;
}

/* 📱 Móvil: solo una tarjeta centrada */
@media (max-width: 768px) {
    .carousel-card {
        flex: 0 0 100%;
        margin: 0 auto;
    }
}

/* Botones de navegación */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    backdrop-filter: blur(5px);
    border: none;
    color: #2477BD;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: background-color 0.3s;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.carousel-button:hover:not(:disabled) {
    background-color: #2477;
}

.carousel-button:disabled {
    
    background-color: #2477;
    cursor: not-allowed;
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}
/* Contenedor general */
.detalle-agencia {
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #2c3e50;
    text-align: left;
    padding: 10px;
}

/* Sección de información */
.info-agencia p {
    margin: 8px 0;
    line-height: 1.5;
}

/* Imagen */
.imagen-agencia-container {
    text-align: center;
    margin-top: 15px;
}

.imagen-agencia {
    max-width: 90%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Rutas */
.rutas-agencia {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

/* SweetAlert personalizado */
.swal-detalles-agencia {
    padding: 25px !important;
    border-radius: 12px !important;
}

.swal-btn-cerrar {
    background-color: #3498db !important;
    color: white !important;
    border-radius: 6px !important;
    padding: 8px 20px !important;
    font-weight: 500 !important;
}
/* Contenedor de Variables para la sección de Rutas */
.route-section-vars {
    /* Variables de Color y Sombra específicas para esta sección */
    --primary: #007bff; /* Azul vibrante */
    --secondary: #28a745; /* Verde para acentos */
    --dark: #343a40;
    --gray: #6c757d;
    --light-bg: #f8f9fa;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.secion-titulo{
    font-size: 2.5rem;
    text-align: center;
    margin: 4rem 0 2.5rem;
    color: var(--dark); 
    position: relative;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.secion-titulo::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary)); 
    margin: 0.5rem auto;
    border-radius: 3px;
    animation: gradientShift 3s ease-in-out infinite;
}

/* Animación del icono de mapa en el título */
.route-section-vars .secion-titulo .fa-map-marked-alt {
    color: var(--primary);
    margin-left: 10px;
    animation: bounce 1.5s infinite;
}

/* Contenedor de Búsqueda */
.route-section-vars .rutas-search-container {
    max-width: 600px;
    margin: 2rem auto;
    position: relative;
    box-shadow: var(--shadow-light);
    border-radius: 50px;
    animation: fadeInDown 0.8s ease-out;
}

.route-section-vars #routeSearch {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

.route-section-vars #routeSearch:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.route-section-vars .search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.2rem;
}

/* Contenedor de la Rejilla de Rutas */
.route-section-vars .rutas-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    list-style: none;
    padding: 0;
}

/* Tarjeta Individual de Ruta */
.route-section-vars .route-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: var(--shadow-light);
    transition: all 0.4s ease-in-out;
    cursor: pointer;
    overflow: hidden;
    border-left: 5px solid var(--primary); 
    opacity: 1;
    transform: translateY(0);
}

.route-section-vars .route-card.hidden-route {
    display: none;
}

/* Animación de entrada de tarjetas */
.route-section-vars .route-card:nth-child(even) {
    animation: slideInRight 0.6s ease-out backwards;
}
.route-section-vars .route-card:nth-child(odd) {
    animation: slideInLeft 0.6s ease-out backwards;
}

.route-section-vars .route-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left-color: var(--secondary);
}

.route-section-vars .route-icon-wrapper {
    font-size: 2.5rem;
    color: var(--primary);
    margin-right: 1.5rem;
    min-width: 50px;
    text-align: center;
    transition: transform 0.3s ease;
}

.route-section-vars .route-card:hover .route-icon-wrapper {
    transform: rotateY(180deg);
    color: var(--secondary);
}

.route-section-vars .route-details-wrapper {
    flex-grow: 1;
}

.route-section-vars .route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.route-section-vars .route-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    transition: color 0.3s ease;
}

.route-section-vars .route-card:hover .route-name {
    color: var(--primary);
}

.route-section-vars .route-tag {
    background-color: var(--secondary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.9;
}

.route-section-vars .route-info-bar {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #e9ecef;
}

.route-section-vars .info-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--gray);
    font-size: 0.9rem;
}

.route-section-vars .info-item i {
    color: var(--primary);
    margin-right: 0.4rem;
}

.route-section-vars .info-item span {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 600;
}

.route-section-vars .info-item small {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 2px;
}

.route-section-vars .route-action {
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
}

.route-section-vars .btn-route-details {
    padding: 0.6rem 1.2rem;
    border: none;
    background-color: var(--primary);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.route-section-vars .btn-route-details:hover {
    background-color: #0056b3;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.4);
}

/* Contenedor y Botón de Ver Más  */
.route-section-vars .load-more-container {
    display: flex !important;           /* 1. Habilitar Flexbox */
    justify-content: center !important; /* 2. Centrar el contenido (el botón) */
    width: 100% !important;             /* 3. Asegurar ancho total */
    margin: 3rem auto 5rem; /* Mantener los márgenes */
}

.route-section-vars #loadMoreButton {    
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(45deg, var(--primary), #00a6ff);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.route-section-vars #loadMoreButton:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #00a6ff, var(--primary));
}

.route-section-vars #loadMoreButton:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ----------------------------------------------------- */
/* ANIMACIONES KEYFRAMES (Son Globales)                  */
/* ----------------------------------------------------- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ----------------------------------------------------- */
/* RESPONSIVIDAD (Media Queries)                         */
/* ----------------------------------------------------- */

@media (max-width: 768px) {
    .secion-titulo {
        font-size: 2rem;
        margin: 3rem 0 2rem;
    }

    .route-section-vars .rutas-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .route-section-vars .route-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .route-section-vars .route-icon-wrapper {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .route-section-vars .route-header {
        flex-direction: column;
        align-items: center;
    }
    
    .route-section-vars .route-tag {
        margin-top: 0.5rem;
    }
    
    .route-section-vars .route-info-bar {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .route-section-vars .info-item {
        align-items: center;
        width: 100%;
        padding: 5px 0;
    }
    
    .route-section-vars .route-action {
        margin-left: 0;
        margin-top: 1rem;
    }
}
/*-------------------------------css detallles agencia---------------*/
/* Contenedor principal de la agencia */
        .contenedor-agencia{
            margin: 20px 200px;
            margin-bottom: 0;
            
        }
        .agencia-contenedor {
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
            margin-bottom: 40px;
            background: #fff;
            padding: 30px;
            border-radius: 5px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            animation: fadeIn 1s ease-out;
        }

        .info-agencia { 
            flex: 2;
            min-width: 300px;
        }
        .info-agencia h4 {  
            color: #2a2d30ff;
            margin-bottom: 20px; 
            font-size: 1.4em;
            border-bottom: 2px solid #2a2d30ff;
            padding-bottom: 10px;
        }
        .info-agencia h2 { 
            margin-top: 0; 
            color: #2a2d30ff;
            width: auto;
            height: auto; 
            
        }
        .info-agencia p { 
            margin: 15px 0; 
            text-align: justify; 
            font-size: 1.1em;
            line-height: 1.6;
        }
        .info-agencia strong { 
            color: #2a2d30ff;
            font-weight: bold;
        }
        .descripcion-contenedor {
            background: #f1f3f4;
            padding: 20px;
            border-radius: 10px;
            margin: 20px 0;
            border-left: 5px solid #2a2d30ff;
        }
        .descripcion-contenedor p {
            margin: 0;
            font-style: italic;
        }

        .imagen-agenciaInfo { 
            flex: 1;
            min-width: 250px;
            max-width: 300px;
        }
        .imagen-agenciaInfo img { 
            width: 100%; 
            height: 350px; 
            border-radius: 12px; 
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);
            transition: transform 0.3s ease;
        }
        .imagen-agenciaInfo img:hover {
            transform: scale(1.05);
        }

        hr { 
            border: none; 
            height: 2px; 
            background: linear-gradient(to right, #2477BD, #0056b3); 
            margin: 40px 0;
        }
        
        h3 { 
            color: #2477BD;
            font-size: 1.8em; 
            margin-bottom: 20px;
            text-align: center;
        }
        
        table { 
            width: 100%; 
            border-collapse: collapse; 
            margin-top: 20px; 
            background: white; 
            border-radius: 12px; 
            overflow: hidden; 
            box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
        }
        th, td { 
            padding: 15px; 
            text-align: left; 
            border-bottom: 1px solid #ddd; 
            font-size: 1em;
        }
        th { 
            background: linear-gradient(45deg, #2477BD, #0056b3); 
            color: #fff;
            font-weight: bold;
        }
        tr:hover { 
            background-color: #f1f1f1;
            transition: background 0.3s ease;
        }
        
        .navegacion { 
            margin-top: 40px; 
            text-align: center; 
            clear: both;
        }
        .navegacion button { 
            margin: 0 15px; 
            background: linear-gradient(45deg, #007bff, #0056b3); 
            color: white; 
            border: none; 
            padding: 12px 20px; 
            border-radius: 8px; 
            cursor: pointer; 
            transition: all 0.3s ease;
            font-size: 1em;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
        .navegacion button:hover { 
            background: linear-gradient(45deg, #0056b3, #004080);
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        }
        .navegacion a { 
            text-decoration: none; 
            color: #fff;
        }
        .navegacion a:hover { 
            text-decoration: underline;
        }

        /* Clases de animación */
        .slide-in-left {
            animation: slideInFromLeft 1s ease-out;
        }
        .slide-in-right {
            animation: slideInFromRight 1s ease-out;
        }
        .slide-up-bottom {
            animation: slideUpFromBottom 1s ease-out;
        }

        /* Animaciones */
        @keyframes slideInFromLeft {
            from { transform: translateX(-100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        @keyframes slideInFromRight {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        @keyframes slideUpFromBottom {
            from { transform: translateY(100%); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @media (max-width: 1024px) { /* Tablets y pantallas medianas */
            .agencia-contenedor {
                flex-direction: column;
                align-items: center;
            }
        }
               @media (max-width: 1024px) { /* Tablets y pantallas medianas */
            .contenedor-agencia {
                margin: 20px 50px;
            }

            .logo-principal {
                height: 60px;
            }
            .menu-principal li {
                margin: 0 0.5rem;
            }
            .agencia-contenedor {
                flex-direction: column;
                align-items: center;
            }
        }
        

        @media (max-width: 768px) { /* Móviles */
            .contenedor-agencia {
                margin: 10px 20px;
            }
            .imagen-agenciaInfo { 
                max-width: 100%;
            }
            .imagen-agenciaInfo img { 
                width: 100%; 
                max-width: 250px;
            }
            .agencia-contenedor {
                padding: 20px;
            }
            table { 
                font-size: 14px; 
            }
            .navegacion button { 
                display: block; 
                width: 100%; 
                margin: 10px 0; 
            }
            .info-agenciaInfo h2 { 
                font-size: 1.5em;
            }
            h4 {
                font-size: 1.2em;
            }
        }

        @media (max-width: 480px) { /* Pantallas muy pequeñas */
            .contenedor-agencia {
                margin: 10px 10px;
            }
            .imagen-agenciaInfo {
                max-width: 200px;
            }
            .imagen-agenciaInfo img {
                max-width: 200px;
            }
            .info-agencia p {
                font-size: 1em;
            }
            table {
                font-size: 12px;
            }
            .agencia-contenedor {
                padding: 15px;
            }
        }
        


/*--------------------------------------CSS SERVICIOS-----------------------------------------------------------------*/

/* Variables de Color */
/* Definiciones de color y variables */
.contexto-servicios {
    --color-principal: #0D47A1; /* Azul profundo */
    --color-secundario: #1565C0; 
    --color-acento: #FF8F00; /* Naranja/Ámbar */
    --color-texto: #000;
    --fondo-claro: #f4f7f9;
    --blanco: #ffffff;
    --borde-color: #e0e0e0;
}
/* Estilos generales del contenedor principal (usará las variables ahora) */
.contenedor-contenido-principal {
    display: flex;
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 30px;
}
/* Contenedor Principal (Flexbox para las dos columnas) */
.contenedor-contenido-principal {
    display: flex;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px;
    margin-top: 25px;
}

/* Panel de Detalles (Columna Izquierda) */
.panel-detalles {
    flex: 0 0 350px; 
    background: var(--blanco);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky; 
    top: 20px; 
    height: fit-content;
}

/* === ANIMACIÓN AGREGADA (CSS) === */
@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-detalles.animar-entrada {
    animation: fadeInSlide 0.5s ease-out forwards; 
}


.panel-detalles h2 {
    color: var(--color-principal);
    margin-top: 0;
    font-size: 1.8em;
}

.panel-detalles h3 {
    margin-top: 20px;
    color: #555;
    border-bottom: 2px solid var(--borde-color);
    padding-bottom: 5px;
}

.contenedor-imagen-detalle {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

#imagenDetalle {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grilla-info-detalle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
    padding: 10px 0;
    border-top: 1px dashed var(--borde-color);
    border-bottom: 1px dashed var(--borde-color);
}

.grilla-info-detalle i {
    color: var(--color-principal);
    margin-right: 5px;
}

.etiqueta-tipo-servicio {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 10px;
    /* Los colores se aplicarán dinámicamente con JS */
    transition: all 0.3s;
}

.mensaje-predeterminada {
    font-style: italic;
    color: #777;
}

/* Contenedor de la Lista de Servicios (Columna Derecha) */
.contenedor-lista-servicios {
    flex-grow: 1; 
    min-width: 0;
}

/* Barra de Filtros */
.barra-filtros {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.contenedor-busqueda {
    position: relative;
    flex-grow: 1;
}

#inputBusqueda {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid var(--borde-color);
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

#inputBusqueda:focus {
    border-color: var(--color-principal);
    outline: none;
}

.icono-busqueda {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.select-personalizado {
    padding: 10px 15px;
    border: 1px solid var(--borde-color);
    border-radius: 5px;
    background-color: #fff;
    font-size: 1em;
    cursor: pointer;
    appearance: none;
    background: url('/website/icons/select.svg') no-repeat right 10px center / 16px;
    padding-right: 30px;
}
.select-personalizado:focus{
    outline: none;
    border-color: #525252;

}

.select-personalizado option:nth-child(even){
    background-color: #d9dffa;
}

.select-personalizado option:nth-child(odd){
    background-color: #fff;
}
.contador-resultados {
    margin-bottom: 15px;
    color: #777;
    font-size: 0.9em;
}

/* Grid de Tarjetas de Servicios */
.grilla-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 20px;
}

/* Tarjeta de Servicio (Card) */
.tarjeta-servicio {
    background: var(--blanco);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    border: 2px solid transparent;
}

.tarjeta-servicio:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tarjeta-servicio.activo {
    border: 2px solid var(--color-acento); 
}

.encabezado-icono-tarjeta {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.encabezado-icono-tarjeta i {
    font-size: 2.5em;
    color: var(--blanco);
}

.tarjeta-servicio h4 {
    margin: 0 15px 10px;
    color: var(--color-principal);
    font-size: 1.2em;
}

.etiqueta-tipo-tarjeta {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8em;
    margin-bottom: 15px;
    border: 1px solid;
}

/* Media Queries para Responsividad */
@media (max-width: 992px) {
    .contenedor-contenido-principal {
        flex-direction: column;
    }

    .panel-detalles {
        flex: auto;
        position: static;
        order: -1; 
    }

    .barra-filtros {
        flex-direction: column;
        align-items: stretch;
    }
}
/*---------------------------------------CSS GACETAS-----------------------------------*/
 /* Variables y Estilos Base */
:root {
    --primary-color: #2a5298; /* Azul principal */
    --secondary-color: #1a3e72;
    --accent-color: #2420fd; /* Verde para descarga */
    --light-bg: #f7f7f7;
    --card-bg: #ffffff;
    --text-color: #333;
    --light-text: #666;
    --border-color: #ddd;
}
/* Contenido Principal (Layout de Gacetas) */
.main-content {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    gap: 30px;
    padding: 0 20px;
    align-items: flex-start;
}

/* Contenedor de Listado (Columna Derecha) */
.gazette-container { 
    flex: 1.5; 
    min-width: 350px; 
}

/* Panel de Detalles */
.details-panel { 
    flex: 1; 
    background-color: var(--card-bg); 
    border-radius: 10px; 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); 
    padding: 30px; 
    position: sticky; 
    top: 20px; 
    height: fit-content; 
}

.details-panel img { 
    width: 100%; 
    height: auto; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    border: 1px solid var(--border-color);
}

.details-panel h2 { 
    color: var(--primary-color); 
    margin-top: 0; 
    font-size: 1.6em; 
    padding-bottom: 10px;
}

.details-panel p { 
    color: #000; 
    line-height: 1.6; 
    font-size: 0.95em;
    margin-bottom: 15px;
}

.details-panel .category-tag {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.85em;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
    transition: background-color 0.3s;
}

.details-panel .btn-descarga {
    display: block; 
    text-align: center; 
    margin-top: 20px;
    background-color: var(--accent-color);
    color: white;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.details-panel .btn-descarga:hover { 
    background-color: #2420fd;
}

.btn-ver {
    display: inline-block;
    background: linear-gradient(135deg, #42A5F5, #1E88E5);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-ver i {
    margin-right: 6px;
}

.btn-ver:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.4);
}

/* Filtros y Resultados (AJUSTES DE TAMAÑO) */
.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px 20px; 
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    align-items: center;
}

.search-container { 
    flex-grow: 1.5;
    position: relative;
    width: 150%; 
}

.search-container:focus{
    outline: none;
    border: none;
}

.estilo-select{
    appearance: none;
    background: url('/website/icons/select.svg') no-repeat right 10px center / 16px;
    padding-right: 30px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 7px;
    width: 1%;
    box-sizing: border-box;
    font-size: 12px;
}

.estilo-select:focus{
    outline: none;
    border-color: #525252;

}

.estilo-select option:nth-child(even){
    background-color: #d9dffa;
}

.estilo-select option:nth-child(odd){
    background-color: #fff;
}

#searchInput, #categorySelect {
    padding: 10px 15px; 
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
    height: 40px; 
    -webkit-appearance: none; 
    -moz-appearance: none;
    appearance: none;
}

#categorySelect {
    flex-grow: 1; 
    min-width: 150px; /* Selector más pequeño */
}

.search-icon { 
    position: absolute; 
    right: 15px; 
    top: 50%;
    transform: translateY(-50%); 
    color: var(--light-text);
}

.result-count {
    margin-bottom: 15px;
    padding: 10px 0;
    color: var(--light-text);
    font-weight: 600;
    border-bottom: 1px dashed var(--border-color);
}

/* Tarjeta de Gaceta (Lista) */
.gazette-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gazette-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-color);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border-right: 1px solid var(--border-color);
    display: none; 
}

.gazette-card.hidden {
    display: none !important;
}

.gazette-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    border-left-width: 8px;
}

.gazette-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--card-bg);
    position: relative;
}

.gazette-header h2 {
    margin: 0;
    font-size: 1.15em;
    color: var(--secondary-color);
    flex-grow: 1;
    padding-left: 10px;
}

.gazette-header i.fa-gavel {
    font-size: 1.4em;
    color: var(--primary-color);
}

.gazette-header .arrow {
    transition: transform 0.3s;
    color: var(--light-text);
}

.gazette-header.expanded .arrow {
    transform: rotate(180deg);
}

.gazette-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 20px;
    background-color: var(--light-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gazette-content.expanded {
    max-height: 200px; 
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
}

.gazette-content p {
    margin: 0;
    font-size: 0.9em;
    color: var(--light-text);
    flex-grow: 1;
}

.gazette-content button {
    background: none;
    border: none;
    padding: 0;
    margin-left: 20px;
}

.gazette-content .btn-descarga {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.gazette-content .btn-descarga:hover { 
    background-color: #2420fd;
}

/* Paginación y Carga */
.load-more {
    text-align: center;
    margin-top: 25px;
}

#loadMoreBtn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#loadMoreBtn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Sidebar/Menú Móvil */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: var(--secondary-color);
    color: white;
    padding: 20px;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
}

.sidebar.active { 
    transform: translateX(0);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-sidebar {
    font-size: 2em;
    color: white;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin-top: 50px;
}

.sidebar ul a { 
    color: white; 
    text-decoration: none;
    font-size: 1.1em;
    padding: 10px 0;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar ul a:hover { 
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 15px; 
}


/* Responsive */
@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .details-panel {
        position: static; 
        margin-top: 0;
    }
    
    .filters {
        flex-direction: column;
    }
    
    #searchInput, #categorySelect {
        width: 100%;
        height: auto;
    }
}
/*------------------------------------------------CSS REQUISITOS---------------------------------------*/
/* Definiciones de color y variables */
.contexto-requisitos {
    /* Colores de Referencia Originales (brillantes) */
    --color-cn: #0D47A1; 
    --color-lo: #1565C0; 
    --color-lo-claro: #1976D2; 
    --color-extra: #FF8F00; 
    --color-reglamento: #4CAF50; 
    
    /* Colores de Interfaz para FONDO CLARO */
    --primary-color: var(--color-cn); 
    --secondary-color: var(--color-extra); 
    --background-light: #f9fafb; 
    --surface-light: #ffffff; 
    --text-dark: #1f2937; 
    --text-muted: #6b7280; 
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    /* CORRECCIÓN: Agregar la variable de sombra faltante */
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.15); 
}

/* -------------------- Controles -------------------- */
.contenedor-principal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 25px;
}

.barra-controles {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px;
    background-color: var(--surface-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid #e5e7eb;
}

.caja-busqueda {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background-color: #f3f4f6;
    border-radius: 8px;
    padding: 8px 15px;
    border: 1px solid #d1d5db;
}

.caja-busqueda i {
    color: var(--text-muted);
    margin-right: 10px;
}

#entradaBusqueda, 
.selector-filtro {
    border: none;
    outline: none;
    background: none;
    color: var(--text-dark);
    font-size: 1rem;
    padding: 5px 0;
}

.selector-filtro {
    min-width: 200px;
    padding: 10px 15px;
    background-color: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    border: 1px solid #d1d5db;
}

/* CORRECCIÓN: Selector del contador */
#resultStatus { 
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
}

/* -------------------- Tarjetas -------------------- */
.rejilla-requisitos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding-bottom: 40px;
}

.tarjeta-requisito {
    background-color: var(--surface-light);
    border-radius: var(--border-radius);
    padding: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-soft);
    border: 1px solid #e5e7eb;
}

.tarjeta-requisito:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-color);
}

.cabecera-tarjeta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.cabecera-tarjeta h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
}

.etiqueta {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #fff; 
    text-transform: uppercase;
    margin-top: 10px;
}

/* ADICIÓN: Estilo del Indicador de Detalle (para interacción) */
.indicador-detalle {
    display: flex;
    align-items: center;
    justify-content: flex-end; 
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e5e7eb; 
    transition: opacity 0.3s ease;
}

.indicador-detalle i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.tarjeta-requisito:hover .indicador-detalle {
    opacity: 1;
}

.tarjeta-requisito:hover .indicador-detalle i {
    transform: translateX(3px); 
}

/* ESTILO CRUCIAL PARA OCULTAR CON JS */
.tarjeta-requisito[style*="display: none;"] {
    display: none !important;
}

/* -------------------- Modal de Detalles -------------------- */
.superposicion-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); 
    visibility: hidden; 
    display: flex; 
    justify-content: flex-start; 
    z-index: 1000;
    transition: background-color 0.4s ease-out, visibility 0s 0.4s;
}

.superposicion-modal.visible {
    background-color: rgba(0, 0, 0, 0.6); 
    visibility: visible;
    transition: background-color 0.4s ease-out; 
}

.contenido-modal {
    background-color: var(--surface-light); 
    color: var(--text-dark);
    width: 90%;
    max-width: 500px;
    height: 100%;
    padding: 30px;
    overflow-y: auto;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3); 
    
    transform: translateX(-100%) scale(0.9); 
    opacity: 0; 
    
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
    opacity 0.4s ease-out;
}

.superposicion-modal.visible .contenido-modal {
    transform: translateX(0%) scale(1); 
    opacity: 1; 
}

/* CORRECCIÓN: Selector del botón de cierre */
.boton-cerrar-modal { 
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1001;
}

.boton-cerrar-modal:hover {
    color: var(--secondary-color);
}

/* CORRECCIÓN: Selector de la cabecera */
.modal-cabecera { 
    padding-bottom: 20px;
    border-bottom: 1px solid #d1d5db;
    margin-bottom: 20px;
}

.modal-cabecera h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 10px;
}

/* CORRECCIÓN: Selector de las secciones */
.modal-seccion h3 { 
    color: #303030;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: left;
}

/* Listas de Detalles */
/* NOTA: Se eliminaron las reglas de .lista-condiciones porque la descripción es un <p> */
.lista-pasos {
    list-style: none;
    padding-left: 0;
    counter-reset: contador-pasos;
}

.lista-pasos li {
    list-style:none;
    counter-increment: contador-pasos;
    position: relative;
    padding-left: 40px;
    margin-bottom: 15px;
    color: #000;
}

.lista-pasos li::before {
    content: counter(contador-pasos);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--secondary-color);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.lista-pasos li strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 5px;
}

/* CORRECCIÓN: Selector del enlace de fuente */
.boton-fuente { 
    color: var(--color-lo-claro);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

/* Botón Ver Más */
.load-more-container {
    text-align: center;
    margin: 40px 0 60px;
}
.boton-ver-mas-req {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-light); /* Uso de la variable definida */
    transition: background-color 0.3s, transform 0.1s;
}
.boton-ver-mas-req:hover {
    background-color: #1a5c9a;
    transform: translateY(-1px);
}
/*------------------------------CSS SOBRE-NOSOTROS----------------------------------*/

/* Banner Header */
.sobre-nosotros .banner-header {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #6d6d6d 0%, #2420fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.sobre-nosotros .banner-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../vistas/inicio/img/FONDO1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.sobre-nosotros .banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.sobre-nosotros .banner-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.sobre-nosotros .banner-content .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ffcc00;
}

/* Secciones */
.sobre-nosotros .section-padding {
    padding: 4rem 2rem;
}

.sobre-nosotros .sobre-nosotros-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Grid de contenido principal */
.sobre-nosotros .content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    width: 100%;
}

.sobre-nosotros .content-text {
    padding-right: 1rem;
}

.sobre-nosotros .content-image {
    position: relative;
}

/* Subtítulos de sección */
.sobre-nosotros .section-subtitle {
    font-size: 1.1rem;
    color: #2420fd;
    margin-bottom: 2rem;
    font-weight: 600;
}

.sobre-nosotros .section-subtitle .icon {
    margin-right: 10px;
    color: #ffcc00;
}

/* Contenido de texto */
.sobre-nosotros .about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

/* Imagen principal */
.sobre-nosotros .about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Placeholder de imagen */
.sobre-nosotros .image-placeholder {
    display: none;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-align: center;
}

.sobre-nosotros .image-placeholder.show {
    display: flex !important;
}

.sobre-nosotros .image-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2420fd;
}

.sobre-nosotros .image-placeholder p {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.sobre-nosotros .image-placeholder small {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Sección Misión y Visión */
.sobre-nosotros .mission-vision-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 2rem;
}

.sobre-nosotros .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.sobre-nosotros .section-header h2 {
    color: #1f1e74;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.sobre-nosotros .section-header p {
    color: #666;
    font-size: 1.2rem;
}

.sobre-nosotros .mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
    width: 100%;
}

.sobre-nosotros .mission-vision-item {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sobre-nosotros .mission-vision-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2420fd, #ffcc00);
}

.sobre-nosotros .mission-vision-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.sobre-nosotros .mission-vision-item .icon {
    font-size: 3rem;
    color: #2420fd;
    margin-bottom: 1.5rem;
}

.sobre-nosotros .mission-vision-item h5 {
    font-size: 1.5rem;
    color: #1f1e74;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.sobre-nosotros .mission-vision-item p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

/* Sección Valores */
.sobre-nosotros .values-section {
    background: #1f1e74;
    color: white;
    padding: 4rem 2rem;
}

.sobre-nosotros .values-section .section-header h2 {
    color: white !important;
}

.sobre-nosotros .values-section .section-header p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.sobre-nosotros .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    justify-items: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.sobre-nosotros .value-item {
    text-align: center;
    padding: 2rem 1rem;
    max-width: 280px;
    width: 100%;
}

.sobre-nosotros .value-item .icon {
    font-size: 2.5rem;
    color: #ffcc00;
    margin-bottom: 1rem;
}

.sobre-nosotros .value-item h6 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffcc00;
}

.sobre-nosotros .value-item p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Animaciones */
.sobre-nosotros .animate-box {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sobre-nosotros .animate-box:nth-child(1) {
    animation-delay: 0.1s;
}
.sobre-nosotros .animate-box:nth-child(2) {
    animation-delay: 0.3s;
}
.sobre-nosotros .animate-box:nth-child(3) {
    animation-delay: 0.5s;
}

/* Responsive para Sobre Nosotros */
@media (max-width: 768px) {
    .sobre-nosotros .banner-header {
        height: 300px;
    }
    
    .sobre-nosotros .banner-content {
        padding: 0 1rem;
    }
    
    .sobre-nosotros .banner-content h1 {
        font-size: 2rem;
    }
    
    .sobre-nosotros .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sobre-nosotros .content-text {
        padding-right: 0;
    }
    
    .sobre-nosotros .about-image {
        height: 300px;
    }
    
    .sobre-nosotros .image-placeholder {
        height: 300px;
    }
    
    .sobre-nosotros .section-header h2 {
        font-size: 2rem;
    }
    
    .sobre-nosotros .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sobre-nosotros .mission-vision-item {
        padding: 2rem 1rem;
    }
    
    .sobre-nosotros .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        justify-items: center;
        max-width: 100%;
    }
    
    .sobre-nosotros .sobre-nosotros-container {
        padding: 0 1rem;
    }
    
    .sobre-nosotros .section-padding {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .sobre-nosotros .banner-header {
        height: 250px;
    }
    
    .sobre-nosotros .banner-content h1 {
        font-size: 1.5rem;
    }
    
    .sobre-nosotros .section-header h2 {
        font-size: 1.5rem;
    }
    
    .sobre-nosotros .mission-vision-item {
        padding: 1.5rem 1rem;
    }
    
    .sobre-nosotros .values-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
/*--------------------------------------------CSS NOTICIA-----------------------------------------*/
/* Noticias */
.noticias {
    padding: 3rem 2rem;
}
.noticias h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2420fd;;
    font-size: 2rem;
}
/* Estilos para las tarjetas de noticias */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.noticia-tarjeta {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.noticia-tarjeta:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.noticia-tarjeta a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.noticia-tarjeta img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.noticia-tarjeta:hover img {
    transform: scale(1.08);
}

.noticia-contenido {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.noticia-contenido h4 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
    flex-grow: 1;
}

.noticia-tarjeta:hover .noticia-contenido h4 {
    color: #2477BD;
}

.noticia-contenido p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    text-align: justify;
}
/*------------------------------------------CSS TERMINAL---------------------------*/
/* ====================================
ESTILOS GENERALES
   ==================================== */
/* Contenedor principal */
.contenedor-principal {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* --- ESTILOS DE TU INTRODUCCIÓN Y BENEFICIOS --- */

.intro-section {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out;
}

.intro-section h2 {
    color: #313233ff;
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.intro-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.beneficios {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.beneficio-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 250px;
    text-align: center;
    transition: transform 0.3s ease;
    animation: slideUpFromBottom 0.8s ease-out;
}

.beneficio-item:hover {
    transform: translateY(-5px);
}

.beneficio-item i {
    font-size: 3em;
    color: #007bff;
    margin-bottom: 15px;
}

.beneficio-item h3 {
    color: #313233ff;
    margin-bottom: 10px;
}

/* --- GALERÍA DE TERMINALES --- */

.terminal-list-section{
    margin-top: 25px;
}

.info-terminal {
    animation: slideInFromRight 1s ease-out;
    padding: 20px;
    background: transparent;
    border-radius: 12px;
    margin-bottom: 40px;
}

.info-terminal h1 {
    color: #313233ff;
    margin-bottom: 20px;
    font-size: 2.5em;
    text-align: center;
}

.galeria-terminales {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    animation: fadeInUp 1s ease-out;
}

.terminal-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    animation: slideUpFromBottom 0.8s ease-out;
}

.terminal-item:hover {
    transform: translateY(-5px);
}

.terminal-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.terminal-item:hover img {
    transform: scale(1.1);
}

.overlay-terminal {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.overlay-terminal h4 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
}

.overlay-terminal p {
    margin: 0 0 10px 0;
    font-size: 0.9em;
}

.overlay-terminal .btn-ver-mas {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s ease;
    text-decoration: none; 
    display: inline-block; 
}

.overlay-terminal .btn-ver-mas:hover {
    background: #0056b3;
}

/* --- ESTILOS DE BÚSQUEDA Y PAGINACIÓN --- */

.filters-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}
.search-input-group {
    position: relative;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.beautiful-search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #ccc;
    border-radius: 50px; 
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}
.beautiful-search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}
.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #007bff;
    font-size: 1.2em;
    pointer-events: none;
}
.load-more-container {
    text-align: center;
    margin-top: 40px;
}
/* --- Regla CSS para ocultar las tarjetas inicialmente por paginación --- */
.terminal-hidden {
    display: none !important;
}

/* --- Estilo del botón 'Ver más' (loadMoreBtn) --- */
#loadMoreBtn {
    background: #2477BD;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    font-weight: 600;
}
#loadMoreBtn:hover {
    background: #1a5c92;
    transform: translateY(-2px);
}

/* --- Estilo del estado de resultados (resultStatus) --- */
.result-status {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #555;
    font-weight: bold;
}

/* ====================================
ESTILOS ESPECÍFICOS: DETALLES
   ==================================== */

/* Contenedor principal y fondo (Heredado de Agencia) */
.contenedor-principal-detalles {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 20px;
    padding: 20px;
    color: #333;
}

/* Contenedor Flex para Info e Imagen (agencia-contenedor) */
.terminal-detalles-contenedor {
    display: flex;
    flex-wrap: wrap; 
    gap: 30px;
    margin-left: 10%;
    margin-right: 10%;
    margin-bottom: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 5px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Sombra de Agencia */
    animation: fadeIn 1s ease-out;
}

/* Columna de Información (info-agencia) */
.terminal-info-caja { 
    flex: 2;
    min-width: 300px;
}
.terminal-info-caja .terminal-subtitulo { 
    /* Estilo h4 de Agencia */
    color: #2a2d30ff; 
    margin-bottom: 20px; 
    font-size: 1.4em;
    border-bottom: 2px solid #2a2d30ff;
    padding-bottom: 10px;
}
.terminal-info-caja .terminal-nombre { 
    /* Estilo h2 de Agencia */
    margin-top: 0; 
    color: #2a2d30ff;
    font-size: 2.2em; 
}
.terminal-info-caja p { 
    margin: 15px 0; 
    text-align: justify; 
    font-size: 1.1em;
    line-height: 1.6;
}
.terminal-info-caja .terminal-etiqueta { 
    /* Estilo strong de Agencia */
    color: #2a2d30ff;
    font-weight: bold;
}
.terminal-descripcion-recuadro {
    /* Estilo de descripción de Agencia */
    background: #f1f3f4;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 5px solid #2a2d30ff;
}
.terminal-descripcion-recuadro p {
    margin: 0;
    font-style: italic;
}

/* Columna de Imagen (imagen-agenciaInfo) */
.terminal-imagen-caja { 
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}
.terminal-imagen-caja .imagen-redonda { 
    width: 100%; 
    height: 300px; 
    border-radius: 12px; /* Redondeado de Agencia */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}
.terminal-imagen-caja .imagen-redonda:hover {
    transform: scale(1.05);
}

/* --- Título y separador --- */
.terminal-separador { 
    border: none; 
    height: 2px; 
    background: linear-gradient(to right, #2477BD, #0056b3); 
    margin: 40px 0;
    margin-left: 10%;
    margin-right: 10%;
}
.terminal-seccion-titulo { 
    /* Color h3 de Agencia */
    color: #2477BD;
    font-size: 1.8em; 
    margin-bottom: 20px;
    text-align: center;
}

/* Estilos de la Tabla (usamos las reglas de la agencia) */
.terminal-rutas-tabla { 
    border-collapse: collapse; 
    margin-top: 20px; 
    background: white; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.terminal-rutas-tabla th, .terminal-rutas-tabla td { 
    padding: 15px; 
    text-align: left; 
    border-bottom: 1px solid #ddd; 
    font-size: 1em;
}
.terminal-rutas-tabla th { 
    /* Encabezado de la tabla de agencia */
    background: linear-gradient(45deg, #2477BD, #0056b3); 
    color: #fff;
    font-weight: bold;
}
.terminal-rutas-tabla tr:hover { 
    background-color: #f1f1f1;
    transition: background 0.3s ease;
}
.mensaje-sin-rutas {
    text-align: center;
    font-style: italic;
    color: #777;
}

/* --- Navegación (Botón) --- */
.terminal-navegacion-inferior { 
    margin-top: 40px; 
    text-align: center; 
    clear: both;
}
.terminal-navegacion-inferior .terminal-btn-volver { 
    /* Estilo de botón de Agencia */
    background: linear-gradient(45deg, #007bff, #0056b3); 
    color: white; 
    border: none; 
    padding: 12px 20px; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: all 0.3s ease;
    font-size: 1em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.terminal-navegacion-inferior .terminal-btn-volver:hover { 
    background: linear-gradient(45deg, #0056b3, #004080);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.terminal-navegacion-inferior a { 
    text-decoration: none; 
    color: #fff;
}

/* ====================================
   ACTIVACIÓN DE ANIMACIONES
   ==================================== */

.slide-in-left { 
    animation: slideInFromLeft 1s ease-out; 
}
.slide-in-right { 
    animation: slideInFromRight 1s ease-out; 
}
.slide-up-bottom { 
    animation: slideUpFromBottom 1s ease-out; 
}
.terminal-detalles-contenedor {
    /* Aplicar la animación principal al contenedor (si se usa) */
    animation: fadeIn 1s ease-out; 
}

/* ====================================
   DEFINICIÓN DE @keyframes
   ==================================== */

@keyframes slideInFromLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideUpFromBottom {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ====================================
   RESPONSIVO 
   ==================================== */
   
@media (max-width: 1024px) { 
    .contenedor-principal {
        margin: 20px 50px;
    }
}

@media (max-width: 768px) { 
    /* VISTA DE DETALLES: Apilado */
    .terminal-detalles-contenedor {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }
    .terminal-imagen-caja {
        min-width: 100%;
        max-width: 100%;
        order: -1; 
    }
    .terminal-info-caja.slide-in-left {
        min-width: 100%;
        order: 0;
    }
    
    /* TABLA RESPONSIVA */
    .terminal-rutas-tabla, .terminal-rutas-tabla thead, .terminal-rutas-tabla tbody, .terminal-rutas-tabla tr, .terminal-rutas-tabla td {
        display: block;
    }
    
    thead {
        display: none;
    }

    .terminal-rutas-tabla tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        border-radius: 8px;
        overflow: hidden;
    }

    .terminal-rutas-tabla td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%; 
        text-align: right;
    }
    
    .terminal-rutas-tabla td:before {
        content: attr(data-label);
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #2477BD;
    }

    .terminal-rutas-tabla tr:only-child td[colspan] {
        padding-left: 15px; 
        text-align: center;
    }
    
    .terminal-navegacion-inferior .terminal-btn-volver { 
        display: block; 
        width: 100%; 
        margin: 10px 0; 
    }
}

@media (max-width: 480px) { 
    .contenedor-principal {
        margin: 10px 10px;
    }
    .terminal-info-caja p {
        font-size: 1em;
    }
    .terminal-rutas-tabla {
        font-size: 12px;
    }
}
/* -----------------------------------Footer -----------------------*/
footer {
    background-color: #343a40;
    color: white;
    padding: 40px 0 10px 0;
    margin-top: 40px;
}
.contenedorFooter { 
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 20px; 
}
.footer-content {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between; 
    border-bottom: 1px solid #495057; 
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.footer-section { 
    flex-basis: 25%; 
    padding: 10px;
}
.footer-section h3 {
    border-bottom: 2px solid var(--primary-color); 
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 1.2em; 
}
.footer-section p {
    font-size: 0.9em; 
    color: #ced4da; 
    margin-bottom: 5px; 
}
.footer-section i {
    margin-right: 8px;
    color: var(--primary-color);
}
.footer-bottom {
    text-align: center;
    font-size: 0.8em; 
    color: #ced4da; 
}

@media (max-width: 768px) {
    .footer-content { 
        flex-direction: column; 
    }
    .footer-section { 
        flex-basis: 100%; 
        margin-bottom: 20px; 
    }
}