/* ============================================================
   ESTILOS PARA LA PÁGINA NOSOTROS (BASAGENTE)
============================================================ */

/* ============================================================
   REGLAS GENERALES DE LA PÁGINA
============================================================ */
html {
    /* Esto crea el efecto de desplazamiento suave al hacer clic en los anclajes */
    scroll-behavior: smooth; 
}

/* Espaciados personalizados extra */
.mb-6 {
    margin-bottom: 4.5rem !important; /* Aprox 72px */
}

.mb-7 {
    margin-bottom: 6rem !important; /* Aprox 96px */
}

/* ============================================================
   1. SECCIÓN: HERO NOSOTROS
============================================================ */
.hero-nosotros {
    position: relative;
    min-height: 85vh; /* Gran altura para impacto visual */
    /* La imagen de fondo ahora se carga directamente desde el HTML con PHP */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: -130px; /* Sube bajo el menú flotante */
    padding-top: 120px;
    overflow: hidden;
}

/* Capa oscura para que el texto blanco resalte sobre la foto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(30, 37, 60, 0.85) 0%, rgba(30, 37, 60, 0.4) 100%);
    z-index: 1;
}

.z-index-2 {
    z-index: 2;
}

/* Ajustes tipográficos */
.hero-nosotros h1 {
    color: #ffffff !important; /* Agregamos esta línea para forzar el blanco */
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-nosotros p {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .hero-nosotros {
        min-height: 70vh;
        text-align: center !important; /* Centramos en móvil para mejor lectura */
    }
    .hero-nosotros .text-start {
        text-align: center !important;
    }
    .hero-nosotros h1 {
        font-size: 2.5rem;
    }
    .hero-overlay {
        background: rgba(30, 37, 60, 0.7); /* Overlay más uniforme en móvil */
    }
}


/* ============================================================
   2. SECCIÓN: IDENTIDAD (ACORDEÓN HORIZONTAL)
============================================================ */
.identidad-section {
    padding-top: 6rem; /* Espaciado extra para separarlo del Hero */
    padding-bottom: 5rem;
    background-color: #FFFFFF;
}

.accordion-container {
    display: flex;
    width: 100%;
    height: 450px;
    gap: 15px;
}

/* Tarjeta en estado cerrado (Flex: 1) */
.accordion-card {
    position: relative;
    flex: 1;
    border-radius: 2rem;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--bg-color); /* Toma el color que le dimos en el HTML */
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Tarjeta en estado abierto (Flex: 5) */
.accordion-card.active,
.accordion-card:hover {
    flex: 5;
}

/* Imagen de fondo oculta por defecto */
.acc-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease 0.1s; /* Ligero retraso */
}

/* Capa negra transparente para legibilidad */
.acc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.accordion-card.active .acc-bg-img,
.accordion-card:hover .acc-bg-img,
.accordion-card.active .acc-overlay,
.accordion-card:hover .acc-overlay {
    opacity: 1;
}

/* Contenido Cerrado (Los números) */
.acc-closed-content {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    transition: opacity 0.3s ease;
}

.accordion-card.active .acc-closed-content,
.accordion-card:hover .acc-closed-content {
    opacity: 0;
}

/* Contenido Abierto (Textos) */
.acc-open-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.2s;
}

.accordion-card.active .acc-open-content,
.accordion-card:hover .acc-open-content {
    opacity: 1;
    transform: translateY(0);
}

.acc-open-content h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.acc-open-content p {
    font-size: 1.1rem;
    margin: 0;
}

/* RESPONSIVE: Adaptación para Celulares */
@media (max-width: 768px) {
    .accordion-container {
        flex-direction: column; /* Se apilan hacia abajo */
        height: 600px;
    }
    .acc-closed-content {
        bottom: 50%;
        transform: translate(-50%, 50%); /* Centra el número */
    }
    .acc-open-content {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
    .acc-open-content h4 {
        font-size: 1.5rem;
    }
}


/* ============================================================
   3. SECCIÓN: TESTIMONIOS (CARRUSEL)
============================================================ */
.py-6 {
    padding-top: 5rem;
    padding-bottom: 2rem;
}

/* Tarjeta gris clarito para el testimonio */
.testimonio-card {
    background-color: #f8f9fa; /* Gris muy sutil */
    border-radius: 1rem;
    padding: 2.5rem;
    height: 100%;
    border: 1px solid #eeeeee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Efecto al pasar el mouse por encima */
.testimonio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.testimonio-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
    margin-top: 1rem;
}

/* Estilos para los botones de navegación del carrusel */
.swiper-nav-buttons .btn {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
}

.swiper-nav-buttons .btn:hover {
    transform: scale(1.1);
}

/* Color del punto activo en la paginación */
.swiper-pagination-bullet-active {
    background-color: #F08805 !important;
}

/* Asegurar que todas las tarjetas tengan la misma altura */
.testimoniosSwiper .swiper-slide {
    height: auto;
}

/* ============================================================
   4. SECCIÓN: CALL TO ACTION (CTA)
============================================================ */
.cta-section {
    padding-top: 1rem;
    padding-bottom: 7rem;
}

/* Botón Naranja (Principal) */
.btn-cta-primary {
    background-color: #F08805;
    color: #ffffff;
    border: 2px solid #F08805;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-cta-primary:hover {
    background-color: #d17504; /* Naranja más oscuro */
    border-color: #d17504;
    color: #ffffff;
    transform: translateY(-3px); /* Pequeño salto al pasar el mouse */
    box-shadow: 0 10px 20px rgba(240, 136, 5, 0.25) !important;
}

/* Botón Transparente (Secundario / Asistente) */
.btn-cta-outline {
    background-color: transparent;
    color: #1E253C;
    border: 2px solid #1E253C;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-cta-outline:hover {
    background-color: #1E253C;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 37, 60, 0.2) !important;
}