/* =========================================
   1. VARIABLES Y RESET (Base moderna)
   ========================================= */
:root {
    --color-primario: #004aad;    /* Azul Confianza */
    --color-secundario: #007fff;  /* Azul Brillante */
    --color-accion: #ff914d;      /* Naranja Llamada a la acción */
    --color-accion-hover: #e97d33;
    --color-fondo: #f4f7f6;       /* Gris muy suave, casi blanco */
    --color-texto: #333333;
    --color-texto-suave: #555555;
    --borde-radio: 12px;
    --sombra-suave: 0 10px 30px rgba(0,0,0,0.08);
}

* {
    box-sizing: border-box; /* Esto evita que los rellenos rompan el ancho */
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--color-fondo);
    color: var(--color-texto);
    -webkit-font-smoothing: antialiased; /* Texto más nítido */
}

/* =========================================
   2. HEADER Y NAVEGACIÓN
   ========================================= */
header {
    background: linear-gradient(135deg, var(--color-primario), var(--color-secundario));
    color: white;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 2.2rem;
    margin: 0 0 10px 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

header h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0 0 25px 0;
    opacity: 0.9;
}

/* Menú de Navegación */
nav {
    background: rgba(255, 255, 255, 0.1); /* Fondo semitransparente */
    padding: 10px;
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background 0.3s;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Botón Hamburguesa (Oculto en PC) */
.menu-hamburguesa {
    display: none; 
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

/* =========================================
   3. SECCIONES Y CONTENEDORES (Estilo Tarjeta)
   ========================================= */
main {
    padding: 20px;
}

section, .hero {
    background: white;
    max-width: 900px;
    margin: 30px auto;
    padding: 50px 40px;
    border-radius: var(--borde-radio);
    box-shadow: var(--sombra-suave);
}

section h2, .hero h2 {
    color: var(--color-primario);
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    position: relative;
}

/* Pequeña línea decorativa debajo de los títulos */
section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-accion);
    margin: 10px auto 0;
    border-radius: 2px;
}

p {
    font-size: 1.05rem;
    color: var(--color-texto-suave);
    margin-bottom: 20px;
}

/* =========================================
   4. BOTONES (CTA)
   ========================================= */
.btn, .boton, button {
    display: inline-block;
    background-color: var(--color-accion);
    color: white;
    border: none;
    padding: 15px 30px; /* Más grandes para dedos */
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px; /* Redondeados modernos */
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 145, 77, 0.4);
}

.btn:hover, .boton:hover, button:hover {
    background-color: var(--color-accion-hover);
    transform: translateY(-3px); /* Se levanta */
    box-shadow: 0 6px 20px rgba(255, 145, 77, 0.6);
}

/* =========================================
   5. SERVICIOS (Ajuste final: Centrado y Espacio Justo)
   ========================================= */

.servicios-container {
    display: flex !important; 
    flex-wrap: wrap !important;
    
    /* ESTO ES CLAVE: Centra las tarjetas horizontalmente en la pantalla */
    justify-content: center !important; 
    
    /* Espacio entre tarjetas (horizontal) */
    gap: 30px !important; 
    
    width: 100%;
    max-width: 1000px; 
    margin: 40px auto; /* Centra el bloque completo */
}

.servicio {
    /* --- CONFIGURACIÓN PC --- */
    /* Usamos un ancho fijo máximo para que sean todas iguales */
    width: 45% !important; 
    max-width: 400px !important;
    
    /* ANTES TENÍAS 60px, AHORA 30px (Menos espacio abajo) */
    margin-bottom: 30px !important; 
    
    /* Estética */
    background: #fff;
    padding: 30px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    
    display: flex;
    flex-direction: column;
    align-items: center;
}

.servicio img {
    width: 100%;
    max-width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.servicio h3 {
    font-size: 1.25rem;
    color: var(--color-primario);
    font-weight: 700;
    margin-bottom: 15px;
}

/* --- CONFIGURACIÓN CELULAR --- */
@media (max-width: 768px) {
    .servicios-container {
        gap: 20px !important; 
    }

    .servicio {
        width: 100% !important; /* Ocupa todo el ancho en celular */
        max-width: 350px; 
        margin-bottom: 30px !important; 
    }
}

/* =========================================
   6. FORMULARIO PROLIJO
   ========================================= */
form {
    max-width: 100%;
}

label {
    display: block;
    margin-top: 20px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-primario);
}

input, textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0; /* Borde gris claro */
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primario);
    background: #fff;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    background: var(--color-texto);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

/* =========================================
   8. REDES SOCIALES (Tus botones nuevos)
   ========================================= */

/* Estático (Debajo del formulario) */
.social-static-container {
    background: #f1f8ff; /* Fondo azul muy clarito */
    padding: 30px;
    border-radius: var(--borde-radio);
    margin-top: 40px;
    text-align: center;
}

.social-icons-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.icon-btn img {
    width: 50px;
    height: 50px;
    transition: transform 0.2s;
}
.icon-btn:hover img { transform: scale(1.1); }

/* Sticky (Costado) */
.sticky-float-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.float-btn img {
    width: 55px;
    height: 55px;
    background: white;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}
.float-btn:hover img { transform: translateX(-5px); }

/* =========================================
   9. RESPONSIVE (CELULARES) - CORREGIDO
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. ARREGLO DEL HEADER Y TÍTULO */
    header { 
        padding: 20px 15px; 
        /* Agregamos MUCHO espacio arriba para que el botón entre cómodo */
        padding-top: 80px; 
    }

    header h1 { 
        font-size: 1.8rem; 
        line-height: 1.2;
    }

    /* 2. ARREGLO DEL "PUNTO" MOLESTO */
    nav {
        /* Le sacamos el fondo y el relleno al contenedor padre */
        background: transparent; 
        padding: 0;
        box-shadow: none;
        backdrop-filter: none;
        width: 100%; /* Para que no moleste */
    }

   /* 3. BOTÓN HAMBURGUESA (Más compacto y centrado) */
    .menu-hamburguesa {
        display: flex;
        justify-content: center;
        align-items: center;

        position: absolute;
        top: 25px;
        right: 25px;
        z-index: 1001;

        background: rgba(255,255,255,0.2);
        width: 40px;  /* Hacemos el cuadradito un poco más chico */
        height: 40px; /* Hacemos el cuadradito un poco más chico */
        border-radius: 8px;

        font-size: 1.6rem; /* Ajustamos el tamaño de las líneas para que quede armónico */
        border: none;
        cursor: pointer;
        /* Quitamos el padding-bottom porque con este tamaño ya no hace falta */
    }

    /* 4. MENÚ DESPLEGABLE */
    .menu-principal {
        display: none; /* Oculto por defecto */
        flex-direction: column;
        background: var(--color-primario);
        
        /* Lo posicionamos para que tape bien o baje prolijo */
        position: absolute;
        top: 80px; /* Aparece justo debajo del botón */
        left: 0;
        width: 100%;
        padding: 0;
        z-index: 1000;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    
    /* Estilo de los links en el celular */
    .menu-principal li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .menu-principal li a {
        display: block;
        padding: 15px 20px;
        text-align: left;
        border-radius: 0;
    }

    .menu-principal.activo { display: flex; }
    
    /* 5. SECCIONES Y TARJETAS */
    section, .hero {
        margin: 20px 0;
        padding: 30px 20px;
        box-shadow: none;
        border-radius: 0;
        border-bottom: 1px solid #eee;
    }

    /* Tarjetas de servicios una abajo de la otra */
    .servicios-container {
        gap: 40px !important; 
    }

    .servicio {
        width: 100% !important;
        max-width: 100%;
        margin-bottom: 40px !important;
    }
    
    /* Botones flotantes */
    .float-btn img { width: 45px; height: 45px; }
    .sticky-float-container { right: 10px; bottom: 15px; }
}
/* Estilos para las fotos de testimonios */
.testimonio-card {
    /* Aseguramos que el contenido se centre */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonio-foto {
    width: 70px;            /* Tamaño en pantalla */
    height: 70px;           /* Tamaño en pantalla */
    border-radius: 50%;     /* Esto las hace redondas */
    object-fit: cover;      /* Evita que la foto se deforme si no es perfectamente cuadrada */
    border: 3px solid #004aad; /* Un borde azulcito elegante */
    margin-bottom: 15px;    /* Espacio entre la foto y el texto */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Sombrita suave */
}
/* --- ARREGLO DE PUNTITOS (Paginación) --- */

.mySwiper {
    padding-bottom: 50px !important; /* Genera un piso vacío abajo para los puntos */
}

.swiper-pagination {
    bottom: 0 !important;       /* Los manda al fondo de ese piso vacío */
    position: absolute;         /* Asegura que se queden ahí quiestos */
}

.swiper-pagination-bullet {
    width: 10px;                /* Un poquito más grandes para que sean fáciles de tocar */
    height: 10px;
    background: #004aad;        /* Azul corporativo */
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;                 /* El activo se ve bien fuerte */
    background: #004aad;
}