﻿body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.cartas {
    background-color: #1B264F;
    width: 100%;
    margin: 0;
    padding: 20px 0;
    min-height: auto;
}

    .cartas .row {
        --bs-gutter-x: 1.5rem;
        margin-right: 0;
        margin-left: 0;
    }

.card {
    border-radius: 15px;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    }

.card-title {
    color: #1B264F;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .cartas {
        padding: 40px 20px;
    }

    .img-fluid {
        max-width: 90% !important;
    }
}

.footer-wave-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 50px;
}

.footer-dark-custom {
    background-color: #1B264F;
    color: #ffffff;
    margin: 0 !important;
    padding-bottom: 20px;
    border: none !important;
}

    .footer-dark-custom h6 {
        letter-spacing: 1px;
        margin-bottom: 20px;
    }

    .footer-dark-custom a.text-info {
        color: #B8CCF9 !important;
        transition: color 0.3s ease;
    }

        .footer-dark-custom a.text-info:hover {
            color: #D4E157 !important;
        }

.ondaInicio {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -1px;
    background: transparent;
}

.fondoTitulo {
    background-color: #1B264F;
    color: #ffffff;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 0;
    padding-top: 40px;
    padding-bottom: 10px;
}

/* Ajuste general para evitar espacios del layout */
main[role="main"] {
    padding-top: 0 !important;
}

.imagen-contenedor {
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.4s ease;
    display: block;
    width: 100%;
    line-height: 0;
    clip-path: inset(0 round 15px);
}

    .imagen-contenedor img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.5s ease;
    }

    .imagen-contenedor:hover img {
        transform: scale(1.1);
    }


    /* Eliminar espacio entre navbar y contenido */
.navbar {
    margin-bottom: 0 !important;
}

.fondoTitulo {
    margin-top: -1px !important;
}


/* Estilos del Contenedor de WhatsApp */
.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000; /* Asegurar que esté por encima de todo */
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alinear opciones a la derecha */
}

/* Estilos del Gran Botón Circular */
.whatsapp-float {
    background-color: #25D366; /* Verde vibrante sólido */
    color: white;
    border-radius: 50%;
    width: 70px; /* Tamaño mucho más grande */
    height: 70px; /* Tamaño mucho más grande */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px; /* Icono más grande */
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

    /* Efecto hover en el gran botón */
    .whatsapp-float:hover {
        background-color: #128C7E;
        transform: scale(1.1);
        color: floralwhite;
    }

/* Estilos del Menú Desplegable */
.whatsapp-menu {
    display: none; /* Oculto por defecto */
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

/* Mostrar menú al pasar el ratón por el contenedor */
.whatsapp-container:hover .whatsapp-menu {
    display: flex;
}

/* Estilos de las Opciones del Menú (Botones Profesionales) */
.wa-option {
    background: #1e2a45; /* Fondo oscuro acorde a tu panel TLB */
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 1px solid #C5D400; /* Borde amarillo-lima brillante */
    transition: all 0.3s ease;
    white-space: nowrap; /* Evitar que el texto se parta */
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio entre icono y texto */
}

    /* Efecto hover en las opciones */
    .wa-option:hover {
        background-color: #C5D400;
        color: #1e2a45;
    }

/* ==========================================================================
   ESTILOS MODERNOS PARA DESPLEGABLE DE HORARIOS - TLB TRANSPORTES
   ========================================================================== */

.seccion-horarios h1 span {
    border-bottom: 3px solid #C5D400;
    padding-bottom: 5px;
}

/* Contenedor principal del details */
.horario-desplegable {
    display: block;
    width: 100%;
    margin: 0 auto;
    transition: all 0.3s ease;
}

/* Cabecera del desplegable (Summary) */
.horario-summary {
    background-color: #1B264F;
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    list-style: none; /* Elimina la flecha nativa del navegador */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
}

    /* Eliminar flecha nativa en navegadores Safari/WebKit */
    .horario-summary::-webkit-details-marker {
        display: none;
    }

    .horario-summary:hover {
        background-color: #151d3b;
        border-color: #C5D400;
        transform: translateY(-2px);
    }

/* Icono del reloj de acento */
.text-accent {
    color: #C5D400;
}

/* Animación y rotación de la flecha */
.flecha-icono {
    transition: transform 0.3s ease;
    font-size: 14px;
}

details[open] .flecha-icono {
    transform: rotate(180deg);
    color: #C5D400;
}

/* Cuerpo desplegado */
.horario-contenido {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    animation: desplegarEfecto 0.4s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* Badges de estados abiertos y cerrados */
.badge-abierto {
    background-color: rgba(27, 38, 79, 0.07);
    color: #1B264F;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.badge-cerrado {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.alinear-cerrado {
    background-color: #fafafa;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Animación Keyframe de suavizado */
@keyframes despacharEfecto {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.horario-desplegable[open] .horario-contenido {
    animation: despacharEfecto 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   ESTILOS MODERNOS PARA REDES SOCIALES - TLB TRANSPORTES
   ========================================================================== */

.letras-redes {
    font-size: 13px;
    letter-spacing: 2px;
    color: #6c757d !important; /* Gris elegante y discreto */
}

/* Contenedor circular base del icono */
.icono-red {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #1B264F; /* Tu color azul institucional */
    font-size: 22px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

    /* Animación general al pasar el cursor (Hover) */
    .icono-red:hover {
        transform: translateY(-6px);
        color: #ffffff !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
    }

    /* Efecto específico para Facebook (Azul oficial) */
    .icono-red.facebook:hover {
        background-color: #1877F2;
        border-color: #1877F2;
    }

    /* Efecto específico para Instagram (Degradado oficial) */
    .icono-red.instagram:hover {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        border-color: transparent;
    }

/* ==========================================================================
   ESTILOS MODERNOS PARA MISIÓN E HISTORIA - TLB TRANSPORTES
   ========================================================================== */

.text-azul-tlb {
    color: #1B264F; /* Tu azul institucional */
}

/* Tarjetas de Información Corporativa */
.card-corporativa {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-top: 4px solid #1B264F !important; /* Línea de acento azul inicial */
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

    /* Animación al pasar el cursor (Hover) */
    .card-corporativa:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
        border-top-color: #C5D400 !important; /* Cambia al amarillo-lima brillante */
    }

/* Contenedores de los Iconos */
.icono-corporativo {
    background-color: rgba(27, 38, 79, 0.06);
    color: #1B264F;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

/* Iluminación del icono en Hover */
.card-corporativa:hover .icono-corporativo {
    background-color: #C5D400;
    color: #1B264F;
}

/* Optimización de texto de lectura */
.texto-justificado {
    line-height: 1.6;
    font-size: 15px;
    text-align: justify;
}

