/* Variables CSS para colores y consistencia */
:root {
    --primary-color: #1a3a6b; /* Azul oscuro - para títulos, fondos de elementos principales */
    --secondary-color: #b98f2b; /* Dorado/Amarillo - para acentos, botones CTA, iconos */
    --dark-color: #222; /* Texto general oscuro */
    --light-color: #f9f9f9; /* Fondos claros */
    --gray-text: #6c757d; /* Texto secundario, descripciones */
}

/* Estilos Básicos del Cuerpo */
body { 
    font-family: 'Roboto Slab', serif; /* Fuente serif para cuerpo de texto */
    color: var(--dark-color); 
    padding-top: 80px; /* Evita que el contenido se oculte detrás del navbar fijo */
    line-height: 1.7; /* Mayor espacio entre líneas para legibilidad */
}

/* Estilos de Títulos */
h1, h2, h3, h4, h5, h6 { 
    font-family: 'Montserrat', sans-serif; /* Fuente sans-serif para títulos */
    font-weight: 700; 
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Navbar Personalizado */
.navbar { 
    background-color: rgba(255, 255, 255, 0.95); /* Fondo blanco semitransparente */
    backdrop-filter: blur(10px); /* Efecto de desenfoque para el fondo */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    padding: 5px 0; /* Reduce el padding vertical del navbar */
}

.logo-image { 
    height: 105px; /* Aumenta la altura del logo */
    width: auto; 
}

.navbar-nav .nav-link {
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 15px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color);
    background-color: rgba(26, 58, 107, 0.05); /* Ligero fondo al pasar el ratón */
    border-radius: 5px;
}

/* Botones de Acción (CTA) */
.btn-primary { 
    background-color: var(--secondary-color); 
    border-color: var(--secondary-color); 
    padding: 14px 30px; 
    font-weight: 700; 
    font-family: 'Montserrat', sans-serif; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: all 0.3s ease; 
    border-radius: 50px; /* Botones redondeados */
}

.btn-primary:hover { 
    background-color: #a37d20; /* Tono más oscuro del secundario */
    border-color: #a37d20; 
    transform: translateY(-3px); /* Pequeño efecto de elevación */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
}

.btn-outline-primary { 
    border-color: var(--primary-color); 
    color: var(--primary-color); 
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-outline-primary:hover { 
    background-color: var(--primary-color); 
    color: white; 
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-whatsapp { 
    background-color: #25D366; /* Color de WhatsApp */
    color: white; 
    padding: 14px 30px; 
    font-weight: 700; 
    border: none; 
    transition: background-color 0.3s ease; 
    border-radius: 50px;
}
.btn-whatsapp:hover { 
    background-color: #1DA851; 
    color: white; 
}
.btn-whatsapp i {
    margin-right: 8px; /* Espacio entre el icono y el texto */
}

/* Sección Hero (Banner principal) */
.hero { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1503192851959-c6da8ac80cff?q=80&w=2070&auto=format&fit=crop'); 
    background-size: cover; 
    background-position: center; 
    color: white; 
    padding: 150px 0; /* Más padding para un efecto imponente */
    text-align: center; 
    min-height: 70vh; /* Altura mínima de la ventana */
    display: flex;
    align-items: center;
}
.hero h1 { 
    font-size: clamp(2.5rem, 5vw, 4.5rem); 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); 
    margin-bottom: 25px;
}
.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Estilos de Sección General */
.section-padding { 
    padding: 80px 0; 
}
.section-title { 
    text-align: center; 
    margin-bottom: 60px; 
}
.section-title h2 { 
    font-size: 2.8rem; 
    color: var(--primary-color); 
    position: relative;
    display: inline-block; /* Para que el after se centre correctamente */
    padding-bottom: 10px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}
.section-title p { 
    font-size: 1.1rem; 
    color: var(--gray-text); 
    max-width: 700px; 
    margin: 20px auto 0 auto; 
}

/* Sección "Por Qué Confiar en Nosotros" (Trust Items) */
.trust-item {
    padding: 30px;
    height: 100%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.trust-icon-wrapper {
    margin-bottom: 20px;
}
.trust-icon {
    font-size: 4rem; 
    color: var(--secondary-color);
}
.trust-item h3.counter {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5rem; /* Tamaño grande para los números */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}
.trust-item h3 { /* Para "Consulta Confidencial" */
     font-size: 2rem;
     color: var(--primary-color);
     margin-bottom: 10px;
}
.trust-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}
.trust-item p {
    font-size: 1rem;
    color: var(--gray-text);
}

/* Sección de Servicios */
.service-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Asegura que todas las tarjetas tengan la misma altura */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empuja el botón al final */
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.service-item i {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.service-item h4 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.service-item p {
    font-size: 0.95rem;
    color: var(--gray-text);
    flex-grow: 1; /* Permite que el párrafo ocupe el espacio disponible */
}

/* Sección de Equipo */
.team-card { 
    background: #fff; 
    border-radius: 15px; 
    padding: 30px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.07); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    margin-bottom: 30px; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    text-align: center;
}
.team-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.12); 
}
.team-card img { 
    width: 150px; 
    height: 150px; 
    object-fit: cover; 
    border-radius: 50%; 
    border: 6px solid var(--light-color); /* Borde claro alrededor de la imagen */
    margin-bottom: 20px; 
    align-self: center; 
}
.team-card h4 { 
    color: var(--primary-color); 
    margin-bottom: 5px; 
}
.team-card .title { 
    color: var(--secondary-color); 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 700; 
    display: block; 
    margin-bottom: 15px; 
    font-size: 0.9rem;
}
.team-card p { 
    flex-grow: 1; 
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* Sección de Testimonios (Carrusel Swiper) */
.testimonial-slider {
    padding-bottom: 50px; /* Espacio para la paginación */
}
.testimonial-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; 
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.testimonial-card-img {
    width: 100%;
    height: 250px; /* Altura fija para uniformidad */
    object-fit: contain; /* Ajusta la imagen sin recortarla */
    background-color: #f7f9fa; /* Fondo claro para el recuadro */
    padding: 10px; /* Espaciado interno */
}
.testimonial-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}
.testimonial-card .quote {
    font-style: italic;
    color: var(--gray-text);
    margin-bottom: auto; /* Empuja el nombre y botón hacia abajo */
    flex-grow: 1;
    font-size: 1rem;
}
.testimonial-card .client-name {
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-top: 20px;
    font-size: 1.1rem;
}
/* Estilo específico para el botón de Ver Historia Completa */
.testimonial-card .btn-outline-secondary {
    background-color: var(--primary-color); 
    border-color: var(--primary-color);
    color: white;
    font-weight: 700;
    align-self: center; 
    padding: 10px 20px; /* Ajuste para un botón más compacto */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease-in-out; 
    border-radius: 50px; /* Redondeado */
}
.testimonial-card .btn-outline-secondary:hover,
.testimonial-card .btn-outline-secondary:focus {
    background-color: #112a52; /* Azul más oscuro */
    border-color: #112a52;
    color: white;
    transform: translateY(-3px); 
    box-shadow: 0 6px 15px rgba(26, 58, 107, 0.3); 
}
.swiper-pagination-bullet-active { 
    background-color: var(--primary-color) !important; /* Color de las bolitas de paginación */
}

/* Sección de Contacto */
.contact-form { 
    background-color: white; 
    padding: 40px; 
    border-radius: 8px; 
    box-shadow: 0 5px 25px rgba(0,0,0,0.08); 
}
.contact-form .form-control {
    border-radius: 5px;
    padding: 12px;
    border: 1px solid #ddd;
}
.contact-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(185, 143, 43, 0.25);
}
.contact-info .fa-fw { /* Iconos de info de contacto */
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-right: 15px;
}
.contact-info p {
    margin-bottom: 0;
    color: var(--dark-color);
}
.contact-info a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-info a:hover {
    color: var(--secondary-color);
}
.contact-info small {
    display: block;
    color: var(--gray-text);
    font-size: 0.85rem;
}

/* Footer */
footer { 
    background-color: var(--primary-color); 
    color: #e0e0e0; 
    padding: 40px 0 20px 0; 
    font-size: 0.9rem;
}
footer p {
    margin-bottom: 10px;
}
footer .small {
    font-size: 0.8rem;
    color: #a0a0a0;
    max-width: 800px;
    margin: 0 auto;
}

/* Modales */
.modal-header { 
    border-bottom: 2px solid var(--secondary-color); 
}
.modal-title { 
    color: var(--primary-color); 
    font-size: 1.8rem; 
    font-family: 'Montserrat', sans-serif;
}
.modal-body h5 { 
    color: var(--primary-color); 
    font-family: 'Montserrat', sans-serif; 
    margin-top: 25px; 
    margin-bottom: 15px; 
    border-left: 4px solid var(--secondary-color); 
    padding-left: 15px; 
    font-size: 1.3rem;
}
.modal-body ul { 
    list-style-type: none; 
    padding-left: 0; 
    margin-bottom: 20px;
}
.modal-body ul li { 
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23b98f2b" class="bi bi-check-circle-fill" viewBox="0 0 16 16"><path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"/></svg>') no-repeat left 5px; /* Ajuste para alinear el check */
    background-size: 18px 18px;
    padding-left: 30px; 
    margin-bottom: 10px; 
    color: var(--dark-color);
}
.modal-body p {
    color: var(--gray-text);
    margin-bottom: 15px;
}
.modal-body .lead {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-style: italic;
}


/* Media Queries para Responsive Design (Adaptabilidad) */
@media (max-width: 992px) {
    .navbar-brand {
        margin-right: auto;
    }
    .navbar-toggler {
        margin-left: auto;
    }
    .navbar-collapse {
        text-align: center;
        margin-top: 15px;
    }
    .navbar-nav .nav-item {
        margin: 10px 0;
    }
    .navbar-nav .btn-primary {
        width: 80%;
        margin: 15px auto;
        display: block;
    }
    .hero {
        padding: 80px 0;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .section-padding {
        padding: 60px 0;
    }
    .section-title h2 {
        font-size: 2.2rem;
    }
    .section-title p {
        font-size: 1rem;
    }
    .trust-item, .service-item, .team-card, .testimonial-card {
        margin-bottom: 30px;
    }
    .contact-form, .ps-lg-4 {
        padding: 30px;
    }
    .contact-section .row {
        flex-direction: column-reverse; /* Pone el formulario debajo en móvil */
    }
    .contact-info {
        margin-bottom: 30px;
        text-align: center;
    }
    .contact-info .d-flex {
        justify-content: center !important; /* Centra los iconos de contacto */
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px; /* Ajuste para navbar más pequeño en móviles */
    }
    .logo-image {
        height: 80px; /* Logo más pequeño en móviles */
    }
    .hero {
        padding: 60px 0;
        min-height: 50vh;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 0.95rem;
    }
    .section-padding {
        padding: 40px 0;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    .trust-item h3.counter {
        font-size: 3.5rem;
    }
    .trust-item h4 {
        font-size: 1.2rem;
    }
    .service-item i {
        font-size: 3rem;
    }
    .service-item h4 {
        font-size: 1.4rem;
    }
    .team-card img {
        width: 120px;
        height: 120px;
    }
    .testimonial-card-img {
        height: 200px;
    }
    .contact-form, .ps-lg-4 {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .btn-primary, .btn-whatsapp {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    .navbar-nav .btn-primary {
        padding: 10px 15px;
    }
}