/* =========================================================
   DESIGN UPGRADE — SRT Logística
   Mejoras visuales no destructivas (cárgalo después de styles.css)
   ========================================================= */

:root {
    --grad-primary: linear-gradient(135deg, #38bdf8 0%, #2563eb 50%, #1e3a8a 100%);
    --grad-text: linear-gradient(120deg, #67e8f9 0%, #38bdf8 35%, #818cf8 100%);
    --glow-primary: 0 0 0 1px rgba(56, 189, 248, .25), 0 18px 60px -10px rgba(56, 189, 248, .35);
    --ring-soft: 0 0 0 6px rgba(56, 189, 248, .12);
    --radius-lg: 22px;
}

/* ---------- Tipografía global ---------- */
body {
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---------- Section header: eyebrow + accent line ---------- */
.section-header,
.brands-header {
    position: relative;
}

.eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #67e8f9;
    background: rgba(56, 189, 248, .08);
    border: 1px solid rgba(56, 189, 248, .25);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.section-header h2,
.brands-header h2,
#h2-title {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.section-header h2::after,
.brands-header h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: var(--grad-primary);
    box-shadow: 0 0 18px rgba(56, 189, 248, .55);
}

/* ---------- HERO ---------- */
.carousel-overlay {
    background:
        radial-gradient(1200px 600px at 15% 30%, rgba(56, 189, 248, .18), transparent 60%),
        radial-gradient(900px 500px at 85% 80%, rgba(37, 99, 235, .22), transparent 60%),
        linear-gradient(180deg, rgba(7, 14, 30, .55) 0%, rgba(7, 14, 30, .82) 100%);
}

.carousel-content h2 {
    font-size: clamp(2.2rem, 4.8vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -1.2px;
    background: linear-gradient(120deg, #ffffff 0%, #bae6fd 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 6px 30px rgba(0, 0, 0, .35);
}

.carousel-content p {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: #e2e8f0;
    line-height: 1.6;
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(6px);
    font-size: .82rem;
    color: #e0f2fe;
    font-weight: 600;
    letter-spacing: .5px;
    width: fit-content;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .25);
    animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .65;
        transform: scale(.92);
    }
}

/* Botones hero con barrido luminoso */
.btn-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid transparent;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.btn-hero.primary {
    background: var(--grad-primary);
    color: #fff !important;
    box-shadow: 0 12px 30px -8px rgba(56, 189, 248, .55);
}

.btn-hero.secondary {
    background: rgba(255, 255, 255, .06);
    color: #e0f2fe !important;
    border-color: rgba(255, 255, 255, .22);
    backdrop-filter: blur(8px);
}

.btn-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .7s ease;
    z-index: -1;
}

.btn-hero:hover::before {
    transform: translateX(120%);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -10px rgba(56, 189, 248, .55);
}

/* Scroll cue */
.hero-carousel::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 22px;
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, .55);
    border-radius: 14px;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
}

.hero-carousel::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 30px;
    width: 3px;
    height: 8px;
    background: #fff;
    border-radius: 3px;
    transform: translateX(-50%);
    z-index: 4;
    animation: scrollCue 1.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes scrollCue {

    0%,
    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, 10px);
        opacity: .3;
    }
}

@media (max-width: 600px) {

    .hero-carousel::before,
    .hero-carousel::after {
        display: none;
    }
}

/* ---------- ABOUT ---------- */
.about-section {
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, .18), transparent 60%);
    pointer-events: none;
}

.about-image {
    position: relative;
}

.about-image::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    padding: 2px;
    background: var(--grad-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: .65;
}

.about-content h2 {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 22px;
    line-height: 1.15;
}

.about-content p {
    font-size: 1.02rem;
    line-height: 1.75;
}

/* ---------- COBERTURA / CLIENTES ---------- */
.clients-section {
    position: relative;
    overflow: hidden;
}

.clients-section::before {
    content: "";
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, .18), transparent 60%);
    pointer-events: none;
}

.client-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.client-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}

.client-card:hover::before {
    transform: scaleX(1);
}

.client-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.client-card h4::before {
    content: "";
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex-shrink: 0;
    background:
        radial-gradient(circle at 50% 38%, #fff 0 3px, transparent 3.5px),
        var(--grad-primary);
    -webkit-mask: radial-gradient(circle at 50% 38%, #000 6px, transparent 6.5px) exclude, linear-gradient(#000, #000);
    /* fallback */
    box-shadow: 0 4px 12px rgba(56, 189, 248, .35);
    position: relative;
}

/* Pin SVG real via background */
.client-card h4::before {
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s7-6.2 7-12a7 7 0 1 0-14 0c0 5.8 7 12 7 12z'/><circle cx='12' cy='9' r='2.5'/></svg>") center/16px no-repeat,
        linear-gradient(135deg, #38bdf8, #2563eb);
    -webkit-mask: none;
            mask: none;
}

/* ---------- TRUST ---------- */
.trust {
    position: relative;
    overflow: hidden;
}

.trust::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(56, 189, 248, .08), transparent 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.trust-grid>div {
    position: relative;
    padding: 28px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .06);
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.trust-grid>div:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, .4);
    background: rgba(56, 189, 248, .05);
}

.trust-grid h3 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(56, 189, 248, .25);
}

.trust-grid p {
    font-size: .92rem;
    margin-top: 6px;
}

/* ---------- WHY US ---------- */
.why-us {
    position: relative;
    overflow: hidden;
}

.why-us h2 {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.why-us h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 16px auto 0;
    border-radius: 999px;
    background: var(--grad-primary);
    box-shadow: 0 0 18px rgba(56, 189, 248, .5);
}

.why-grid {
    counter-reset: whyus;
}

.why-grid>div {
    position: relative;
    background: linear-gradient(180deg, #111827 0%, #0d1424 100%);
    overflow: hidden;
}

.why-grid>div::before {
    counter-increment: whyus;
    content: "0" counter(whyus);
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, rgba(56, 189, 248, .25), rgba(56, 189, 248, 0));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    pointer-events: none;
}

.why-grid>div::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(56, 189, 248, .35), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.why-grid>div:hover::after {
    opacity: 1;
}

.why-grid h4 {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.25rem;
}

/* ---------- SERVICES ---------- */
.services-modern {
    position: relative;
    overflow: hidden;
}

.services-modern::before {
    content: "";
    position: absolute;
    top: 10%;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, .12), transparent 60%);
    pointer-events: none;
}

.services-modern::after {
    content: "";
    position: absolute;
    bottom: 10%;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, .12), transparent 60%);
    pointer-events: none;
}

.services-grid>a,
.services-grid>.service-item {
    text-decoration: none;
    display: block;
}

.service-item {
    position: relative;
    background: linear-gradient(180deg, #0e1a36 0%, #0a1428 100%);
    isolation: isolate;
    transition: transform .35s cubic-bezier(.2, .9, .3, 1), box-shadow .35s ease, border-color .35s ease;
}

.service-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(56, 189, 248, .45), transparent 50%, rgba(99, 102, 241, .35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
    z-index: 1;
}

.service-item:hover::after {
    opacity: 1;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, .6),
        0 0 0 1px rgba(56, 189, 248, .15);
}

.icon-wrapper {
    background: linear-gradient(135deg, rgba(56, 189, 248, .14), rgba(99, 102, 241, .14));
    border: 1px solid rgba(56, 189, 248, .18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    transition: all .35s ease;
}

.service-item:hover .icon-wrapper {
    background: var(--grad-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 30px -8px rgba(56, 189, 248, .55);
    transform: scale(1.08) rotate(-3deg);
}

.service-item h4 {
    transition: color .25s ease;
}

.service-item:hover h4 {
    color: #67e8f9;
}

/* ---------- BRANDS ---------- */
.brands {
    position: relative;
}

.brand-carousel::before,
.brand-carousel::after {
    width: 160px;
}

/* ---------- CONTACT ---------- */
.contact-cta {
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: "";
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, .12), transparent 60%);
    pointer-events: none;
}

.contact-cta .brands-header {
    position: relative;
    z-index: 1;
}

.contact-card {
    position: relative;
    background: linear-gradient(180deg, rgba(9, 55, 115, .85) 0%, rgba(8, 43, 89, .9) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(56, 189, 248, .18);
    isolation: isolate;
}

.contact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(56, 189, 248, .55), transparent 50%, rgba(99, 102, 241, .45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

.contact-card .tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(56, 189, 248, .12);
    border: 1px solid rgba(56, 189, 248, .3);
    color: #67e8f9;
    letter-spacing: 2px;
}

.contact-card h2 {
    background: linear-gradient(120deg, #fff 0%, #bae6fd 60%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-card input,
.contact-card select,
.contact-card textarea {
    background: rgba(15, 23, 42, .65);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 14px 16px;
    border-radius: 12px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-card input::placeholder,
.contact-card textarea::placeholder {
    color: #94a3b8;
}

.contact-card input:focus,
.contact-card select:focus,
.contact-card textarea:focus {
    border-color: #38bdf8;
    background: rgba(15, 23, 42, .9);
    box-shadow: var(--ring-soft);
}

.contact-card button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--grad-primary);
    box-shadow: 0 14px 30px -10px rgba(56, 189, 248, .55);
    transition: transform .25s ease, box-shadow .25s ease;
}

.contact-card button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .7s ease;
    z-index: -1;
}

.contact-card button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -10px rgba(56, 189, 248, .65);
    background: var(--grad-primary);
}

.contact-card button:hover::before {
    transform: translateX(120%);
}

.contact-image {
    position: relative;
}

.contact-image img {
    border-radius: 20px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
}

.contact-image::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 24px;
    background: var(--grad-primary);
    z-index: -1;
    opacity: .35;
    filter: blur(28px);
}

/* ---------- FLOATING WHATSAPP / CTA (opcional, sólo visual) ---------- */
.chatbot-toggle {
    background: var(--grad-primary) !important;
    color: #fff !important;
    box-shadow: 0 14px 30px -8px rgba(56, 189, 248, .55) !important;
}

/* ---------- NAVBAR refinada ---------- */
.navbar.scrolled {
    background: rgba(7, 14, 30, .85) !important;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.btn-nav {
    background: var(--grad-primary) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px -8px rgba(56, 189, 248, .5);
}

.btn-nav:hover {
    box-shadow: 0 16px 30px -8px rgba(56, 189, 248, .7);
}

/* ---------- Refinamientos finales ---------- */
@media (max-width: 768px) {
    .eyebrow {
        font-size: .65rem;
        letter-spacing: 2.5px;
    }

    .why-grid>div::before {
        font-size: 2.4rem;
        top: 10px;
        right: 14px;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {

    .hero-carousel::before,
    .hero-badge .dot,
    .btn-hero::before,
    .contact-card button::before {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================================
   NUEVAS SECCIONES DE CONVERSIÓN
   ========================================================= */

/* ---------- PROCESO (cómo trabajamos) ---------- */
.process {
    padding: 90px 8%;
    background: linear-gradient(180deg, #0b0f1a 0%, #0a1428 50%, var(--bg-section) 100%);
    position: relative;
    overflow: hidden;
}

.process::before {
    content: "";
    position: absolute;
    top: 20%;
    right: -180px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(56, 189, 248, .14), transparent 60%);
    pointer-events: none;
}

.process-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    counter-reset: step;
    position: relative;
}

.process-step {
    position: relative;
    background: linear-gradient(180deg, #111c3a 0%, #0b1428 100%);
    border: 1px solid rgba(255, 255, 255, .06);
    padding: 36px 26px 28px;
    border-radius: 20px;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.process-step::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -22px;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, rgba(56, 189, 248, .6), transparent);
    z-index: 0;
}

.process-step:last-child::after {
    display: none;
}

@media (max-width: 900px) {
    .process-step::after {
        display: none;
    }
}

.step-number {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    background: var(--grad-primary);
    box-shadow: 0 12px 28px -8px rgba(56, 189, 248, .55);
    margin-bottom: 18px;
}

.process-step h4 {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.6;
}

.process-step:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, .45);
    box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .6);
}

/* ---------- BANNER CTA (cotización gratuita) ---------- */
.cta-banner {
    padding: 60px 8%;
    background: linear-gradient(135deg, #082b59 0%, #0a3a78 50%, #1e3a8a 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px 400px at 10% 50%, rgba(56, 189, 248, .25), transparent 60%),
        radial-gradient(600px 400px at 95% 30%, rgba(99, 102, 241, .2), transparent 60%);
    pointer-events: none;
}

.cta-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
    pointer-events: none;
}

.cta-banner-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 900px) {
    .cta-banner-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.cta-banner-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.15;
    margin: 14px 0 12px;
    background: linear-gradient(120deg, #fff 0%, #bae6fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-banner-text p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 560px;
}

.cta-banner-text strong {
    color: #67e8f9;
    font-weight: 700;
}

.cta-banner-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .cta-banner-actions {
        justify-content: center;
    }
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .98rem;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-cta.primary {
    background: #25d366;
    color: #fff;
    box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .55);
}

.btn-cta.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -10px rgba(37, 211, 102, .7);
    background: #1eb858;
}

.btn-cta.secondary {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(8px);
}

.btn-cta.secondary:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .4);
}

/* ---------- TESTIMONIOS ---------- */
.testimonials {
    padding: 90px 8%;
    background: linear-gradient(180deg, var(--bg-section) 0%, #071e45 50%, #0b0f1a 100%);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: "";
    position: absolute;
    top: -120px;
    left: -120px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(99, 102, 241, .14), transparent 60%);
    pointer-events: none;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.testimonial-card {
    background: linear-gradient(180deg, #111c3a 0%, #0b1428 100%);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 20px;
    padding: 32px 28px;
    position: relative;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
    isolation: isolate;
}

.testimonial-card::before {
    content: "\201C";
    position: absolute;
    top: -10px;
    left: 22px;
    font-size: 5.5rem;
    line-height: 1;
    color: rgba(56, 189, 248, .25);
    font-family: Georgia, serif;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, .35);
    box-shadow: 0 28px 50px -20px rgba(0, 0, 0, .6);
}

.stars {
    color: #fbbf24;
    font-size: 1.05rem;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.testimonial-text {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px -6px rgba(56, 189, 248, .45);
}

.testimonial-author strong {
    display: block;
    color: var(--text-light);
    font-size: .98rem;
}

.testimonial-author span {
    display: block;
    color: var(--text-muted);
    font-size: .85rem;
    margin-top: 2px;
}

/* ---------- FAQ ---------- */
.faq-section {
    padding: 90px 8%;
    background: linear-gradient(180deg, #0b0f1a 0%, #0a1428 50%, var(--bg-section) 100%);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: "";
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(56, 189, 248, .14), transparent 60%);
    pointer-events: none;
}

.faq-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
    align-items: start;
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .faq-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.faq-intro .eyebrow {
    margin-bottom: 16px;
}

.faq-intro h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 16px;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.faq-intro p {
    color: var(--text-muted);
    margin-bottom: 22px;
    line-height: 1.6;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: linear-gradient(180deg, #111c3a 0%, #0b1428 100%);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.faq-item[open] {
    border-color: rgba(56, 189, 248, .45);
    box-shadow: 0 12px 30px -12px rgba(56, 189, 248, .3);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    font-weight: 600;
    color: var(--text-light);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: color .2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(56, 189, 248, .12);
    color: #67e8f9;
    font-size: 1.2rem;
    font-weight: 700;
    transition: transform .3s ease, background .3s ease;
}

.faq-item[open] summary::after {
    content: "\2212";
    background: var(--grad-primary);
    color: #fff;
    transform: rotate(180deg);
}

.faq-item summary:hover {
    color: #67e8f9;
}

.faq-item p {
    padding: 0 24px 22px;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: .95rem;
    margin: 0;
}

.faq-item p strong {
    color: #67e8f9;
}

/* ---------- WHATSAPP FLOTANTE ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 12px 28px -6px rgba(37, 211, 102, .55), 0 0 0 0 rgba(37, 211, 102, .5);
    z-index: 2999;
    transition: transform .25s ease, box-shadow .25s ease;
    animation: whatsappPulse 2.2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 18px 36px -8px rgba(37, 211, 102, .7);
    animation-play-state: paused;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 12px 28px -6px rgba(37, 211, 102, .55), 0 0 0 0 rgba(37, 211, 102, .55);
    }

    70% {
        box-shadow: 0 12px 28px -6px rgba(37, 211, 102, .55), 0 0 0 18px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 12px 28px -6px rgba(37, 211, 102, .55), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float-tooltip {
    position: absolute;
    left: 72px;
    top: 50%;
    transform: translateY(-50%);
    background: #0b1428;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(56, 189, 248, .3);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.whatsapp-float-tooltip::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #0b1428;
    border-left: 1px solid rgba(56, 189, 248, .3);
    border-bottom: 1px solid rgba(56, 189, 248, .3);
    transform: translateY(-50%) rotate(45deg);
}

.whatsapp-float:hover .whatsapp-float-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(4px);
}

@media (max-width: 600px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 18px;
        left: 18px;
    }

    .whatsapp-float-tooltip {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        animation: none !important;
    }
}

/* =========================================================
   CHATBOT IA — Rediseño moderno
   ========================================================= */

.chatbot-widget {
    right: 24px;
    bottom: 24px;
    align-items: flex-end;
}

/* --- Toggle button --- */
.chatbot-toggle {
    position: relative;
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 22px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 14px 32px -8px rgba(56, 189, 248, .6) !important;
    animation: chatbotPulseGlow 2.6s ease-in-out infinite;
    transition: transform .25s ease, box-shadow .25s ease;
}

.chatbot-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 42px -10px rgba(56, 189, 248, .75) !important;
}

.chatbot-toggle-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.chatbot-toggle-label {
    font-weight: 700;
    letter-spacing: .3px;
}

.chatbot-toggle-badge {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(239, 68, 68, .5);
    border: 2px solid #0b0f1a;
    animation: badgePop .45s cubic-bezier(.34, 1.56, .64, 1);
}

.chatbot-toggle.has-notification {
    animation: chatbotPulseGlow 1.4s ease-in-out infinite;
}

@keyframes chatbotPulseGlow {

    0%,
    100% {
        box-shadow: 0 14px 32px -8px rgba(56, 189, 248, .6), 0 0 0 0 rgba(56, 189, 248, .5);
    }

    50% {
        box-shadow: 0 14px 32px -8px rgba(56, 189, 248, .6), 0 0 0 14px rgba(56, 189, 248, 0);
    }
}

@keyframes badgePop {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Panel --- */
.chatbot-panel {
    width: min(380px, calc(100vw - 32px)) !important;
    max-height: 78vh;
    background: linear-gradient(180deg, #0f1a36 0%, #0a1428 100%) !important;
    border: 1px solid rgba(56, 189, 248, .25) !important;
    border-radius: 20px !important;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(56, 189, 248, .1) !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --- Header --- */
.chatbot-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #38bdf8 100%);
    padding: 14px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.chatbot-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(500px 200px at 20% 0%, rgba(255, 255, 255, .18), transparent 60%);
    pointer-events: none;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    border: 2px solid rgba(255, 255, 255, .3);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    flex-shrink: 0;
}

.chatbot-header-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.chatbot-title {
    margin: 0 !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 700;
}

.chatbot-status {
    font-size: .72rem;
    color: rgba(255, 255, 255, .85);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .35);
    animation: statusPulse 1.8s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .7; transform: scale(.85); }
}

.chatbot-header-actions {
    display: flex;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.chatbot-action,
.chatbot-close {
    border: 0 !important;
    background: rgba(255, 255, 255, .12) !important;
    color: #fff !important;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
    padding: 0 !important;
    font-size: 1rem !important;
}

.chatbot-action:hover,
.chatbot-close:hover {
    background: rgba(255, 255, 255, .25) !important;
    transform: scale(1.05);
}

/* --- Messages area --- */
.chatbot-messages {
    background: linear-gradient(180deg, #0a1428 0%, #0b1a3a 100%);
    background-image:
        radial-gradient(circle at 20% 10%, rgba(56, 189, 248, .08), transparent 40%),
        radial-gradient(circle at 80% 90%, rgba(99, 102, 241, .08), transparent 40%);
    padding: 16px 14px !important;
    max-height: 380px !important;
    min-height: 220px;
    overflow-y: auto;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    gap: 6px !important;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, .3);
    border-radius: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

/* --- Message rows + bubbles --- */
.chatbot-msg-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 85%;
    animation: chatbotMessageIn .25s ease both;
}

.chatbot-msg-row.user {
    align-self: flex-end;
    align-items: flex-end;
}

.chatbot-msg-row.bot {
    align-self: flex-start;
    align-items: flex-start;
}

.chatbot-msg {
    padding: 10px 14px !important;
    border-radius: 16px !important;
    font-size: .92rem !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
    word-wrap: break-word;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

.chatbot-msg.bot {
    background: #1a2547 !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(255, 255, 255, .06) !important;
    border-bottom-left-radius: 4px !important;
}

.chatbot-msg.user {
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%) !important;
    color: #fff !important;
    border: none !important;
    border-bottom-right-radius: 4px !important;
}

.chatbot-msg a {
    color: #67e8f9;
    text-decoration: underline;
    text-decoration-color: rgba(103, 232, 249, .5);
}

.chatbot-msg.user a {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, .7);
}

.chatbot-msg-time {
    font-size: .68rem;
    color: rgba(148, 163, 184, .7);
    padding: 0 6px;
}

/* --- Typing indicator --- */
.typing-bubble {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 12px 16px !important;
}

.typing-bubble .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #67e8f9;
    opacity: .5;
    animation: typingDot 1.2s ease-in-out infinite;
}

.typing-bubble .dot:nth-child(2) { animation-delay: .2s; }
.typing-bubble .dot:nth-child(3) { animation-delay: .4s; }

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: .4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* --- Quick replies --- */
.chatbot-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 255, 255, .05);
    background: #0a1428;
}

.chatbot-quick-replies[hidden] {
    display: none;
}

.quick-reply-chip {
    background: rgba(56, 189, 248, .1);
    border: 1px solid rgba(56, 189, 248, .35);
    color: #67e8f9;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}

.quick-reply-chip:hover {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px -4px rgba(56, 189, 248, .5);
}

/* --- Input form --- */
.chatbot-form {
    border-top: 1px solid rgba(255, 255, 255, .05) !important;
    padding: 12px !important;
    background: #0a1428;
    display: flex;
    gap: 8px;
}

.chatbot-input {
    flex: 1;
    background: #131e3d !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 999px !important;
    color: #e5e7eb !important;
    padding: 10px 16px !important;
    font-size: .92rem !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.chatbot-input::placeholder {
    color: #64748b;
}

.chatbot-input:focus {
    outline: none;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .15);
}

.chatbot-input:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.chatbot-send {
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 50% !important;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 6px 16px -4px rgba(56, 189, 248, .5);
}

.chatbot-send:hover {
    transform: scale(1.08) rotate(-8deg);
    box-shadow: 0 10px 24px -4px rgba(56, 189, 248, .7);
}

.chatbot-send svg {
    transform: translateX(-1px);
}

/* --- Footer note --- */
.chatbot-footer-note {
    margin: 0;
    padding: 6px 12px 8px;
    text-align: center;
    font-size: .68rem;
    color: #64748b;
    background: #0a1428;
    border-top: 1px solid rgba(255, 255, 255, .03);
    letter-spacing: .5px;
}

/* --- Proactive message bubble --- */
.chatbot-proactive {
    position: absolute;
    bottom: 72px;
    right: 0;
    max-width: 260px;
    background: #fff;
    color: #0b1428;
    padding: 14px 32px 14px 16px;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .4);
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px) scale(.95);
    transform-origin: bottom right;
    transition: opacity .35s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1);
    pointer-events: none;
    cursor: pointer;
}

.chatbot-proactive.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chatbot-proactive p {
    margin: 0;
}

.chatbot-proactive-close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    border-radius: 50%;
    transition: background .2s ease;
}

.chatbot-proactive-close:hover {
    background: rgba(0, 0, 0, .08);
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .chatbot-widget {
        right: 12px !important;
        bottom: 12px !important;
    }

    .chatbot-panel {
        width: calc(100vw - 24px) !important;
        max-height: 82vh;
    }

    .chatbot-toggle-label {
        display: none;
    }

    .chatbot-toggle {
        padding: 14px !important;
        border-radius: 50% !important;
        width: 56px;
        height: 56px;
    }

    .chatbot-proactive {
        bottom: 72px;
        max-width: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .chatbot-toggle,
    .status-dot,
    .typing-bubble .dot {
        animation: none !important;
    }
}

/* =========================================================
   CHATBOT — Mejoras adicionales (handoff, progress, retry)
   ========================================================= */

/* --- Handoff WhatsApp banner --- */
.chatbot-handoff {
    background: linear-gradient(90deg, rgba(37, 211, 102, .12), rgba(37, 211, 102, .06));
    border-bottom: 1px solid rgba(37, 211, 102, .25);
    padding: 8px 12px;
    text-align: center;
}

.chatbot-handoff-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4ade80;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(74, 222, 128, .35);
    transition: all .2s ease;
}

.chatbot-handoff-btn:hover {
    background: #25d366;
    color: #fff;
    border-color: transparent;
    transform: scale(1.03);
}

/* --- Lead progress --- */
.chatbot-progress {
    background: #0a1428;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    animation: fadeSlideDown .3s ease;
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.chatbot-progress[hidden] {
    display: none;
}

.chatbot-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .72rem;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: .3px;
}

.chatbot-progress-count {
    color: #67e8f9;
    font-weight: 700;
}

.chatbot-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, .06);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.chatbot-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #38bdf8, #2563eb);
    border-radius: 999px;
    transition: width .5s cubic-bezier(.2, .9, .3, 1);
    box-shadow: 0 0 10px rgba(56, 189, 248, .5);
}

.chatbot-progress.is-complete .chatbot-progress-fill {
    background: linear-gradient(90deg, #22c55e, #16a34a);
    box-shadow: 0 0 12px rgba(34, 197, 94, .5);
}

.chatbot-progress-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.lead-chip {
    font-size: .68rem;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, .06);
    font-weight: 500;
    transition: all .25s ease;
}

.lead-chip.is-done {
    background: rgba(34, 197, 94, .12);
    color: #4ade80;
    border-color: rgba(34, 197, 94, .35);
}

.lead-chip-optional {
    border-style: dashed !important;
    opacity: .8;
}

.lead-chip-optional.is-done {
    opacity: 1;
}

/* --- Sound toggle icon swap --- */
#chatbot-sound .icon-sound-off { display: none; }
#chatbot-sound.is-muted .icon-sound-on { display: none; }
#chatbot-sound.is-muted .icon-sound-off { display: block; }
#chatbot-sound.is-muted {
    background: rgba(239, 68, 68, .25) !important;
}

/* --- Textarea auto-grow --- */
textarea.chatbot-input {
    resize: none;
    line-height: 1.4;
    max-height: 120px;
    overflow-y: auto;
    border-radius: 18px !important;
    padding: 10px 16px !important;
    font-family: inherit;
}

textarea.chatbot-input::-webkit-scrollbar {
    width: 4px;
}

textarea.chatbot-input::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, .3);
    border-radius: 4px;
}

/* --- Retry button on errored bot message --- */
.chatbot-msg-row.has-error .chatbot-msg.bot {
    border-color: rgba(239, 68, 68, .4) !important;
    background: rgba(239, 68, 68, .08) !important;
}

.chatbot-retry {
    margin-top: 4px;
    align-self: flex-start;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, .4);
    color: #fca5a5;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.chatbot-retry:hover {
    background: rgba(239, 68, 68, .15);
    color: #fff;
    border-color: #ef4444;
}

/* --- Markdown rendering in bot messages --- */
.chatbot-msg.bot strong {
    color: #fff;
    font-weight: 700;
}

.chatbot-msg.bot em {
    color: #bae6fd;
    font-style: italic;
}

/* --- Footer note updated --- */
.chatbot-footer-note {
    font-size: .62rem !important;
}

/* =========================================================
   ENGAGEMENT — Promo bar, scroll progress, toasts, scroll-top
   ========================================================= */

/* Barra de progreso de scroll superior */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #38bdf8, #2563eb, #22c55e);
    z-index: 10000;
    transition: width .12s linear;
    box-shadow: 0 0 8px rgba(56, 189, 248, .6);
    pointer-events: none;
}

/* Promo sticky con cuenta regresiva */
.promo-bar {
    position: relative;
    z-index: 999;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
    animation: promoSlideDown .55s cubic-bezier(.2, .9, .3, 1);
}

.promo-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
    background-size: 200% 100%;
    animation: promoShimmer 4s linear infinite;
    pointer-events: none;
}

@keyframes promoShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes promoSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.promo-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 50px 10px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: .9rem;
    position: relative;
}

.promo-icon {
    font-size: 1.2rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.promo-text strong {
    font-weight: 800;
    letter-spacing: .3px;
}

#promo-countdown {
    background: rgba(0, 0, 0, .25);
    padding: 2px 8px;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    margin-left: 4px;
}

.promo-cta {
    background: #fff;
    color: #ef4444;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .82rem;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}

.promo-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

.promo-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
    line-height: 1;
}

.promo-close:hover { background: rgba(255, 255, 255, .2); }

@media (max-width: 600px) {
    .promo-bar-inner { font-size: .78rem; gap: 8px; padding-right: 40px; }
    .promo-cta { padding: 5px 10px; font-size: .75rem; }
}

/* Botón volver arriba */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #fff;
    border: 0;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .3s ease, transform .3s ease, box-shadow .2s ease;
}

.scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    box-shadow: 0 8px 24px rgba(56, 189, 248, .55);
    transform: translateY(-4px);
}

@media (max-width: 600px) {
    .scroll-top { right: 16px; bottom: 88px; width: 42px; height: 42px; }
}

/* Toasts de prueba social — encima del botón flotante de WhatsApp */
.live-toasts {
    position: fixed;
    bottom: 100px;          /* WhatsApp: 24px + 60px alto + 16px gap */
    left: 24px;
    z-index: 2998;          /* justo debajo del botón WhatsApp (2999) */
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    max-width: 330px;
    pointer-events: none;
}

.live-toast {
    background: #ffffff;
    color: #0f172a;
    border-radius: 14px;
    padding: 12px 16px 12px 12px;
    box-shadow:
        0 14px 36px -10px rgba(15, 23, 42, .28),
        0 4px 10px rgba(15, 23, 42, .08),
        0 0 0 1px rgba(37, 211, 102, .12);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid rgba(15, 23, 42, .06);
    transform: translateX(-130%) scale(.96);
    opacity: 0;
    transition: transform .55s cubic-bezier(.34, 1.4, .5, 1), opacity .4s ease;
    pointer-events: auto;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.live-toast.is-visible {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.live-toast-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}

/* Variantes de color del avatar (asignadas por JS) */
.live-toast-avatar.av-1 { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.live-toast-avatar.av-2 { background: linear-gradient(135deg, #f97316, #ef4444); }
.live-toast-avatar.av-3 { background: linear-gradient(135deg, #22c55e, #0ea5e9); }
.live-toast-avatar.av-4 { background: linear-gradient(135deg, #a855f7, #6366f1); }
.live-toast-avatar.av-5 { background: linear-gradient(135deg, #facc15, #f97316); }

/* Check verificado tipo WhatsApp */
.live-toast-avatar::after {
    content: "";
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #25d366 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat;
    border: 2px solid #fff;
}

.live-toast-text {
    font-size: .82rem;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

.live-toast-text strong { color: #0f172a; font-weight: 700; }
.live-toast-text em {
    font-style: normal;
    color: #2563eb;
    font-weight: 600;
}

.live-toast-text small {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: .7rem;
    margin-top: 4px;
    font-weight: 500;
}

.live-toast-text small::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
    animation: liveDot 1.8s ease-out infinite;
}

@keyframes liveDot {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); }
    100% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

@media (max-width: 600px) {
    .live-toasts {
        left: 12px;
        right: 86px;        /* deja espacio al botón WhatsApp en móvil */
        bottom: 88px;
        max-width: none;
    }
    .live-toast { font-size: .78rem; }
    .live-toast-avatar { width: 38px; height: 38px; font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
    .live-toast { transition: opacity .3s ease; transform: none; }
    .live-toast-text small::before { animation: none; }
}

/* =========================================================
   SERVICE CARDS — Diseño mejorado
   ========================================================= */
.services-modern .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    padding: 0 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.services-grid .service-item {
    position: relative;
    background: linear-gradient(160deg, #0f1f3d 0%, #0a1428 100%);
    border: 1px solid rgba(56, 189, 248, .12);
    border-radius: 18px;
    padding: 32px 24px 26px;
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform .4s cubic-bezier(.2, .9, .3, 1),
                box-shadow .4s ease,
                border-color .4s ease;
    will-change: transform;
    cursor: default;
}

/* Franja lateral con gradiente */
.services-grid .service-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #38bdf8, #2563eb);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .5s cubic-bezier(.2, .9, .3, 1);
}

/* Resplandor radial al hover */
.services-grid .service-item::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 189, 248, .18) 0%, transparent 50%);
    opacity: 0;
    transition: opacity .5s ease;
    pointer-events: none;
}

.services-grid .service-item:hover {
    transform: translateY(-10px);
    border-color: rgba(56, 189, 248, .45);
    box-shadow:
        0 24px 60px -16px rgba(37, 99, 235, .35),
        0 0 0 1px rgba(56, 189, 248, .25);
}

.services-grid .service-item:hover::before { transform: scaleY(1); }
.services-grid .service-item:hover::after  { opacity: 1; }

/* Ícono */
.services-grid .icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(56, 189, 248, .18), rgba(37, 99, 235, .12));
    border: 1px solid rgba(56, 189, 248, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
    transition: transform .45s cubic-bezier(.2, .9, .3, 1),
                background .35s ease,
                border-color .35s ease,
                color .35s ease,
                box-shadow .35s ease;
}

.services-grid .service-item:hover .icon-wrapper {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    border-color: transparent;
    color: #fff;
    transform: rotate(-6deg) scale(1.08);
    box-shadow: 0 12px 28px -6px rgba(56, 189, 248, .55);
}

/* Texto */
.services-grid .service-item h4 {
    color: #fff;
    font-size: 1.12rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 2;
    transition: color .3s ease;
}

.services-grid .service-item:hover h4 {
    color: #67e8f9;
}

.services-grid .service-item p {
    color: rgba(255, 255, 255, .68);
    font-size: .88rem;
    line-height: 1.55;
    margin: 0;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

/* Flecha indicadora al hover */
.services-grid .service-item::after {
    /* mantiene resplandor anterior */
}

.services-grid .service-item .service-arrow {
    position: absolute;
    bottom: 18px;
    right: 18px;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .35s ease, transform .35s ease;
    color: #38bdf8;
    z-index: 2;
}

.services-grid .service-item:hover .service-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Hero badge: refuerzo visual al cargar */
.hero-badge {
    animation: badgePop .7s cubic-bezier(.34, 1.56, .64, 1) .3s both;
}

@keyframes badgePop {
    from { opacity: 0; transform: translateY(-10px) scale(.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .services-grid .service-item,
    .services-grid .service-item::before,
    .services-grid .service-item::after,
    .services-grid .icon-wrapper { transition: none !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    .promo-icon,
    .promo-bar::before,
    .live-toast-pulse,
    .hero-badge { animation: none !important; }
    .scroll-top { transition: none !important; }
}

/* =========================================================
   POP-UP PROMOCIONAL — Dashcam GPS
   ========================================================= */

.srt-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn .35s ease;
}

.srt-modal[hidden] {
    display: none !important;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.srt-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

.srt-modal-card {
    position: relative;
    background: #fff;
    border-radius: 22px;
    max-width: 880px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
    animation: modalSlideUp .45s cubic-bezier(.2, .9, .3, 1);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.srt-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    border: 0;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    color: #0f172a;
    z-index: 5;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    transition: transform .2s ease, background .2s ease;
}

.srt-modal-close:hover {
    transform: rotate(90deg);
    background: #f1f5f9;
}

/* ----- Dashcam FLYER (estilo promocional vertical) ----- */
.dashcam-flyer {
    background: linear-gradient(160deg, #0a2a6b 0%, #0a1e52 55%, #061533 100%);
    color: #fff;
    overflow: hidden;
    max-width: 560px;
    padding: 0;
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(56, 189, 248, .15);
}

.dashcam-flyer .srt-modal-close {
    background: rgba(0, 0, 0, .35);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
}
.dashcam-flyer .srt-modal-close:hover {
    background: rgba(239, 68, 68, .85);
}

/* HEADER */
.flyer-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(56, 189, 248, .15);
}
.flyer-logo {
    width: 78px;
    height: 78px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(56, 189, 248, .35));
}
.flyer-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1;
}
.flyer-subtitle {
    color: #fbbf24;
    font-size: .78rem;
    font-weight: 600;
    margin: 6px 0 0;
    letter-spacing: .3px;
}
.flyer-subtitle span { color: rgba(251, 191, 36, .5); margin: 0 4px; }

/* BODY */
.flyer-body {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 18px;
    padding: 22px 28px 16px;
    align-items: center;
}
.flyer-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.flyer-image img {
    width: 100%;
    max-width: 220px;
    height: auto;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .5));
}

.flyer-cta-title {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.05;
    margin: 0 0 10px;
    color: #fff;
    letter-spacing: .5px;
}
.flyer-cta-title strong {
    display: block;
    font-size: 2.1rem;
    font-weight: 900;
    color: #fff;
}

.flyer-price {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    padding: 8px 18px;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(56, 189, 248, .45);
    margin-bottom: 14px;
    animation: pricePulse 2.4s ease-in-out infinite;
}
@keyframes pricePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}
.flyer-price-amount {
    font-size: 1.9rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.flyer-price-amount sup { font-size: 0.9rem; }
.flyer-price-period {
    font-size: .8rem;
    color: rgba(255, 255, 255, .92);
    font-weight: 600;
}

.flyer-desc {
    color: rgba(255, 255, 255, .88);
    font-size: .85rem;
    line-height: 1.45;
    margin: 0 0 10px;
}
.flyer-desc strong { color: #fbbf24; }

.flyer-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}
.flyer-benefits li {
    color: #fff;
    font-size: .82rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.flyer-benefits .check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fbbf24;
    color: #0a1e52;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: .7rem;
    flex-shrink: 0;
}

/* FEATURES con íconos circulares */
.flyer-features {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding: 14px 22px 18px;
    border-top: 1px solid rgba(56, 189, 248, .12);
    border-bottom: 1px solid rgba(56, 189, 248, .12);
    margin: 0 6px;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(145deg, #0a1e52, #061533);
    border: 2px solid #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    font-weight: 900;
    font-size: .8rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}
.feature-icon.feature-live {
    background: linear-gradient(145deg, #ef4444, #b91c1c);
    color: #fff;
    border-color: #fff;
    animation: liveBlink 1.8s ease-in-out infinite;
}
@keyframes liveBlink {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6), 0 6px 16px rgba(0, 0, 0, .4); }
    50%       { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0), 0 6px 16px rgba(0, 0, 0, .4); }
}
.feature-item:hover .feature-icon {
    transform: translateY(-3px) scale(1.06);
}
.feature-item span {
    font-size: .68rem;
    color: rgba(255, 255, 255, .85);
    font-weight: 500;
    line-height: 1.15;
}

/* CTA principal */
.flyer-cta-btn {
    display: block;
    margin: 18px 28px 14px;
    padding: 16px 22px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0a1e52;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(251, 191, 36, .45);
    transition: transform .25s ease, box-shadow .25s ease;
    letter-spacing: .3px;
}
.flyer-cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 36px rgba(251, 191, 36, .6);
}

/* CONTACTO */
.flyer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 28px 16px;
}
.flyer-contact a {
    color: rgba(255, 255, 255, .9);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color .2s ease;
}
.flyer-contact a:hover { color: #fbbf24; }
.flyer-contact .ico {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(56, 189, 248, .15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
}

.flyer-terms {
    display: block;
    text-align: right;
    color: rgba(255, 255, 255, .5);
    font-size: .65rem;
    padding: 0 28px 18px;
    letter-spacing: .5px;
}

/* RESPONSIVE FLYER */
@media (max-width: 600px) {
    .dashcam-flyer {
        max-width: none;
        border-radius: 18px;
    }
    .flyer-header { padding: 18px 18px 14px; gap: 12px; }
    .flyer-logo { width: 58px; height: 58px; }
    .flyer-title { font-size: 1.6rem; }
    .flyer-subtitle { font-size: .68rem; }

    .flyer-body {
        grid-template-columns: 1fr;
        padding: 18px 18px 14px;
        gap: 14px;
        text-align: center;
    }
    .flyer-image img { max-width: 160px; }
    .flyer-cta-title { font-size: 1.2rem; }
    .flyer-cta-title strong { font-size: 1.7rem; }
    .flyer-price-amount { font-size: 1.6rem; }
    .flyer-benefits { text-align: left; }

    .flyer-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px 8px;
        padding: 14px 14px 16px;
    }
    .feature-icon { width: 46px; height: 46px; font-size: .72rem; }
    .feature-item span { font-size: .64rem; }

    .flyer-cta-btn {
        margin: 14px 18px 12px;
        padding: 13px 18px;
        font-size: .92rem;
    }
    .flyer-contact { padding: 4px 18px 14px; }
    .flyer-contact a { font-size: .78rem; }
    .flyer-terms { padding: 0 18px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .srt-modal,
    .srt-modal-card,
    .flyer-price,
    .feature-icon.feature-live { animation: none !important; }
}

/* =========================================================
   RESPONSIVE OVERHAUL — Mejoras para móvil y tablet
   ========================================================= */

/* ---------- TABLET (<= 900px) ---------- */
@media (max-width: 900px) {
    .services-modern .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        padding: 0 16px;
    }
    .hero-carousel .carousel-content h2 {
        font-size: clamp(1.8rem, 5vw, 2.6rem);
    }
}

/* ---------- MÓVIL (<= 768px) ---------- */
@media (max-width: 768px) {
    /* Tipografía y spacing global de secciones */
    section { padding: 50px 0 !important; }
    h2, .section-title { font-size: clamp(1.5rem, 5.5vw, 2rem) !important; line-height: 1.2; }
    h3 { font-size: 1.2rem !important; }
    p  { font-size: .95rem; line-height: 1.6; }

    /* Promo bar — apilada y compacta */
    .promo-bar-inner {
        flex-wrap: wrap;
        padding: 8px 12px !important;
        gap: 8px;
        font-size: .82rem;
    }
    .promo-text {
        flex: 1 1 100%;
        text-align: left;
        font-size: .8rem;
    }
    .promo-cta {
        font-size: .8rem;
        padding: 6px 12px;
    }
    .promo-icon { font-size: 1rem; }

    /* Hero */
    .hero-carousel { min-height: 88vh; }
    .hero-carousel .carousel-content {
        padding: 0 18px;
        text-align: center;
    }
    .hero-carousel .carousel-content h2 {
        font-size: clamp(1.7rem, 7vw, 2.4rem);
        margin-bottom: 14px;
    }
    .hero-carousel .carousel-content p {
        font-size: .95rem;
        max-width: 92%;
        margin: 0 auto 18px;
    }
    .hero-badge {
        font-size: .72rem;
        padding: 6px 12px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .hero-buttons a,
    .hero-buttons button {
        width: 100%;
        justify-content: center;
        padding: 12px 18px !important;
        font-size: .92rem;
    }

    /* Services — 1 columna en móvil */
    .services-modern .services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 16px;
    }
    .services-grid .service-item {
        padding: 24px 20px 22px;
    }
    .services-grid .icon-wrapper {
        width: 54px;
        height: 54px;
    }
    .services-grid .service-item h4 { font-size: 1.05rem; }
    .services-grid .service-item p  { font-size: .85rem; }

    /* FAQ */
    .faq-item summary {
        font-size: .95rem !important;
        padding: 14px 16px !important;
    }
    .faq-item p { font-size: .88rem; padding: 0 16px 14px; }

    /* Brand carousel: máscaras más cortas */
    .brand-carousel::before,
    .brand-carousel::after { width: 60px !important; }

    /* Footer / contacto */
    .contact-cta { padding: 40px 18px !important; }
    .contact-cta h2 { font-size: 1.4rem !important; }
}

/* ---------- MÓVIL PEQUEÑO (<= 480px) ---------- */
@media (max-width: 480px) {
    section { padding: 40px 0 !important; }

    /* Reposicionar elementos flotantes para que no se solapen */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 16px;
        left: 16px;
    }
    .scroll-top {
        width: 42px;
        height: 42px;
        right: 14px;
        bottom: 78px;       /* arriba del chatbot */
    }

    /* Toasts: ocupan ancho disponible sin tapar botón WhatsApp */
    .live-toasts {
        left: 78px;          /* deja espacio al botón WhatsApp */
        right: 12px;
        bottom: 16px;
        max-width: none;
    }
    .live-toast {
        padding: 10px 12px 10px 10px;
        gap: 10px;
        border-radius: 12px;
    }
    .live-toast-avatar { width: 36px; height: 36px; font-size: .8rem; }
    .live-toast-text { font-size: .76rem; }
    .live-toast-text small { font-size: .65rem; }

    /* Chatbot flotante en móvil — ocupa casi toda la pantalla cuando se abre */
    .srt-chat-launcher {
        right: 14px;
        bottom: 78px !important;    /* sobre el botón WhatsApp si está abajo derecha */
    }
    .srt-chat-window {
        position: fixed !important;
        right: 8px !important;
        left: 8px !important;
        bottom: 8px !important;
        top: 70px !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        max-height: none !important;
        border-radius: 16px !important;
    }

    /* Modal dashcam — full screen friendly */
    .srt-modal-card {
        margin: 12px !important;
        max-height: calc(100vh - 24px) !important;
        overflow-y: auto;
    }

    /* Promo bar más pequeña */
    .promo-bar-inner { font-size: .75rem; padding: 6px 10px !important; }
    .promo-close { font-size: 1.1rem; }

    /* Tipografía hero más ajustada */
    .hero-carousel .carousel-content h2 { font-size: 1.65rem; }
    .hero-carousel .carousel-content p  { font-size: .88rem; }

    /* Cards de servicio aún más compactas */
    .services-grid .service-item { padding: 20px 18px; }
    .services-grid .icon-wrapper { width: 48px; height: 48px; border-radius: 12px; }

    /* Brand carousel — logos más pequeños */
    .brand-carousel img,
    .brand-carousel .brand { max-height: 36px !important; }
}

/* ---------- LANDSCAPE móvil (orientación horizontal) ---------- */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
    .hero-carousel { min-height: 100vh; }
    .hero-carousel .carousel-content { padding: 20px; }
    .hero-buttons { flex-direction: row; max-width: none; }
    .hero-buttons a, .hero-buttons button { width: auto; }
    section { padding: 36px 0 !important; }
}

/* ---------- Util: evita scroll horizontal y mejora tap targets ---------- */
@media (max-width: 768px) {
    html, body { overflow-x: hidden; }
    a, button { min-height: 40px; }
    img { max-width: 100%; height: auto; }
    .container, .wrapper { padding-left: 16px !important; padding-right: 16px !important; }
}

