/* ==========================================================================
   1. PALETA DE COLORES Y FUENTE GLOBAL
   ========================================================================== */
:root {
    --brand: #0b64b3;
    --primary: #1e3a8a;
    --dark: #0f172a;
    --muted: #6b7280;
    --bg-page: #f4f6f9;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-page);
    color: #333;
    margin: 0;
}

.quick-section-nav {
    position: fixed;
    top: 50%;
    right: 20px;
    z-index: 1050;
    transform: translateY(-50%);
}

.section-nav-btn {
    min-width: 160px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.12);
    text-align: left;
}

.section-nav-btn:hover {
    background-color: #0f172a;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
}

.section-nav-btn.active,
.navbar-nav .nav-link.active {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.quick-section-bar a.active {
    color: var(--primary) !important;
    font-weight: 700;
}

.quick-section-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    display: none;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.quick-section-bar a {
    color: #1f2937;
    text-decoration: none;
    flex: 1;
}

.quick-section-bar a:hover {
    color: var(--primary);
}

.quick-section-bar i {
    font-size: 1.2rem;
}

@media (max-width: 991.98px) {
    .quick-section-nav {
        display: none;
    }
    .quick-section-bar {
        display: flex;
    }
}


/* Asegurar que el carrusel ocupe toda la altura */
.carousel, 
.carousel-inner, 
.carousel-item { 
    height: 100vh !important; 
    margin-top: 0 !important; 
}

.carousel-item img { 
    width: 100%; 
    height: 100vh !important; 
    object-fit: cover; /* Mantiene la proporción sin deformar */
}

/* Añade esto a tu CSS del carrusel */
.carousel-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    z-index: 2;
}


/* ==========================================================================
   2. BOTONES PROFESIONALES (Estilo Sólido)
   ========================================================================== */
.btn-blue-modern {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    border: none;
    padding: 12px 30px !important;
    border-radius: 8px !important; /* Bordes rectos formales */
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
    box-shadow: none;
}

.btn-blue-modern:hover {
    background-color: #172554 !important; /* Un tono más oscuro al pasar mouse */
    transform: none;
}

/* ==========================================================================
   3. TARJETAS DE SERVICIO (Estilo Corporativo)
   ========================================================================== */
.service-card-premium {
    background-color: var(--white) !important;
    color: #333333 !important;
    padding-top: 10% !important; /* Espacio para el icono */
    border-radius: 16px !important;
    border: 1px solid rgba(15,23,42,0.08);
    transition: box-shadow 0.3s ease;
    position: relative;
    overflow: visible;
    height: 100%;
}

.service-card-premium:hover {
    box-shadow: 0 16px 30px rgba(0,0,0,0.12) !important;
    border-color: rgba(11,100,179,0.25);
}

.service-card-premium .card-title {
    color: var(--accent-dark) !important;
    font-weight: 900;
}

.service-card-premium .card-text {
    color: var(--text-muted) !important;
    line-height: 1.6;
}

/* ==========================================================================
   4. ICONOS FLOTANTES
   ========================================================================== */
.service-icon-float {
    position: absolute;
    top: -28px;
    left: 50%;
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 2px solid rgba(255,255,255,0.18);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 10;
    transform: translateX(-50%);
}

/* ==========================================================================
   2. SECCIÓN SERVICIOS (Conexión fluida)
   ========================================================================== */
.services-section {
    position: relative;
    min-height: calc(100vh - 90px);
    padding-top: 190px;
    padding-bottom: 90px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.92) 100%),
                url('../img/BUSES/bus_012.1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    background-blend-mode: overlay;
    color: #ffffff;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1;
}

.services-section > .container {
    position: relative;
    z-index: 2;
}

.btn-blue-modern {
    color: #ffffff !important; /* Fuerza el blanco siempre */
    text-decoration: none;
}

/* Asegura que el texto siga blanco al pasar el mouse */
.btn-blue-modern:hover {
    color: #ffffff !important;
}

.services-section h2,
.services-section p,
.services-section .card-title,
.services-section .card-text {
    color: #ffffff !important;
}

.services-section .card {
    background: rgba(255, 255, 255, 0.98) !important;
}

.services-section .service-card-premium .card-title,
.services-section .service-card-premium .card-text {
    color: #0f172a !important;
}

.services-section .service-card-premium {
    background-color: #ffffff !important;
}



/* ==========================================================================
   3. SECCIÓN EQUIPO (Conexión fluida)
   ========================================================================== */
.team-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(16, 45, 85, 0.98) 100%);
    color: #ffffff;
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), transparent 35%),
                linear-gradient(180deg, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.75));
    z-index: 1;
}

.team-section .container {
    position: relative;
    z-index: 2;
}

.team-section .text-center h2 {
    font-size: clamp(2rem, 2.8vw, 3.3rem);
    letter-spacing: 0.02em;
}

.team-section .team-accent {
    color: #38bdf8;
}

.team-section .team-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.team-section .team-indicator span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: background-color 0.2s ease;
}

.team-section .team-indicator span.active {
    width: 14px;
    height: 14px;
    background: #38bdf8;
}

.team-section .team-card {
    position: relative;
    padding-bottom: 100px !important;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.team-section .team-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}

.team-section .team-card .card-body {
    padding-top: 5rem !important;
}

.team-section .team-card .card-title {
    font-size: 1.15rem;
    color: #0f172a;
}

.team-section .team-card p.lead {
    color: #4b5563;
    font-size: 0.96rem;
    line-height: 1.85;
}

.team-avatar-wrapper {
    position: relative;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid #ffffff;
    background: #ffffff;
    z-index: 10;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.team-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-quote {
    position: absolute;
    right: -12px;
    bottom: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #38bdf8;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    font-size: 0.95rem;
}

/* ==========================================================================
   4. CORRECCIONES GENERALES
   ========================================================================== */
#logo { max-height: 56px; width: auto; margin-left: 0.5rem; }
/* 1. Ajuste del solapamiento */
.features-section {
    position: relative;
    z-index: 10;
    margin-top: -100px; /* Esto hará que se monten sobre la sección siguiente */
    margin-bottom: 50px;
}

/* 1. Estado base de las tarjetas */
.feature-card {
    border-radius: 18px;
    background: #ffffff;
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease; /* Transición suave */
    cursor: pointer;
}

/* 2. Estado cuando pasas el mouse (Efecto Hover) */
.feature-card:hover {
    background-color: #1e3a8a !important; /* Tu Azul Rey Institucional */
    transform: translateY(-10px);        /* Elevación sutil */
    box-shadow: 0 15px 30px rgba(30, 58, 138, 0.2);
}

/* 3. Invertir el color del texto e iconos al pasar el mouse */
.feature-card:hover h5, 
.feature-card:hover p, 
.feature-card:hover i, 
.feature-card:hover .small {
    color: #ffffff !important; /* Cambia todo el texto a blanco */
}

/* Ajustes para el logo de SuperTransporte en el Footer */
.supertransporte-logo-footer {
    height: 60px;          /* Ajusta la altura según tu preferencia (ej. 50px a 80px) */
    width: auto;           /* Mantiene la proporción original del logo */
    object-fit: contain;   /* Evita que el logo se deforme o estire */
    filter: brightness(0) invert(1); /* Convierte cualquier logo a color blanco */
    transition: opacity 0.3s ease;
    opacity: 0.8;          /* Un toque sutil de transparencia institucional */
}

.supertransporte-logo-footer:hover {
    opacity: 1;            /* Se vuelve totalmente visible al pasar el mouse */
}

.footer-logo {
    max-height: 80px;      /* Controla la altura para que no sea intrusivo */
    width: auto;           /* Mantiene la proporción */
    opacity: 0.8;          /* Suaviza la intensidad visual */
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;            /* Se ilumina al pasar el mouse */
}



footer {
    flex-shrink: 0; /* Esto evita que el footer se encoja */
}

/* Oscurecer el footer con una capa overlay para tono más oscuro */
.footer-main {
    position: relative;
    color: #ffffff;
    background-color: #0b1220; /* tono base oscuro por si falla la imagen */
}
.footer-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65); /* overlay oscuro */
    z-index: 0;
}
.footer-main .container {
    position: relative;
    z-index: 2; /* contenido encima del overlay */
}
.footer-main a, .footer-main p, .footer-main h2, .footer-main span {
    color: rgba(255,255,255,0.95) !important;
}
.footer-main .contact-card-team-style {
    position: relative;
    background: rgba(255,255,255,0.98);
    border-radius: 20px;
}
.footer-main .contact-card-team-style .card-body {
    padding-top: 2.5rem;
}
.footer-main .contact-card-team-style h6,
.footer-main .contact-card-team-style p,
.footer-main .contact-card-team-style a,
.footer-main .contact-card-team-style span {
    color: #1f2937 !important;
}
.footer-main .contact-card-team-style .text-muted {
    color: #6b7280 !important;
}
.footer-main .contact-card-team-style .text-dark {
    color: #111827 !important;
}
.footer-main .contact-icon-bubble {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(11,100,179,0.18);
    z-index: 2;
}
.footer-main .contact-icon-bubble i {
    font-size: 1.35rem;
}
.footer-main .contact-card-team-style .card-body {
    padding-top: 1.25rem;
}
.footer-main .contact-card-team-style .card-body .fw-bold {
    color: #111827 !important;
}
.footer-logo { opacity: 0.95; }


/* ==========================================================================
   ESTILOS DE VISTA NOSOTROS
   ========================================================================== */

.full-screen-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el contenido verticalmente */
    padding: 100px 0;       /* Espacio para la navbar fija */
    scroll-margin-top: 72px; /* Ajuste para que el scroll no tape el inicio con la nav */
}  

/* ==========================================================================
    1 PARTE
   ========================================================================== */

.nosotros-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto asegura que la foto llene toda la pantalla */
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    /* Degradado más oscuro para asegurar que el texto blanco resalte */
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge-custom {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(37, 99, 235, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
}

.title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.section-heading {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.section-subtitle,
.section-description {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    opacity: 0.9;
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

.subtitle, .description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary-custom {
    background: #2563eb;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.btn-primary-custom:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}


/* ==========================================================================
    2 PARTE/ RESEÑA HISTORICA.
   ========================================================================== */

/* Ajuste de contenedor para que la sección tenga buen aire */
#historia {
    padding: 80px 20px;
    background: #ffffff;
}

/* Mejora la legibilidad del texto */
.display-5 {
    line-height: 1.1;
    color: #1a1a1a;
}

/* Asegura que la imagen sea el foco visual */
.rounded-4 { border-radius: 1.5rem !important; }

/* Ajuste móvil para que la tarjeta del 45 no se salga de pantalla */
@media (max-width: 991px) {
    .position-absolute {
        position: relative !important;
        margin-top: -40px;
        margin-left: 20px;
        display: inline-block;
    }
}

.full-screen-section {
    background-color: transparent !important; /* Quita el fondo blanco si lo tienen */
    padding: 100px 0;
}

/* Si quieres un fondo alternado elegante */
.bg-soft-blue { background-color: #f1f5f9; } /* Un gris azulado muy suave */

.scroll-down-btn {
position: absolute !important; /* Importante para que respete el padre */
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50 !important;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    /* Animación de rebote */
    animation: bounce 2s infinite;
}

.scroll-down-btn:hover {
    background: #2563eb; /* Azul corporativo */
    border-color: #2563eb;
    transform: translateX(-50%) scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
}

/* ==========================================================================
   FILOSOFÍA: MISION, VISION Y VALORES
   ========================================================================== */

/* Contenedor principal de la sección */
#filosofia {
    padding: 70px 0;
    background: linear-gradient(180deg, #f6f9ff 0%, #e7eef9 100%);
}

#filosofia .container {
    max-width: 1140px;
}

#filosofia .row.g-4 {
    align-items: stretch;
}

/* Tarjetas Oscuras (Misión/Visión) */
.card-dark {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border-radius: 2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid rgba(11, 100, 179, 0.18);
}

.filosofica-card {
    max-height: 340px;
}

.card-dark:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.14) !important;
}

.card-dark .bg-primary {
    background-color: rgba(11, 100, 179, 0.15) !important;
}

.card-dark h3 {
    font-size: 1.85rem;
    letter-spacing: 0.04em;
}

.card-dark p {
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.75;
}

.card-dark p.fs-6 {
    font-size: 0.98rem !important;
}

.card-dark i {
    color: var(--primary) !important;
}

/* Tarjetas de Valores */
.val-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
    cursor: pointer;
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.75rem;
    padding: 1.75rem;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.val-card:hover {
    background: rgba(11, 100, 179, 0.09);
    border-color: rgba(11, 100, 179, 0.22);
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

.val-card:hover h6,
.val-card:hover small {
    color: #111827 !important;
}

.val-card:hover i {
    color: var(--primary) !important;
}

.val-card:hover .bg-primary {
    background-color: rgba(11, 100, 179, 0.18) !important;
}

.val-card .bg-primary {
    background-color: rgba(11, 100, 179, 0.12) !important;
}

.val-card:hover i {
    color: var(--dark) !important;
}

.val-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

.val-card h6 {
    color: #111827;
    margin-bottom: 0.5rem;
}

.val-card small {
    color: #6b7280;
    line-height: 1.7;
}

@media (max-width: 767.98px) {
    #filosofia {
        padding: 60px 0;
    }
    #filosofia .card-dark,
    .val-card {
        border-radius: 1.5rem;
    }
    .val-card {
        padding: 1.4rem;
    }
}
