/* FAQ content improvements */
.faq-answer {
    color: #555;
}
.faq-answer h3 {
    color: var(--primary-blue);
    font-size: 1.05rem;
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
}
.faq-answer p {
    margin-bottom: 0.9rem;
    line-height: 1.7;
}
.faq-answer .answer-list,
.faq-answer .payment-methods,
.faq-answer .card-list {
    margin: 0.6rem 0 0.9rem 1.25rem;
}
.faq-answer .payment-methods li {
    gap: 12px;
    align-items: flex-start;
}
.faq-answer .payment-methods svg { margin-top: 4px; }
.faq-answer .important-note { margin-top: 1rem; }
.faq-answer .btn-presupuesto { margin-top: 0.8rem; }

/* Ensure columns don't collapse when content is taller */
.faq-columns { align-items: start; }

:root {
    --primary-blue: #0a4a8e;
    --primary-yellow: #ffc400;
    --dark-yellow-btn: #e6a700;
    --dark-text: #333;
    --light-text: #fff;
    --whatsapp-green: #25d366;
    --whatsapp-green-dark: #128C7E;
    --font-family: 'Lato', sans-serif;
}

/* Fuentes Locales */
@font-face {
  font-display: swap;
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
    src: url('../fonts/lato-v24-latin-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
    src: url('../fonts/lato-v24-latin-italic.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
    src: url('../fonts/lato-v24-latin-700.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
    src: url('../fonts/lato-v24-latin-900.woff2') format('woff2');
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Desactivamos el smooth scroll global para evitar conflictos de anclaje.
   El comportamiento suave se maneja de forma controlada vía JS cuando aplica. */
html {
    scroll-behavior: auto;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
}

/* Header */
header {
    background-color: #fff;
}

.top-bar {
    background-color: var(--primary-blue);
    color: var(--light-text);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar .top-bar-text {
    margin: 0;
    font-weight: 700;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.top-bar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-call {
    background-color: var(--primary-yellow);
    color: var(--primary-blue);
    font-weight: 900;
}

.btn-call:hover {
    background-color: #ffe066; 
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: var(--light-text);
    border: 2px solid var(--whatsapp-green);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-green-dark);
    border-color: var(--whatsapp-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Botón WhatsApp en barra azul (encima del menú) con glow como el CTA */
.top-bar .btn-whatsapp {
    animation: radial-glow 2.5s infinite 1.5s;
}

/* Vibración para botones de WhatsApp */
@keyframes vibrate {
    0% { transform: translateX(0); }
    15% { transform: translateX(-2px); }
    30% { transform: translateX(2px); }
    45% { transform: translateX(-2px); }
    60% { transform: translateX(2px); }
    75% { transform: translateX(-1px); }
    85% { transform: translateX(1px); }
    100% { transform: translateX(0); }
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    animation: vibrate 0.4s linear 1;
}

/* Respeta la preferencia del usuario por menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .btn-whatsapp:hover,
    .btn-whatsapp:focus,
    .cta-whatsapp-btn:hover,
    .cta-whatsapp-btn:focus,
    .cta-whatsapp a:hover,
    .cta-whatsapp a:focus {
        animation: none !important;
    }
    /* Desactiva brillo pulsante en CTA de WhatsApp */
    .cta-whatsapp-btn {
        animation: none !important;
    }
        /* Y también en el botón de la barra superior */
        .top-bar .btn-whatsapp {
            animation: none !important;
        }
    /* Reducir animaciones globales: menú móvil, slider, enlaces */
    .nav-links {
        transition: none !important;
    }
    .nav-links a,
    .menu-toggle span,
    .slider-nav,

    /* Contact form styles */
    #contact-form {
        padding: 40px 20px;
    }

    #lead-form {
        max-width: 520px;
        display: grid;
        gap: 12px;
    }

    .honeypot-field {
        position: absolute;
        left: -10000px;
        top: auto;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }
    .pagination-dot,
    .testimonial-slider {
        transition: none !important;
        animation: none !important;
    }
}

.main-nav {
    padding: 15px 0;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 99;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.main-nav.scrolled {
    padding: 8px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-nav.scrolled .logo {
    font-size: 1.4rem;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Lato', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0;
    color: var(--primary-blue);
    line-height: 1.1;
    transition: font-size 0.3s ease, color 0.3s ease;
}

.logo span {
    color: #3b6fab; /* contraste suave con el azul principal */
}

@media (max-width: 992px) {
    .logo { font-size: 1.45rem; }
}
@media (max-width: 576px) {
    .logo { font-size: 1.35rem; }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--dark-text);
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-yellow);
    transition: width 0.3s ease;
}

.nav-links a:hover:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 3px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    color: var(--light-text);
    padding: 80px 0;
    overflow: hidden;
    background: linear-gradient(145deg, var(--primary-blue) 0%, #1c5d9f 100%);
}

.hero-background-picture {
    display: none;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: -300px;
    left: -200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    bottom: -200px;
    right: -150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    max-width: 700px;
    box-shadow: none;
    border-left: none;
}

.hero-text h1 {
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.2px;
    margin-bottom: 20px;
    color: #fff;
}

.hero-text p {
    margin-bottom: 14px;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}
.hero-text strong {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 700;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    background-color: var(--whatsapp-green);
    color: #fff;
    border: 2px solid var(--whatsapp-green);
    animation: radial-glow 2.5s infinite 1.5s;
}

.hero-cta-btn:hover,
.hero-cta-btn:focus {
    background-color: var(--whatsapp-green-dark);
    border-color: var(--whatsapp-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    outline: none;
}

.hero-cta-btn svg {
    position: relative;
    top: -1px;
}

/* Ajustes para escritorio */
@media (min-width: 992px) {
    .hero { 
        padding: 100px 0;
        display: flex;
        align-items: center;
    }
    .hero .container { 
        max-width: 1200px; 
        padding-left: 20px; 
        padding-right: 20px; 
        margin-left: auto;
        margin-right: auto;
    }
    .hero-content { 
        min-height: 0; 
        align-items: center; 
        justify-content: center; 
        text-align: center;
    }
    .hero-text { max-width: 800px; padding: 0; border-left-width: 0; background-color: transparent; color: var(--light-text); box-shadow: none; }
    .hero-text h1 { font-size: clamp(2.8rem, 4vw, 3.8rem) !important; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 18px; font-weight: 900; }
    .hero-text p { font-size: 1.2rem; max-width: 60ch; line-height: 1.6; margin-bottom: 15px; }
}
@media (min-width: 1400px) {
    .hero {
        padding: 120px 0;
    }
    .hero-content { min-height: 0; justify-content: center; }
    .hero .container { 
        max-width: 1200px; 
        padding-left: 20px; 
        padding-right: 20px; 
        margin-left: auto;
        margin-right: auto;
    }
    .hero-text { max-width: 850px; padding: 0; background-color: transparent; color: var(--light-text); box-shadow: none; }
    .hero-text h1 { font-size: clamp(3rem, 4vw, 4.2rem); line-height: 1.2; letter-spacing: -0.015em; }
    .hero-text p { max-width: 65ch; font-size: 1.25rem; }
}

/* CTA Bar REDESIGNED HIERARCHY */
.cta-bar {
    background-color: var(--primary-yellow);
    padding: 20px 0;
    color: var(--primary-blue);
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-text {
    flex-grow: 1;
}

.cta-text p {
    margin: 0;
    font-size: 1.2rem; /* Increased size */
    font-weight: 700;
    line-height: 1.4;
}

.cta-text strong {
    font-weight: 900;
    font-size: 1.4rem; /* Increased size */
    margin-left: 5px;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.cta-call-btn,
.cta-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Secondary Button Style */
.cta-call-btn {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding-top: 6px; /* Adjust padding to fit text */
    padding-bottom: 6px;
}
.cta-call-btn:hover {
    background-color: rgba(10, 74, 142, 0.08); /* Light blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-phone-icon {
    flex-shrink: 0;
    width: 24px; /* Slightly smaller icon */
    height: 24px;
}

.cta-phone-details {
    text-align: left;
}

.cta-phone-details span {
    display: block;
}

.cta-phone-details span:first-child {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
}

.cta-phone-number {
    font-size: 1.4rem; /* Match strong text size */
    font-weight: 900;
    line-height: 1.2;
}

/* Primary Button Style */
.cta-whatsapp-btn {
    background-color: var(--whatsapp-green);
    color: #fff;
    border: 2px solid var(--whatsapp-green);
    animation: radial-glow 2.5s infinite 1.5s;
    
}

.cta-whatsapp-btn:hover,
.cta-whatsapp-btn:focus {
    background-color: var(--whatsapp-green-dark);
    border-color: var(--whatsapp-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    animation: vibrate 0.4s linear 1; /* Unified hover/focus effect */
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: var(--light-text);
    
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background-color: var(--whatsapp-green-dark);
    animation: vibrate 0.4s linear 1; /* Unified hover/focus effect */
}

.cta-whatsapp-btn:hover {
    background-color: var(--whatsapp-green-dark);
    border-color: var(--whatsapp-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cta-whatsapp-btn:hover,
.cta-whatsapp-btn:focus {
    animation: vibrate 0.4s linear 1;
}


.services-section{padding:60px 0 30px;text-align:center;background-color:#f8f9fa}.section-title{font-size:2.5rem;color:var(--primary-blue);font-weight:900;margin-bottom:10px;text-align:center}.title-underline{display:block;width:80px;height:4px;background-color:var(--primary-yellow);margin:0 auto 50px;border-radius:2px}
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 20px;
    max-width: 800px; /* Constrain width on large screens */
    margin: 0 auto 50px; /* Center grid and add bottom margin */
}
.service-brand-button {
    background-color: var(--primary-yellow);
    padding: 15px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}
.service-brand-button:hover{transform:translateY(-3px);box-shadow:0 4px 10px rgba(0,0,0,.1); background-color: var(--dark-yellow-btn)}
.brand-finder{max-width:650px;margin:0 auto;background-color:#fff;border:1px solid #e0e6ef;border-radius:12px;padding:30px 40px;box-shadow:0 6px 20px rgba(10,74,142,.08)}.finder-title{font-size:1.2rem;color:var(--primary-blue);margin-bottom:20px;display:flex;align-items:center;justify-content:center;gap:10px}.finder-title svg{position:relative;top:-1px}.select-wrapper{position:relative}.brand-select{width:100%;padding:12px 20px;border:1px solid #ced4da;border-radius:5px;font-size:1rem;font-family:var(--font-family);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;cursor:pointer;color:var(--dark-text)}.brand-select:invalid{color:#999}.select-wrapper::after{content:'▼';font-size:12px;color:#888;position:absolute;right:15px;top:50%;transform:translateY(-50%);pointer-events:none}
.faq-section{padding:30px 0;background-color:#fff}.faq-columns{display:grid;grid-template-columns:1fr 1fr;gap:30px}.faq-item{border:1px solid #e0e0e0;border-radius:8px;margin-bottom:20px;overflow:hidden}.faq-question{width:100%;background-color:#f8f9fa;border:none;padding:20px;text-align:left;font-size:1rem;font-weight:700;color:var(--dark-text);cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:15px;transition:background-color .3s ease}
.faq-arrow{transition:transform .3s ease;flex-shrink:0}.faq-item.active .faq-arrow{transform:rotate(90deg)}
.faq-question:hover{background-color:#f1f3f5}.faq-item.active .faq-question{background-color:#fff;border-bottom:1px solid #e0e0e0}.faq-answer{max-height:0;overflow:hidden;transition:max-height .4s ease-out,padding .4s ease-out;background-color:#fff;padding:0 20px;color:#555}.faq-item.active .faq-answer{max-height:500px;padding:20px}.faq-answer p{margin-bottom:15px}.btn-presupuesto,.cta-whatsapp a{display:inline-flex;align-items:center;gap:10px;background-color:var(--whatsapp-green);color:#fff;padding:12px 20px;border-radius:8px;text-decoration:none;font-weight:700;border:none;cursor:pointer;transition:background-color .3s ease, color .3s ease, border-color .3s ease}.btn-presupuesto svg,.cta-whatsapp svg{width:20px;height:20px;fill:#fff; transition: fill 0.3s ease;}.btn-presupuesto:hover,.cta-whatsapp a:hover{background-color:var(--whatsapp-green-dark);animation:vibrate .4s linear 1}.cta-whatsapp a:focus{animation:vibrate .4s linear 1;background-color:var(--whatsapp-green-dark)}.btn-presupuesto{margin-top:10px}
.common-problems-section{padding:60px 0;background-color:#f8f9fa;text-align:center}.problems-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin-top:50px;align-items:stretch}
.problem-card{background-color:#fff;padding:30px;border-radius:10px;box-shadow:0 5px 20px rgba(0,0,0,.08);text-align:center;display:flex;flex-direction:column;align-items:center;gap:15px}
.problem-icon{width:60px;height:60px;background-color:var(--primary-blue);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.problem-content{display:flex;flex-direction:column;flex-grow:1;width:100%;align-items:center}
.problem-card h3{font-size:1.3rem;color:var(--primary-blue);margin-bottom:15px}.problem-card p{margin-bottom:20px;color:#555;font-size:.95rem;flex-grow:1}

/* Redesigned problem card button */
.problem-card .btn-presupuesto {
    margin-top: auto; /* Mantiene el botón al fondo de la tarjeta */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--whatsapp-green);
    color: #fff;
    border: 2px solid var(--whatsapp-green);
    padding: 12px 24px;
    border-radius: 50px; /* Igual que el CTA de la barra amarilla */
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    width: auto; /* No ocupar todo el ancho; respeta el contenido */
    animation: radial-glow 2.5s infinite 1.5s; /* Efecto consistente con CTA */
}
.problem-card .btn-presupuesto svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    transition: fill 0.3s ease;
}
.problem-card .btn-presupuesto:hover,
.problem-card .btn-presupuesto:focus {
    background-color: var(--whatsapp-green-dark);
    border-color: var(--whatsapp-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    outline: none;
}

.about-section{padding:60px 0;background-color:#fff}.about-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:50px;align-items:center}.about-card{border-radius:12px;overflow:hidden;box-shadow:0 10px 30px rgba(10,74,142,.1);display:flex;flex-direction:column;height:100%}.about-card img{width:100%;height:auto;display:block;aspect-ratio:16/10;object-fit:cover}.about-card-info{background-color:var(--primary-blue);color:var(--light-text);padding:25px;flex-grow:1;display:flex;flex-direction:column}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin-bottom:20px}.info-col-left{display:flex;flex-direction:column}.info-col-left h4{font-size:1.6rem;font-weight:900;margin-bottom:5px}.info-col-left .slogan{font-size:.95rem;margin-bottom:15px;line-height:1.4}.website-info{margin-top:auto}.website-info .url{font-weight:700;font-size:1rem;margin:0}.website-info .registration{font-size:.75rem;opacity:.8;margin:0}.features-list{list-style:none;padding:0}.features-list li{margin-bottom:8px;display:flex;align-items:center;gap:8px;font-size:.9rem}.features-list svg{width:18px;height:18px;fill:var(--primary-yellow);flex-shrink:0}.cta-block{display:flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;background-color:var(--whatsapp-green);color:#fff;padding:10px 16px;border-radius:8px;font-weight:900;font-size:1rem;transition:background-color .3s ease;margin-top:auto}.cta-block:hover{background-color:var(--whatsapp-green-dark)}.cta-block svg{width:20px;height:20px;fill:#fff}.about-text-col h3{font-size:1.5rem;color:var(--primary-blue);font-weight:700;margin-bottom:20px}.about-text-col p{margin-bottom:20px;color:#555}.about-text-col p:last-child{margin-bottom:0}

/* What We Do Section */
.what-we-do-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.what-we-do-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.what-we-do-col-left,
.what-we-do-col-right {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.center-image {
    max-width: 350px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
    max-width: 400px;
    padding: 0 15px;
}

.service-item.align-right {
    align-items: center;
    text-align: center;
    margin-left: auto;
    margin-right: 0;
}

.service-item.align-left {
    align-items: center; 
    text-align: center;
    margin-left: 0;
    margin-right: auto;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    display: block;
    object-fit: contain;
}

/* Estilos específicos para iconos SVG */
.service-icon svg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a4a8e, #1565c0);
    border-radius: 50%;
    padding: 12px;
    box-sizing: border-box;
    box-shadow: 0 3px 8px rgba(10, 74, 142, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-icon svg:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(10, 74, 142, 0.35);
}

.service-item h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin: 12px 0 8px 0;
    font-weight: 700;
}

.service-item p {
    color: #555;
    max-width: 400px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-item-underline {
    width: 60px;
    height: 3px;
    background-color: var(--primary-yellow);
    border-radius: 2px;
    margin: 0 auto;
}

/* Testimonials Section */
.testimonials-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

/* Centrar la línea decorativa bajo el título de testimonios */
.testimonials-section .title-underline {
    margin: 10px auto 30px;
}

/* Centrar el título de Testimonios */
.testimonials-section .section-title {
    text-align: center;
    margin-left: 0;
}

.testimonial-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-content {
    position: relative;
    padding: 20px 40px;
    margin-bottom: 30px;
}

.quote {
    font-size: 5rem;
    color: #e0e6ef;
    position: absolute;
    line-height: 1;
}

.left-quote {
    top: 0;
    left: 0;
}

.right-quote {
    bottom: -20px;
    right: 0;
}

.testimonial-content p {
    color: #555;
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* reducido para ajustar tras eliminar las imágenes */
    padding-top: 8px; /* pequeño espacio superior para separar del contenido del testimonio */
}


.testimonial-author p {
    margin: 0; /* elimina márgenes por defecto para mejor alineación */
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

/* Drop shape behind image */

/* testimonial images and decorative pseudo-element removed — no visual image or circle required */

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: all 0.2s ease;
    z-index: 10;
}

.slider-nav:hover {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.slider-nav.prev {
    left: -20px;
}

.slider-nav.next {
    right: -20px;
}

.slider-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background-color: var(--primary-blue);
    transform: scale(1.2);
}

/* NEW FAQ Section */
.new-faq-section {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.new-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.new-faq-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}

.new-faq-item.active {
    box-shadow: 0 8px 25px rgba(10, 74, 142, 0.1);
    border-color: #dee2e6;
}

.new-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px;
    background-color: #f8f9fa;
    border: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-text);
    text-align: left;
}
.new-faq-item.active .new-faq-question {
    background-color: #fff;
}

.new-faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary-blue);
}

.new-faq-icon::before,
.new-faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background-color: currentColor;
    border-radius: 1px;
    transition: transform 0.3s ease;
}

.new-faq-icon::before {
    transform: translate(-50%, -50%);
}

.new-faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}
.new-faq-item.active .new-faq-icon::after {
    transform: translate(-50%, -50%) rotate(180deg);
}
.new-faq-item.active .new-faq-icon {
    color: var(--whatsapp-green);
}

.new-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.new-faq-item.active .new-faq-answer {
    max-height: 1500px; /* Large enough for content */
}

.new-faq-answer-content {
    padding: 20px;
    border-top: 1px solid #e9ecef;
}

.new-faq-answer-content p {
    color: #555;
    margin-bottom: 1em;
}

.new-faq-answer-content h3 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}
.new-faq-answer-content .answer-list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1em;
    color: #555;
}
.new-faq-answer-content .answer-list li {
    margin-bottom: 0.5em;
}
.new-faq-answer-content .btn-presupuesto {
    margin-top: 1em;
    /* Use the outline style */
    background-color: transparent;
    color: var(--whatsapp-green);
    border: 2px solid var(--whatsapp-green);
}
.new-faq-answer-content .btn-presupuesto svg {
    fill: var(--whatsapp-green);
}
.new-faq-answer-content .btn-presupuesto:hover {
    background-color: var(--whatsapp-green);
    color: #fff;
}
.new-faq-answer-content .btn-presupuesto:hover svg {
    fill: #fff;
}

.payment-methods {
    list-style: none;
    padding: 0;
    margin-top: 1em;
}
.payment-methods li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}
.payment-methods svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--primary-blue);
    margin-top: 3px;
}
.payment-methods h4 {
    font-size: 1rem;
    color: var(--dark-text);
    margin: 0 0 5px 0;
}
.payment-methods p {
    margin: 0;
    font-size: 0.9rem;
}
.card-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0 15px;
    font-size: 0.9rem;
    color: #555;
}

.important-note {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
}
.important-note p {
    margin: 0;
    color: #856404;
}

/* Footer CTA Section */
.footer-cta {
    background-color: var(--primary-yellow);
    padding: 30px 0;
    color: var(--primary-blue);
}

.footer-cta .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-cta .cta-text {
    flex-grow: 1;
}

.footer-cta .cta-text p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

.footer-cta .cta-text strong {
    font-weight: 900;
    font-size: 1.4rem;
    margin-left: 5px;
}

.footer-cta-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.footer-cta-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 24px;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--dark-yellow-btn);
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.footer-cta-call-btn:hover {
    background-color: rgba(230, 167, 0, 0.1);
    transform: translateY(-2px);
}
.footer-cta-call-btn .cta-phone-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}
.footer-cta-call-btn .cta-phone-details {
    text-align: left;
}
.footer-cta-call-btn .cta-phone-details span {
    display: block;
}
.footer-cta-call-btn .cta-phone-details span:first-child {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
}
.footer-cta-call-btn .cta-phone-number {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.2;
}


/* Stats Section */
.stats-section {
    background: linear-gradient(rgba(10, 74, 142, 0.9), rgba(10, 74, 142, 0.9));
    padding: 70px 0;
    color: var(--light-text);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
}

.stat-underline {
    width: 60px;
    height: 4px;
    background-color: var(--primary-yellow);
    margin: 15px 0;
    border-radius: 2px;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    opacity: 0.9;
}

.stats-footnote {
    margin-top: 50px;
    font-size: 0.85rem;
    opacity: 0.7;
}


/* New Footer Section */
footer {
    background-color: var(--primary-blue);
    color: #e0e6ef;
    padding: 60px 0 0 0;
}

/* Tablet/iPad optimizations */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero: un poco más de respiro en tablet, tipografía más grande */
    .hero { padding: 80px 0; }
    .hero-text h1 { font-size: 2.8rem; }
    .hero-text p { font-size: 1.15rem; }

    /* CTA: disposición horizontal en tablet */
    .cta-container { flex-direction: row; text-align: left; gap: 20px; }
    .cta-actions { flex-direction: row; width: auto; align-items: center; }
    .cta-call-btn, .cta-whatsapp-btn { width: auto; max-width: none; margin: 0; }

    /* Grillas de contenido: 2 columnas en tablet */
    .services-grid { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
    .problems-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .new-faq-grid { grid-template-columns: 1fr 1fr; }
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col .logo {
    color: #fff;
    margin-bottom: 20px;
}

.footer-col.about p {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.9;
}

.footer-col h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col.links ul li a {
    color: #e0e6ef;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: inline-block;
    position: relative;
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer-col.links ul li a:hover {
    color: var(--primary-yellow);
    transform: translateX(5px);
}
.footer-col.links ul li a::before {
    content: '›';
    margin-right: 8px;
    font-weight: 700;
}

.footer-col.contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}
.footer-col.contact ul li svg {
    flex-shrink: 0;
    fill: var(--primary-yellow);
    position: relative;
    top: 3px;
}
.footer-col.contact ul li a {
    color: #e0e6ef;
    transition: color 0.2s ease;
}
.footer-col.contact ul li a:hover {
    color: var(--primary-yellow);
}

.rating-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #083c74;
    border: 1px solid var(--primary-yellow);
    border-radius: 12px;
    padding: 20px 25px;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.rating-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating-text {
    text-align: left;
}
.rating-text h4 {
    color: var(--primary-yellow);
    font-weight: 900;
    font-size: 1rem;
    margin-bottom: 5px;
}
.rating-text p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
    max-width: 600px;
}

.rating-btn {
    background-color: var(--primary-yellow);
    color: var(--primary-blue);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.85rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}
.rating-btn:hover {
    background-color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    background-color: #083c74;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
    font-size: 0.85rem;
}


/* Keyframe for the halo/glow effect */
@keyframes radial-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Cuando el modal está abierto, reducir animaciones para evitar jank al tipear (especialmente Firefox) */
body.modal-open * {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
}
body.modal-open .hero-cta-btn,
body.modal-open .cta-whatsapp-btn,
body.modal-open .problem-card .btn-presupuesto,
body.modal-open .top-bar .btn-whatsapp {
    animation: none !important;
}

/* Mobile Responsive Styles */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 20px;
    background: rgba(255,255,255,0.92);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    backdrop-filter: blur(12px) saturate(1.3);
    border: 2px solid var(--primary-yellow);
    box-shadow: 0 12px 36px 0 rgba(10,74,142,0.13), 0 2px 8px rgba(0,0,0,0.08);
        flex-direction: column;
        padding: 18px 10px 18px 10px;
        box-shadow: 0 8px 32px rgba(10,74,142,0.18), 0 2px 8px rgba(0,0,0,0.08);
        z-index: 1000;
    border-radius: 22px 8px 22px 8px;
        gap: 0;
    width: 270px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-18px) scale(0.97) skewY(-2deg);
    transition: opacity 0.32s cubic-bezier(.4,0,.2,1), transform 0.32s cubic-bezier(.4,0,.2,1);
    }
    .nav-links.active {
        display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1) skewY(0);
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        display: block;
        padding: 14px 22px;
        text-align: left;
        border-radius: 12px;
        font-weight: 900;
        color: var(--primary-blue);
        letter-spacing: 0.7px;
        font-size: 1.13rem;
        margin-bottom: 7px;
        transition: background 0.22s, color 0.18s, box-shadow 0.18s, transform 0.18s;
        position: relative;
        box-shadow: 0 1px 0 rgba(10,74,142,0.03);
    }
    .nav-links a:hover, .nav-links a:focus {
        background: linear-gradient(90deg, var(--primary-yellow) 0%, #ffe9a7 100%);
        color: #0a4a8e;
        box-shadow: 0 4px 16px rgba(10,74,142,0.10);
        outline: none;
        transform: scale(1.04) skewX(-2deg);
    }
    .nav-links a.active {
        background: linear-gradient(90deg, var(--primary-blue) 0%, #b3d1f7 100%);
        color: #fff;
        font-weight: 900;
        box-shadow: 0 2px 12px rgba(10,74,142,0.13);
        border-left: 4px solid var(--primary-yellow);
        transform: scale(1.03);
    }
     .nav-links a:after {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }

    /* Evitar scroll del body cuando el menú está abierto */
    body.menu-open { /* móvil vertical: permitir scroll para detectar cierre por desplazamiento */
        overflow-y: auto;
        overflow-x: hidden;
        touch-action: auto;
    }
    body.menu-open-landscape { /* móvil apaisado: permitir scroll general */
        overflow-y: auto;
        overflow-x: hidden;
        touch-action: auto;
    }
    /* Evitar scroll interno del panel en landscape, dejar que la página se desplace */
    @media (orientation: landscape) and (max-width: 992px) {
            /* Compactar menú en horizontal para que quepa completo */
            .nav-links {
                font-size: 0.9rem;
                padding: 10px 10px;
                gap: 3px;
            }
            .nav-links a {
                padding: 7px 10px;
                line-height: 1.15;
            }
        /* Cuando el menú está abierto en horizontal, dejar que la página scrollee para revelar el panel */
        body.menu-open-landscape .nav-links {
            position: absolute; /* relativo al contenedor/nav en flujo */
            top: var(--nav-offset, 60px);
            right: 20px;
            left: 20px;
            width: auto;
            max-height: none; /* sin recorte: la página se desplaza para mostrar el resto */
            overflow: visible;
            pointer-events: auto;
        }
    }
    
    .hero {
        padding: 60px 0;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    .cta-actions {
        flex-direction: column-reverse;
        width: 100%;
        align-items: stretch; /* Make buttons full width */
    }
    .cta-call-btn, .cta-whatsapp-btn {
        width: 100%;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-text p {
        font-size: 1.1rem;
    }
    .cta-text strong {
        font-size: 1.3rem;
    }

    .faq-columns{grid-template-columns:1fr}
    .problems-grid{grid-template-columns:1fr;gap:25px}
    .about-grid{grid-template-columns:1fr}.about-image-col{margin-bottom:40px}

    .what-we-do-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .what-we-do-col-center {
        order: -1; 
    }
    
    .center-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .service-item.align-right,
    .service-item.align-left {
        align-items: center;
        text-align: center;
    }
    
    .new-faq-grid {
        grid-template-columns: 1fr;
    }

    .slider-nav {
        display: none; /* Hide side arrows on smaller screens */
    }
    
    .footer-cta .container {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    .footer-cta-actions {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
    .footer-cta-actions .cta-whatsapp-btn,
    .footer-cta-actions .footer-cta-call-btn {
        width: 100%;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 50px;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
    .rating-banner {
        flex-direction: column;
        text-align: center;
    }
    .rating-content {
        flex-direction: column;
    }
    .rating-text {
        text-align: center;
    }

}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero-text {
        background-color: transparent;
        color: var(--light-text);
    }
    .hero-text strong { color: var(--primary-yellow); }
    .hero-content {
        justify-content: center;
    }
    .hero-text {
        text-align: center;
    }
    .hero .container {
        margin: 0 auto;
        padding-left: 20px;
        padding-right: 20px;
    }
    .top-bar .container {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }
    .contact-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .cta-bar {
        padding: 30px 20px;
    }
    .cta-text p {
        font-size: 1rem;
        line-height: 1.5;
    }
    .cta-text strong {
        font-size: 1.2rem;
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }

    .services-section{padding:40px 0 20px}
    .section-title{font-size:1.7rem}
    .title-underline{margin-bottom:30px}
    .services-grid {
        gap: 15px; /* Adjust gap for smaller screens */
    }
    .service-brand-button {
        padding: 15px 10px; /* Make buttons taller */
        font-size:.9rem
    }
    .brand-finder{padding:30px 20px}.faq-section{padding:20px 0}.common-problems-section{padding:40px 0}.about-section{padding:30px 0}.about-text-col h3{font-size:1.2rem;margin-bottom:15px}
    .what-we-do-section { padding: 40px 0; }
    .testimonials-section { padding: 40px 0; }
    .testimonial-content p { font-size: 1rem; }
    .new-faq-section { padding: 40px 0; }

    /* Make testimonial slider arrows visible and usable on mobile */
    .testimonial-slider-container {
        position: relative; /* ensure absolute children position relative to container */
    }

    .slider-nav {
        display: flex !important; /* override hidden state */
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        background-color: rgba(255,255,255,0.95);
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 50%;
        box-shadow: 0 6px 20px rgba(0,0,0,0.12);
        color: var(--primary-blue);
        font-size: 1.25rem;
        line-height: 1;
        cursor: pointer;
        z-index: 1000;
        top: 50%;
        transform: translateY(-50%);
        /* place inside container with comfortable inset */
        left: 12px;
        right: 12px;
    }

    .slider-nav.prev { left: 12px; right: auto; }
    .slider-nav.next { right: 12px; left: auto; }

    /* Slightly smaller controls on very small screens */
    @media (max-width: 420px) {
        .slider-nav { width: 42px; height: 42px; font-size: 1.05rem; }
    }

    .stats-section {
        padding: 50px 20px;
    }
    .stat-number {
        font-size: 2.8rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col.links ul li a::before {
        display: none;
    }
     .footer-col.contact ul li {
        justify-content: center;
    }
}

@media (max-width:576px){
    .hero {
        background-image: none;
        padding: 60px 0;
    }
    .hero-text {
        background-color: transparent;
        color: var(--light-text);
        border-left-width: 0;
        padding: 0;
        max-width: 100%;
        box-shadow: none;
    }
    .hero-text strong { color: var(--primary-yellow); }
    .hero-content {
        justify-content: center;
    }
    .hero-text {
        text-align: center;
    }
    .hero .container {
        margin: 0 auto;
        padding-left: 20px;
        padding-right: 20px;
    }
    .hero-text h1 {
        font-size: 1.9rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    .hero-text p {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 10px;
    }
    .cta-container {
        gap: 18px;
    }
    .cta-actions { gap: 12px; }
    .cta-call-btn, .cta-whatsapp-btn { max-width: 100%; }
    .info-grid{
        gap:20px
    }
    .about-card-info{padding:20px}
    .info-col-left h4{font-size:1.3rem}
    .info-col-left .slogan,.features-list li,.website-info .url{font-size:.85rem}
    .features-list li{margin-bottom:6px}
    .features-list svg{width:16px;height:16px}
    .cta-block{width:100%;text-align:center;font-size:1rem;padding:12px}

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }
}

/* Landscape on small devices: ensure slider arrows remain visible when device is held horizontally */
@media (max-width: 1024px) and (orientation: landscape) {
    .testimonial-slider-container {
        position: relative;
    }
    .slider-nav {
        display: flex !important; /* force visible */
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        background-color: rgba(255,255,255,0.96);
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 50%;
        box-shadow: 0 6px 20px rgba(0,0,0,0.12);
        color: var(--primary-blue);
        font-size: 1.1rem;
        z-index: 1200;
        top: 50%;
        transform: translateY(-50%);
        left: 12px;
    }
    .slider-nav.prev { left: 12px; right: auto; }
    .slider-nav.next { right: 12px; left: auto; }
}
/* Estilos para el Modal del Formulario */
.form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-container {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  position: relative;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  cursor: pointer;
}

#lead-form {
  display: flex;
  flex-direction: column;
}

#lead-form label {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

#lead-form input, #lead-form select, #lead-form button {
  padding: 0.8rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

#lead-form button {
  margin-top: 1.5rem;
  background-color: #25D366; /* Color de WhatsApp */
  color: white;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

/* ============================================= */
/* === ESTILOS DEL MODAL DE FORMULARIO === */
/* ============================================= */

/* 1. Contenedor principal del modal (overlay) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000; /* sobre el menú móvil */

    /* Oculto por defecto */
    visibility: hidden;
    opacity: 0;

    /* Transición suave */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 2. Estado visible del modal */
.modal-overlay.visible {
    visibility: visible;
    opacity: 1;
}

.modal-overlay.open {
    visibility: visible;
    opacity: 1;
}

/* 3. Contenido del modal */
.modal-content {
    position: relative;
    background: #fff;
    padding: 1.5em 1.25em 1.25em 1.25em;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    
    /* Efecto de zoom al aparecer */
    transform: scale(0.95);
    transition: transform 0.3s ease-out;
}

/* Efecto de zoom cuando el modal es visible */
.modal-overlay.visible .modal-content {
    transform: scale(1);
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

/* 4. Botón de cierre */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #333;
}

/* 5. Campo honeypot (anti-bots) */
.honeypot-field {
    display: none;
    visibility: hidden;
    position: absolute;
    left: -9999px;
}

/* 6. Estilos del formulario */
#lead-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

#lead-form h2 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 0.5em;
}

#lead-form p {
    text-align: center;
    margin-top: -0.5em;
    margin-bottom: 1.5em;
    color: #666;
}

#lead-form label {
    font-weight: bold;
    font-size: 0.9rem;
    color: #444;
    margin-bottom: -0.5em; /* acerca el label al input */
    display: block;
}

#lead-form input[type="text"],
#lead-form input[type="tel"],
#lead-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Asegurar que el select se vea completamente */
#lead-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

#lead-form input:focus,
#lead-form select:focus {
    outline: none;
    border-color: var(--primary-blue);
    /* Evitar sombras pesadas en Firefox que pueden causar jank en móviles */
    box-shadow: 0 0 0 2px rgba(10, 74, 142, 0.12);
}

/* Botón de envío */
#lead-form button[type="submit"] {
    background-color: var(--whatsapp-green);
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-top: 1em;
}

#lead-form button[type="submit"]:hover {
    background-color: var(--whatsapp-green-dark);
    transform: translateY(-2px);
}

#lead-form button[type="submit"]:disabled {
    background-color: #b0b0b0;
    cursor: not-allowed;
    transform: none;
}

/* Estilo para el loader */
#form-loader {
    text-align: center;
    padding: 1em;
    font-weight: bold;
    color: var(--primary-blue);
}

/* Mejoras para desktop */
@media (min-width: 768px) {
    #lead-form { gap: 1.2em; }
    #lead-form input[type="tel"], #lead-form select { padding: 14px; font-size: 1rem; }
}