/* Reseteo básico y variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif; /* [cite: 27] */
    color: #333;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth; /* [cite: 32] */
    scroll-padding-top: 100px; /* Compensa la altura exacta de tu menú */
    overflow-anchor: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* El truco: Limita el espacio interior a 1100px y lo centra dinámicamente */
    padding: 15px calc((100% - 1100px) / 2); 
    
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Ajuste del tamaño del logo */
header .logo img {
    max-width: 200px; /* Limita el ancho máximo */
    height: auto; /* Mantiene la proporción original de la imagen */
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header nav a {
    text-decoration: none;
    color: #290d83;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #d300c8;
}

.btn-contacto {
    background-color: #181094; /* Naranja corporativo */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

/* --- HERO SECTION CON CARRUSEL DE FONDO --- */
.hero {
    position: relative;
    width: 100%;
    height: 65vh; /* Se redujo el tamaño de la imagen */
    min-height: 500px; /* Asegura un tamaño mínimo en móviles */
}

.background-slider {
    width: 100%;
    height: 100%;
    z-index: 1; /* Ya no es negativo para poder clickear los botones */
}

.background-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center; /* Centra verticalmente */
    justify-content: flex-start; /* Alinea el texto a la izquierda */
    padding: 0 10%; /* Espacio lateral para que no pegue a los bordes */
}

/* Capa inteligente para legibilidad y claridad de imagen */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado: Oscuro donde va el texto, transparente donde va la imagen */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 80%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2; /* Por encima de la capa oscura */
    max-width: 700px;
    color: white;
    text-align: left;
}

.hero-content .subtitle {
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
}

.btn-hero {
    display: inline-block;
    background-color: #cc22cc; /* Naranja/Rojo corporativo */
    color: white;
    text-decoration: none;
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-hero:hover {
    background-color: #3500b0;
}

/* Estilos de flechas y paginación de Swiper */
.swiper-button-next,
.swiper-button-prev {
    color: white !important; /* Flechas blancas */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.swiper-pagination-bullet {
    background: white !important;
}

/* --- BARRA DE ESTADÍSTICAS --- */
/* --- BARRA DE ESTADÍSTICAS (Estilo referencia 2) --- */
.stats-bar {
    width: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 40px 5%;
    border-bottom: 1px solid #eaeaea; /* Línea sutil de separación */
}

.stat {
    text-align: center;
}

.stat h2 {
    font-size: 3rem;
    margin-bottom: 5px;
    color: #4c3cdd; /* Color rojo/naranja corporativo basado en la referencia */
}

.stat p {
    font-size: 0.9rem;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
}

/* --- SECCIÓN SERVICIOS --- */
.servicios {
    padding: 80px 5%;
    text-align: center;
    background-color: #f9f9f9;
}

.servicios h2 {
    color: #004d80;
    margin-bottom: 50px;
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: end; /* Alinea todos los elementos hacia abajo para que el texto quede parejo */
}

.servicio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.servicio img {
    width: auto;
    height: 120px; /* Altura fija para uniformidad. Auméntalo si los quieres aún más grandes */
    max-width: 100%;
    object-fit: contain; /* Ajusta la imagen sin deformarla */
    margin-bottom: 20px;
}
/* --- SECCIÓN NOSOTROS --- */
.nosotros {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 80px 5%;
    gap: 40px;
    background-color: #25222c; /* Aplica el fondo negro solo a esta sección */
    color: #ffffff; /* Cambia el texto del párrafo a blanco */
}

.texto-nosotros {
    flex: 1;
    min-width: 300px;
}

.texto-nosotros h2 {
    color: #ffffff; /* Cambia el título principal de la sección a blanco */
    margin-bottom: 20px;
}

.mision-vision {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.card.bg-orange {
    background-color: #cc22cc;
    color: white;
    padding: 20px;
    border-radius: 10px;
    flex: 1;
    text-align: center;
}

.icon-mv {
    max-width: 80px;
    height: auto;
    margin-bottom: 15px;
}

.imagen-nosotros {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center; /* Asegura que la imagen se centre en su columna */
    align-items: center;
}

.imagen-nosotros img {
    width: 100%;
    max-width: 500px; /* Este es el tope. La imagen no crecerá más de 500px de ancho */
    height: auto; /* Mantiene la proporción */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- SECCIÓN TESTIMONIOS --- */
.testimonios {
    padding: 80px 5%;
    background-color: #f0f8ff;
    text-align: center;
}

.testimonios h2 {
    color: #004d80;
    margin-bottom: 40px;
}

.card-testimonio {
    background: white;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #004d80;
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-testimonio h3 {
    color: #004d80;
    margin-bottom: 15px;
    font-style: italic;
}

/* --- FOOTER --- */
footer {
    background-color: #25222c;
    color: white;
    padding: 60px 5% 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

footer h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 10px;
}

/* --- FOOTER: Estilos de Derechos de Autor --- */
.footer-copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Línea blanca sutil divisoria */
    font-size: 0.9rem;
    color: #e0e0e0; /* Color gris claro para no competir con los títulos */
}

.certificaciones img {
    width: 60px;
    margin-right: 10px;
    margin-top: 20px;
}

.libro-reclamaciones img {
    width: 80px;
    margin-top: 20px;
}
/* --- SECCIÓN NUESTROS CLIENTES (LOGOS) --- */
.clientes-logos {
    padding: 80px 5%;
    text-align: center;
    background-color: #f7f9fa; /* Fondo gris claro tipo referencia */
}

.clientes-logos h2 {
    color: #004d80;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle-clientes {
    color: #004d80;
    margin-bottom: 40px;
}

.clientesSwiper {
    max-width: 1100px;
    margin: 0 auto 30px;
}

.clientesSwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px; /* Mantiene la misma altura para todos los logos */
}

.clientesSwiper .swiper-slide img {
    max-width: 80%;
    max-height: 80px;
    object-fit: contain; 
}

/* Modificamos los puntos solo para este carrusel */
.clientesSwiper .swiper-pagination-bullet {
    background: #666 !important; /* Puntos grises oscuros */
    width: 10px;
    height: 10px;
}

.btn-ver-mas {
    display: inline-block;
    background-color: #0033ff; /* Azul brillante del botón */
    color: white;
    padding: 12px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-ver-mas:hover {
    background-color: #0022cc;
}

/* --- SECCIÓN PÁGINA DE CONTACTOS --- */
.seccion-contacto {
    padding: 80px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    min-height: 70vh; /* Asegura que el footer se empuje hacia abajo */
}

.contacto-header {
    text-align: center;
    margin-bottom: 50px;
}

.contacto-header h2 {
    color: #004d80; /* Azul corporativo para igualar tu imagen */
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.contacto-header p {
    color: #333;
    font-size: 1.1rem;
}

.formulario-contacto {
    width: 100%;
    max-width: 800px; /* Ancho máximo para mantener la proporción de la imagen */
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-size: 1rem;
    color: #000;
    margin-bottom: 10px;
    font-weight: normal;
}

.form-group label .requerido {
    color: #cc0000; /* Asterisco rojo fiel a la imagen */
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: Arial, sans-serif; /* Mantiene la misma tipografía que el body[cite: 1] */
    resize: vertical; /* Permite al usuario agrandar la caja de texto solo hacia abajo */
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #004d80;
    box-shadow: 0 0 5px rgba(0, 77, 128, 0.2);
}

.btn-enviar-formulario {
    background-color: #0004d3; /* Color corporativo del botón */
    color: white;
    padding: 18px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.btn-enviar-formulario:hover {
    background-color: #2600b0;
}

/* --- PÁGINA DE SERVICIOS: HERO --- */
.hero-interior {
    position: relative;
    width: 100%;
    height: 45vh; /* Cabecera más corta que la página principal */
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.overlay-interior {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Capa de oscurecimiento */
    z-index: 0;
}

.hero-interior-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-interior-content h1 {
    font-size: 3.5rem;
    color: white;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
}

/* --- PÁGINA DE SERVICIOS: EXPERIENCIA CONSOLIDADA --- */
.experiencia-consolidada {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 5% 40px;
    color: #333;
}

.experiencia-consolidada h2 {
    color: #004d80; /* Azul corporativo */
    font-size: 2rem;
    margin-bottom: 25px;
}

.experiencia-consolidada p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* --- PÁGINA DE SERVICIOS: ACORDEÓN --- */
.contenedor-acordeon {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5% 80px;
}

.acordeon-item {
    background-color: #f2f8fc; /* Fondo celeste claro de la imagen */
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.acordeon-header {
    width: 100%;
    background: transparent;
    color: #004d80;
    padding: 25px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: left;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.acordeon-header:hover {
    background-color: #e6f2fa;
}

/* Transición suave para la flecha */
.icono-flecha {
    transition: transform 0.3s ease;
}

.acordeon-item.activo .icono-flecha {
    transform: rotate(180deg);
}

.acordeon-body {
    max-height: 0; /* Escondido por defecto */
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.acordeon-contenido {
    padding: 0 30px 30px 30px;
    color: #444;
}

.acordeon-contenido h4 {
    color: #333;
    margin: 20px 0 10px 0;
    font-size: 1.05rem;
}

.acordeon-contenido p {
    margin-bottom: 10px;
    line-height: 1.7;
}

.acordeon-contenido ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 15px;
}

.acordeon-contenido ul li {
    margin-bottom: 8px;
}

/* --- ANIMACIÓN FADE-IN AL HACER SCROLL --- */
.fade-in {
    opacity: 0;
    transform: translateY(40px); /* Empieza 40px más abajo */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0); /* Sube a su posición normal */
}

/* --- NOTIFICACIÓN FLOTANTE DE ÉXITO --- */
.notificacion {
    position: fixed;
    top: -250px; /* Escondido por defecto por encima de la pantalla */
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745; /* Verde de éxito */
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    z-index: 2000;
    transition: top 0.5s ease-in-out;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.notificacion.visible {
    top: 30px; /* Baja a la vista del usuario */
}


/* Responsividad para móviles */
@media (max-width: 768px) {
    .contacto-header h2 {
        font-size: 2rem;
    }
    .seccion-contacto {
        padding: 50px 5%;
    }
}

/* --- MEDIA QUERIES (Responsividad) --- */
@media (max-width: 1150px) {
    header {
        padding: 15px 5%;
    }
}
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .stats-bar {
        flex-direction: column;
        width: 90%;
        bottom: 20px;
        border-radius: 10px;
    }
    .stat {
        margin-bottom: 15px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .mision-vision {
        flex-direction: column;
    }
}