/* ============================================================
   seguridadWeb — landing.css
   Diseño: Corporativo ABS Security
   Paleta: fondo blanco, texto #323232, acento #e40707
   Tipografía: Montserrat (local, embebida en el tema)
   ============================================================ */

/* ─── @font-face — Montserrat ────────────────────────────────── */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100; font-display: swap;
    src: url('../fonts/Montserrat-Thin.otf') format('opentype'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 200; font-display: swap;
    src: url('../fonts/Montserrat-ExtraLight.otf') format('opentype'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300; font-display: swap;
    src: url('../fonts/Montserrat-Light.otf') format('opentype'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('../fonts/Montserrat-Regular.otf') format('opentype'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('../fonts/Montserrat-Medium.otf') format('opentype'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap;
    src: url('../fonts/Montserrat-SemiBold.otf') format('opentype'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('../fonts/Montserrat-Bold.otf') format('opentype'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap;
    src: url('../fonts/Montserrat-ExtraBold.otf') format('opentype'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 900; font-display: swap;
    src: url('../fonts/Montserrat-Black.otf') format('opentype'); }


/* ─── Variables ─────────────────────────────────────────────── */
:root {
    /* Superficies — fondo blanco corporativo */
    --bg-base:       #ffffff;
    --bg-surface:    #f7f7f7;
    --bg-elevated:   #efefef;
    --bg-card:       #ffffff;
    --bg-control:    #f5f5f5;

    /* Bordes — neutros */
    --border-soft:   rgba(50, 50, 50, 0.08);
    --border:        rgba(50, 50, 50, 0.15);
    --border-hover:  rgba(228, 7, 7, 0.35);
    --border-focus:  rgba(228, 7, 7, 0.60);

    /* Acento corporativo — rojo ABS Security */
    --accent:        #e40707;
    --accent-hover:  #bf0505;
    --accent-dim:    rgba(228, 7, 7, 0.10);
    --accent-glow:   rgba(228, 7, 7, 0.18);
    --accent-alt:    #323232;   /* gris oscuro como secundario */

    /* Semánticos */
    --color-success: #0a8a4a;
    --color-error:   #e40707;
    --color-warning: #b45309;

    /* Texto — corporativo #323232 */
    --text-primary:  #323232;
    --text-secondary:#555555;
    --text-tertiary: #777777;
    --text-muted:    #999999;

    --font-main:     'Montserrat', system-ui, sans-serif;
    --font-display:  'Montserrat', system-ui, sans-serif;

    /* Radio — escala coherente */
    --radius-xs:     4px;
    --radius-sm:     6px;
    --radius-md:     12px;
    --radius-lg:     20px;
    --radius-xl:     32px;

    /* Sombras — una estrategia: color shift + sombra suave */
    --shadow-card:   0 2px 12px rgba(50, 50, 50, 0.07), 0 1px 3px rgba(50, 50, 50, 0.05);
    --shadow-raised: 0 8px 32px rgba(50, 50, 50, 0.10), 0 2px 8px rgba(50, 50, 50, 0.06);
    --shadow-accent: 0 6px 24px rgba(50, 50, 50, 0.12);

    --transition:    0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-lg: 0.38s cubic-bezier(0.4, 0, 0.2, 1);

    /* Espaciado base: 4px */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body.seguridad-body {
    font-family: var(--font-main);
    background-color: #ffffff;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── Container ─────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Utilidades ────────────────────────────────────────────── */
.text--accent { color: var(--accent); }
.seguridad-main { overflow: hidden; }

/* ─── Animación entrada ─────────────────────────────────────── */
[data-aos] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}
[data-aos][data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos][data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos][data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos][data-aos-delay="500"] { transition-delay: 0.5s; }
[data-aos][data-aos-delay="600"] { transition-delay: 0.6s; }
[data-aos="fade-down"] { transform: translateY(-24px); }
[data-aos="fade-down"].aos-animate { transform: translateY(0); }

/* ─── Navbar ────────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition), background var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 24px rgba(50, 50, 50, 0.10);
    background: rgba(255, 255, 255, 0.98);
}

.navbar__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 8px 24px; /* padding horizontal restaurado — mismo div tiene clase .container */
}

/* Logo */
.navbar__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.navbar__logo img {
    height: clamp(52px, 6vw, 72px);
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Nav links */
.navbar__nav { flex: 1; }

.navbar__links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.navbar__link {
    padding: 6px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.navbar__link:hover {
    color: #ffffff;
    background: #323232;
}

/* CTA */
.navbar__cta {
    flex-shrink: 0;
    padding: 9px 20px;
    font-size: 0.88rem;
}

/* Hamburger */
.navbar__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 4px;
    margin-left: auto;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.navbar__hamburger:hover { background: rgba(50, 50, 50, 0.08); }

.navbar__hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.navbar__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Botones ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    line-height: 1;
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    outline: none;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

/* Focus ring accesible para todos los botones */
.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Primario — color sólido, no gradiente (evita default) */
.btn--primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 8px 32px rgba(228, 7, 7, 0.22);
    transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); box-shadow: var(--shadow-accent); }

/* Acento — color plano corporativo para el plan destacado */
.btn--accent {
    background: #e40707;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(228, 7, 7, 0.18);
}
.btn--accent:hover {
    background: #c90606;
    box-shadow: 0 8px 28px rgba(228, 7, 7, 0.28);
    transform: translateY(-1px);
}
.btn--accent:active { transform: translateY(0); }

/* Ghost — para acciones secundarias */
.btn--ghost {
    background: #323232;
    color: #ffffff;
    border-color: #323232;
    backdrop-filter: blur(8px);
}
.btn--ghost:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(50, 50, 50, 0.30);
    transform: translateY(-1px);
}

.btn--lg { padding: 15px 32px; font-size: 1rem; border-radius: var(--radius-md); gap: 10px; }
.btn--xl { padding: 20px 52px; font-size: 1.2rem; border-radius: var(--radius-md); gap: 10px; }
.btn--sm { padding: 7px 14px; font-size: 0.83rem; }
.btn--full { width: 100%; justify-content: center; }

/* ─── Section Headers ───────────────────────────────────────── */
.section__header {
    text-align: center;
    margin-bottom: var(--space-12);
}

/* Tag: fondo rojo corporativo, texto blanco */
.section__tag {
    display: inline-block;
    padding: 5px 14px;
    background: #e40707;
    border: 1px solid transparent;
    border-radius: 100px;
    font-size: 0.77rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: var(--space-4);
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.7rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

/* El acento solo en el span interno del título, no en todo el encabezado */
.section__title .text--accent {
    color: var(--accent);
    background: none;
    -webkit-text-fill-color: initial;
}

.section__desc {
    font-size: 1.02rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
/* ── Offset scroll para navbar sticky (evita que la sección quede tapada) ── */
.hero,
.beneficios,
.productos,
.servicios,
.wizard-section,
.testimonios,
.imagenes_servicios,
.campanas_imagenes {
    scroll-margin-top: 72px;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__grid {
    position: absolute;
    inset: 0;
    /* Refuerza la cuadrícula en el hero con puntos en las intersecciones */
    background-image:
        linear-gradient(rgba(50, 50, 50, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50, 50, 50, 0.06) 1px, transparent 1px),
        radial-gradient(circle, rgba(50, 50, 50, 0.12) 1px, transparent 1px);
    background-size: 48px 48px, 48px 48px, 48px 48px;
    background-position: 0 0, 0 0, 24px 24px;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% -10%, rgba(50, 50, 50, 0.04) 0%, transparent 65%),
        radial-gradient(ellipse 45% 45% at 90% 85%, rgba(228, 7, 7, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 0% 60%, rgba(50, 50, 50, 0.02) 0%, transparent 55%),
        linear-gradient(180deg, #f5f5f5 0%, #ffffff 55%, var(--bg-base) 100%);
}

.hero__particles { display: none; }
.particle       { display: none; }

@keyframes particleFloat {
    0%   { opacity: 0; transform: translateY(0) scale(0); }
    10%  { opacity: 0.8; }
    90%  { opacity: 0.4; }
    100% { opacity: 0; transform: translateY(-120px) scale(1.5); }
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 120px 24px 80px;
    max-width: 800px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #323232;
    border: 1px solid rgba(50, 50, 50, 0.4);
    border-radius: 100px;
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 28px;
    backdrop-filter: blur(6px);
}

/* Signature: latido sutil — "sistema activo ahora mismo" */
.badge__dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    animation: systemBeat 2.4s ease-in-out infinite;
}

/* Onda expansiva del latido */
.badge__dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    opacity: 0;
    animation: beatRing 2.4s ease-in-out infinite;
}

@keyframes systemBeat {
    0%, 100% { opacity: 1; transform: scale(1); }
    40%       { opacity: 0.7; transform: scale(0.85); }
    55%       { opacity: 1; transform: scale(1.1); }
}

@keyframes beatRing {
    0%   { opacity: 0; transform: scale(0.5); }
    40%  { opacity: 0.5; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(2.2); }
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero__title--accent {
    color: #e40707;
    position: relative;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero__stat { text-align: left; }

.hero__stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.hero__stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(50, 50, 50, 0.15);
}

.hero__ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

/* ─── Hero inline CTA ───────────────────────────────────────── */
.hero__inline-cta {
    max-width: 520px;
}

.hero__inline-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

.hero__inline-label svg {
    display: inline;
    stroke: var(--accent);
    flex-shrink: 0;
}

.hero__quick-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.hero__quick-input-wrap {
    display: flex;
    flex: 1;
    max-width: 260px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1.5px solid rgba(50, 50, 50, 0.20);
    background: rgba(255, 255, 255, 0.90);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.hero__quick-input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(50, 50, 50, 0.08);
}

.hero__quick-prefix {
    padding: 0 12px;
    display: flex;
    align-items: center;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(50, 50, 50, 0.04);
    border-right: 1px solid rgba(50, 50, 50, 0.12);
    white-space: nowrap;
}

.hero__quick-input {
    flex: 1;
    padding: 14px 12px;
    border: none;
    outline: none;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: transparent;
    min-width: 0;
}

.hero__quick-input::placeholder { color: var(--text-muted); }

.hero__quick-btn {
    flex-shrink: 0;
}

.hero__quick-error {
    display: block;
    font-size: 0.78rem;
    color: #dc2626;
    margin-top: 6px;
    min-height: 14px;
}

/* ─── Botón flotante WhatsApp ───────────────────────────────── */
.wab-float {
    position: fixed;
    bottom: 100px;   /* encima del sticky-cta (bottom:32px + ~56px alto + 12px gap) */
    right: 28px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    /* Siempre visible — sin opacity:0 ni pointer-events:none */
}
.wab-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}
.wab-float svg {
    width: 30px;
    height: 30px;
}
.wab-float__tooltip {
    position: absolute;
    right: 64px;     /* tooltip aparece a la izquierda del botón */
    background: #1a1a1a;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.wab-float:hover .wab-float__tooltip {
    opacity: 1;
}
@media (max-width: 768px) {
    .wab-float { bottom: 88px; right: 16px; width: 50px; height: 50px; }
    .wab-float svg { width: 26px; height: 26px; }
    .wab-float__tooltip { display: none; }
}

/* ─── Sticky CTA flotante ───────────────────────────────────── */
.sticky-cta {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 900;
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.sticky-cta.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.sticky-cta__btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #323232;
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(50, 50, 50, 0.30), 0 2px 8px rgba(0, 0, 0, 0.10);
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.sticky-cta__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(50, 50, 50, 0.40), 0 4px 12px rgba(0, 0, 0, 0.12);
}

.sticky-cta__btn:active {
    transform: translateY(-1px);
}

.sticky-cta__pulse {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.sticky-cta__pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.hero__scroll {
    display: none;
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ══════════════════════════════════════════════════════════════
   BENEFICIOS
══════════════════════════════════════════════════════════════ */
.beneficios {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 60%, #efefef 100%);
}

.beneficios__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.beneficio__card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

/* Línea superior como señal de hover — signature del sistema */
.beneficio__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 0 0 2px 2px;
    opacity: 0;
    transition: opacity var(--transition);
}

.beneficio__card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-raised);
}

.beneficio__card:hover::before { opacity: 1; }

.beneficio__icon {
    width: 56px;
    height: 56px;
    background: #323232;
    border: 1px solid rgba(50, 50, 50, 0.12);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
    color: #ffffff;
    transition: all var(--transition);
}

.beneficio__icon svg { width: 28px; height: 28px; }

.beneficio__img-wrap {
    margin-bottom: 20px;
}
.beneficio__img-wrap img {
    width: 95px;
    height: 95px;
    object-fit: contain;
}

.beneficio__card:hover .beneficio__icon {
    background: #e40707;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(228, 7, 7, 0.25);
    border-color: transparent;
}

.beneficio__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.beneficio__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.beneficio__line {
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.3;
}

/* ══════════════════════════════════════════════════════════════
   PRODUCTOS
══════════════════════════════════════════════════════════════ */
.productos,
.servicios {
    padding: 100px 0;
    background: linear-gradient(180deg, #efefef 0%, #f5f5f5 50%, #f7f7f7 100%);
    position: relative;
}

.productos::before,
.servicios::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(50, 50, 50, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(50, 50, 50, 0.04) 0%, transparent 55%);
    pointer-events: none;
}

.productos__grid,
.servicios__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* Cada tarjeta ocupa 1/4 del ancho (4 columnas con 3 gaps de 24px).
   Al no completar la fila, justify-content:center las centra automáticamente. */
.producto__card {
    flex: 0 0 calc(25% - 18px);
}

.producto__card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.producto__card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-raised);
}

/* Destacado — borde violeta, tono de superficie ligeramente coloreado */
.producto__card--featured {
    border-color: rgba(228, 7, 7, 0.25);
    background: linear-gradient(160deg, #ffffff 0%, rgba(228, 7, 7, 0.02) 100%);
    box-shadow: 0 4px 24px rgba(228, 7, 7, 0.08), var(--shadow-card);
}

.producto__card--featured:hover {
    border-color: rgba(228, 7, 7, 0.45);
    box-shadow: 0 12px 40px rgba(228, 7, 7, 0.14), var(--shadow-raised);
}

.producto__featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e40707;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
}

.producto__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.producto__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: #323232;
    color: #ffffff;
}
.producto__icon svg { width: 26px; height: 26px; }

.producto__tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--accent-dim);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 100px;
}

.producto__name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.producto__desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.producto__features {
    flex: 1;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-content: flex-start;
}

.producto__features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature__check,
.feature__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--accent);
}

.btn.producto__cta {
    margin-top: auto;
}

/* ══════════════════════════════════════════════════════════════
   WIZARD
══════════════════════════════════════════════════════════════ */
.wizard-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f7f7f7 0%, #f5f5f5 50%, #ffffff 100%);
    position: relative;
}

.wizard-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 40%, rgba(50, 50, 50, 0.04) 0%, transparent 65%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(50, 50, 50, 0.03) 0%, transparent 55%);
    pointer-events: none;
}

.wizard {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Progress */
.wizard__progress {
    margin-bottom: var(--space-10);
}

/* Barra de progreso: 4px, tono más fino y legible */
.wizard__progress-bar {
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 100px;
    margin-bottom: var(--space-6);
    overflow: hidden;
    position: relative;
}

/* Fill: color sólido — el movimiento hace la magia */
.wizard__progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 100px;
    transition: width 0.48s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Brillo de avance — sutil, no glow */
.wizard__progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5));
    border-radius: 100px;
}

.wizard__steps-nav {
    display: flex;
    justify-content: space-between;
    position: relative;
}

/* Línea conectora entre steps */
.wizard__steps-nav::before {
    content: '';
    position: absolute;
    top: 15px;
    left: calc(16.66% + 2px);
    right: calc(16.66% + 2px);
    height: 1px;
    background: var(--border-soft);
    z-index: 0;
}

.wizard__step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    flex: 1;
    cursor: default;
    position: relative;
    z-index: 1;
}

.step-dot__number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

/* Step activo: signature del latido — sutil, no fog */
.wizard__step-dot.active .step-dot__number {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 0 4px var(--accent-dim);
}

/* Step completado: feedback claro sin sombra */
.wizard__step-dot.completed .step-dot__number {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}

.step-dot__label {
    font-size: 0.73rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color var(--transition);
    text-align: center;
}

.wizard__step-dot.active .step-dot__label {
    color: var(--accent);
    font-weight: 600;
}

.wizard__step-dot.completed .step-dot__label { color: var(--text-tertiary); }

/* Panels */
.wizard__form {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(50, 50, 50, 0.10);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 48px rgba(50, 50, 50, 0.10);
    backdrop-filter: blur(12px);
}

.wizard__panel {
    display: none;
    padding: 40px;
    animation: panelIn 0.35s ease;
}

.wizard__panel.active { display: block; }

@keyframes panelIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.wizard__panel-header { margin-bottom: 32px; }

.wizard__panel-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.wizard__panel-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Form elements */
.form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    margin-bottom: var(--space-8);
}

.form__group--full { grid-column: 1 / -1; }

.form__label {
    display: block;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    letter-spacing: 0.015em;
}

.form__required { color: var(--accent); margin-left: 1px; }
.form__optional { color: var(--text-muted); font-size: 0.8em; font-weight: 400; }

/* Inputs — fondo ligeramente más oscuro que el card (inset visual) */
.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: 13px 15px;
    background: var(--bg-control);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.94rem;
    line-height: 1.5;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form__input::placeholder,
.form__textarea::placeholder { color: var(--text-muted); }

.form__input:hover,
.form__select:hover,
.form__textarea:hover {
    border-color: rgba(50, 50, 50, 0.25);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
    background: #ffffff;
    outline: none;
}

.form__input.error,
.form__select.error {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(201, 32, 32, 0.08);
}

.form__error {
    display: block;
    font-size: 0.79rem;
    color: var(--color-error);
    margin-top: var(--space-1);
    min-height: 17px;
}

.form__input-group {
    display: flex;
    align-items: stretch;
}

/* Prefix del teléfono — misma altura y peso visual que el input */
.form__prefix {
    padding: 13px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 0.94rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.form__input--prefixed {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Select — flecha personalizada */
.form__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23777777' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 42px;
    cursor: pointer;
}

.form__select option {
    background: #ffffff;
    color: var(--text-primary);
    padding: 8px;
}

/* Radio cards — prop selection */
.form__radio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}

.radio__card { position: relative; cursor: pointer; }

/* Input oculto pero accesible */
.radio__card input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

/* Focus-visible en radio cards — accesibilidad teclado */
.radio__card input:focus-visible + .radio__card-content {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.radio__card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: #f7f7f7;
    border: 2px solid rgba(50, 50, 50, 0.10);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.radio__card-content svg {
    width: 28px;
    height: 28px;
    stroke: var(--text-muted);
    transition: stroke var(--transition);
}

.radio__card input:checked + .radio__card-content {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
}

.radio__card input:checked + .radio__card-content svg { stroke: var(--accent); }

.radio__card:hover .radio__card-content {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

/* Checkbox */
.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.form__checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }

.checkbox__custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: var(--bg-elevated);
    flex-shrink: 0;
    margin-top: 2px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.form__checkbox input:checked + .checkbox__custom {
    background: var(--accent);
    border-color: var(--accent);
}

.form__checkbox input:checked + .checkbox__custom::after {
    content: '';
    display: block;
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--bg-base);
    border-bottom: 2px solid var(--bg-base);
    transform: rotate(-45deg) translateY(-2px);
}

.checkbox__label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.link--accent { color: var(--accent); }
.link--accent:hover { text-decoration: underline; }

/* Panel footer */
.wizard__panel-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    padding-top: 4px;
    flex-wrap: wrap;
}

.wizard__panel-footer--split { justify-content: space-between; }

.wizard__panel-footer .btn {
    white-space: nowrap;
    min-width: 0;
}

#wizardSubmit { justify-content: center; }

.wizard__privacy {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.wizard__privacy svg { stroke: var(--text-muted); flex-shrink: 0; }

/* Summary */
.wizard__summary {
    background: linear-gradient(135deg, #f7f7f7 0%, #f5f5f5 100%);
    border: 1px solid rgba(50, 50, 50, 0.10);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.summary__label { color: var(--text-muted); }
.summary__value { color: var(--text-primary); font-weight: 500; }

/* Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Success */
.wizard__success {
    text-align: center;
    padding: 20px 0;
}

.success__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    animation: successPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0%   { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success__title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.success__desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.success__info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent-dim);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--accent);
}

.success__info svg { stroke: var(--accent); flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   TESTIMONIOS
══════════════════════════════════════════════════════════════ */
.testimonios {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 50%, #efefef 100%);
}

.testimonios__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.testimonio__card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-6);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.testimonio__card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-raised);
}

/* Estrellas — SVG sería ideal pero mantenemos unicode con color correcto */
.testimonio__stars {
    color: #e9a820;   /* ámbar — evita el naranja genérico */
    font-size: 0.88rem;
    letter-spacing: 3px;
    margin-bottom: var(--space-4);
    line-height: 1;
}

.testimonio__text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonio__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author__avatar {
    width: 40px;
    height: 40px;
    background: #323232;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.author__name {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.author__role {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Trust badges */
.trust__badges {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
    padding-top: var(--space-12);
    border-top: 1px solid var(--border-soft);
}

.trust__badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 500;
}

/* Texto destacado grande opcional bajo los badges */
.trust__destacado {
    margin-top: var(--space-8);
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Ícono con contenedor corporativo oscuro */
.trust__badge__icon-wrap {
    width: 36px;
    height: 36px;
    background: #323232;
    border: 1px solid rgba(50, 50, 50, 0.3);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}

.trust__badge svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   IMÁGENES SERVICIOS — Galería de imágenes 695×547 px
══════════════════════════════════════════════════════════════ */
.imagenes_servicios {
    padding: 0;
    overflow: hidden;
    width: 100%;
}

.imagenes_servicios__grid {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    align-items: stretch;
    gap: 0;
}

.imagenes_servicios__item {
    flex: 1 1 0;
    min-width: 0;
    display: block;
    overflow: hidden;
    text-decoration: none;
    line-height: 0;
    /* Reserva espacio antes de que cargue la imagen (ratio 695x547).
       Sin esto, height:auto colapsa el item a 0px en mobile real y el
       IntersectionObserver del AOS (threshold:0.1) nunca lo detecta,
       dejando opacity:0 permanente. En DevTools funciona porque las
       imagenes ya estan en cache y el contenedor tiene dimension. */
    aspect-ratio: 695 / 547;
}

.imagenes_servicios__item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.imagenes_servicios__item:hover img {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .imagenes_servicios__grid {
        flex-direction: column;
    }
    .imagenes_servicios__item {
        flex: 0 0 auto;
        width: 100%;
        /* Mantener aspect-ratio en layout columna para que cada imagen
           conserve su altura proporcional y el contenedor nunca mida 0px */
        aspect-ratio: 695 / 547;
    }
}

/* ══════════════════════════════════════════════════════════════
   CAMPAÑA IMÁGENES — Banners apilados verticalmente (hasta 3)
══════════════════════════════════════════════════════════════ */

/* Clases antiguas — conservadas para no romper CSS en caché, ya no se usan en el template */
.campanas_imagenes__imgs  { display: block; width: 100%; line-height: 0; }
.campanas_imagenes__img   { width: 100%; height: clamp(260px, 44vw, 615px); display: block; object-fit: cover; object-position: center; }
.campanas_imagenes__overlay { position: absolute; inset: 0; display: flex; justify-content: flex-start; align-items: center; background: rgba(0,0,0,0.35); z-index: 1; padding: 0 clamp(20px, 6vw, 100px); }
.campanas_imagenes__titulo  { font-family: var(--font-display); font-size: clamp(1.35rem, 3.2vw, 2.5rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: #ffffff; text-align: left; max-width: min(555px, 75%); text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.campanas_imagenes__titulo span { color: inherit; }

/* ── Wrapper de sección ─────────────────────────────────────── */
.campanas_imagenes {
    padding: 0;
    overflow: hidden;
}

/* ── Banner individual ──────────────────────────────────────── */
.campana-banner {
    position: relative;
    overflow: hidden;
    width: 100%;
    line-height: 0;
}

/* ── Imagen del banner ──────────────────────────────────────── */
.campana-banner__img {
    width: 100%;
    height: clamp(260px, 44vw, 615px);
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ── Badge RRSS — esquina superior derecha ──────────────────── */
.campana-banner__rrss {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
}

/* ── Overlay de texto ───────────────────────────────────────── */
.campana-banner__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    padding: 0 clamp(20px, 6vw, 100px);
    line-height: normal;
}

/* ── Título H2 ──────────────────────────────────────────────── */
.campana-banner__titulo {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #ffffff;
    text-align: left;
    max-width: min(555px, 75%);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.campana-banner__titulo span { color: inherit; }

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .campana-banner__img {
        height: clamp(220px, 55vw, 360px);
    }
    .campana-banner__overlay {
        padding: 0 20px;
        align-items: flex-end;
        padding-bottom: clamp(24px, 6vw, 48px);
    }
    .campana-banner__titulo {
        font-size: clamp(1.1rem, 5vw, 1.5rem);
        max-width: 100%;
    }
    .campana-banner__rrss {
        top: 12px;
        right: 12px;
        font-size: 0.7rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.site-footer {
    background: linear-gradient(180deg, #efefef 0%, #efefef 50%, #e8e8e8 100%);
    border-top: 1px solid rgba(50, 50, 50, 0.10);
    padding: 72px 0 32px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__logo {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.footer__logo img { width: 180px; height: auto; }

.footer__logo-text {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.footer__logo-text strong {
    display: block;
    color: var(--text-primary);
    font-size: 1rem;
}

.footer__tagline {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 280px;
}

.footer__social {
    display: flex;
    gap: 12px;
}

.social__link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(50, 50, 50, 0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}

.social__link:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}

.footer__col-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer__links a:hover { color: var(--accent); }

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.footer__contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer__contact svg { stroke: var(--accent); opacity: 0.7; flex-shrink: 0; }
.footer__contact a { color: var(--text-muted); transition: color var(--transition); }
.footer__contact a:hover { color: var(--accent); }

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(50, 50, 50, 0.10);
    flex-wrap: wrap;
    gap: 12px;
}

.footer__legal {
    font-size: 0.82rem;
    color: #ffffff;
}

.footer__legal-links {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.82rem;
    color: #ffffff;
}

.footer__legal-links a { color: #ffffff; transition: color var(--transition); }
.footer__legal-links a:hover { color: var(--accent); }

/* ── Modales legales ─────────────────────────────────────────── */
.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.legal-modal[hidden] { display: none; }

.legal-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    cursor: pointer;
}

.legal-modal__box {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 680px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,0.25);
    animation: modal-in 0.25s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes modal-in {
    from { opacity: 0; transform: scale(0.94) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.legal-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.legal-modal__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.legal-modal__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
}
.legal-modal__close:hover {
    background: var(--accent-dim);
    color: var(--accent);
}

.legal-modal__body {
    overflow-y: auto;
    padding: 24px 28px 32px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    -webkit-overflow-scrolling: touch;
}

.legal-modal__body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 20px 0 8px;
}
.legal-modal__body h3:first-child { margin-top: 0; }

.legal-modal__body p  { margin-bottom: 10px; }
.legal-modal__body ul { margin: 0 0 10px 16px; list-style: disc; }
.legal-modal__body li { margin-bottom: 4px; }
.legal-modal__body a  { color: var(--accent); text-decoration: underline; }

@media (max-width: 480px) {
    .legal-modal__box { max-height: 92vh; border-radius: var(--radius-md); }
    .legal-modal__header,
    .legal-modal__body { padding-left: 20px; padding-right: 20px; }
}

/* Tablet: 2 tarjetas por fila entre 769px y 1100px */
@media (max-width: 1100px) and (min-width: 769px) {
    .producto__card { flex: 0 0 calc(50% - 12px); }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    /* Navbar mobile */
    .navbar__hamburger { display: flex; }

    /* Inner: logo izquierda, CTA + hamburger derecha */
    .navbar__inner {
        justify-content: space-between;
        gap: 12px;
        padding: 10px 32px; /* margen lateral suficiente — mismo div tiene clase .container */
    }

    /* CTA compacto en mobile — visible, sin flecha */
    .navbar__cta {
        display: flex;
        padding: 8px 14px;
        font-size: 0.82rem;
    }
    .navbar__cta svg { display: none; }

    .navbar__nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(50, 50, 50, 0.10);
        padding: 12px 0 16px;
    }

    .navbar__nav.open { display: block; }

    .navbar__links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0 16px;
    }

    .navbar__link {
        display: block;
        width: 100%;
        padding: 13px 16px;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--text-primary);
        border-radius: var(--radius-sm);
        border-bottom: 1px solid rgba(50, 50, 50, 0.08);
    }

    .navbar__link:hover {
        background: #323232;
        color: #ffffff;
        border-bottom-color: transparent;
    }

    /* Link "Cotizar" en mobile — destaca como CTA */
    .navbar__link[href="#wizard"] {
        color: var(--accent);
        font-weight: 700;
    }

    .navbar__link[href="#wizard"]:hover {
        background: var(--accent);
        color: #ffffff;
    }

    /* Logo horizontal en mobile */
    .navbar__logo img { width: 130px; height: auto; }

    .hero__content { padding: 100px 24px 60px; }
    .hero__ctas { flex-wrap: wrap; gap: 12px; }
    .hero__stats { gap: 20px; }
    .hero__stat-divider { display: none; }
    .hero__quick-form { flex-direction: column; }
    .hero__quick-input-wrap { max-width: 100%; }
    .hero__quick-btn { width: 100%; justify-content: center; }
    .sticky-cta { bottom: 20px; right: 16px; }
    .sticky-cta__btn { padding: 12px 20px; font-size: 0.85rem; }

    .beneficios__grid,
    .testimonios__grid { grid-template-columns: 1fr; }

    /* Beneficio icon — no encoger, separar del texto */
    .beneficio__icon { flex-shrink: 0; margin-bottom: 16px; }

    .producto__card { flex: 0 0 100%; }

    /* Badge destacado — sin desbordamiento */
    .producto__featured-badge {
        top: 14px;
        right: 14px;
        font-size: 0.65rem;
        padding: 3px 9px;
    }

    /* Header de producto — icon + tag en fila, sin desborde */
    .producto__header {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .form__grid { grid-template-columns: 1fr; }
    .form__radio-grid { grid-template-columns: repeat(2, 1fr); }

    .wizard__panel { padding: 28px 20px; }

    /* Botones del wizard — ancho completo en mobile */
    .wizard__panel-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .wizard__panel-footer--split {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    .wizard__panel-footer--split .wizard__next {
        flex: 1;
        justify-content: center;
    }
    .wizard__panel-footer:not(.wizard__panel-footer--split) .btn {
        width: 100%;
        justify-content: center;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Trust badges — wrap en pantallas pequeñas, no solapar */
    .trust__badges { gap: 16px; flex-wrap: wrap; }
    .trust__badge { font-size: 0.78rem; gap: 8px; flex-shrink: 0; }
    .trust__badge span { font-size: 0.75rem; }
}

@media (max-width: 480px) {
    .hero__ctas { flex-direction: column; }
    .hero__ctas .btn { width: 100%; justify-content: center; }
    .form__radio-grid { grid-template-columns: 1fr 1fr; }
    .wizard__steps-nav .step-dot__label { display: none; }

    /* Split footer (Anterior + Siguiente) — columna en pantallas muy pequeñas */
    .wizard__panel-footer--split {
        flex-direction: column;
        align-items: stretch;
    }
    .wizard__panel-footer--split .wizard__next,
    .wizard__panel-footer--split .wizard__prev {
        width: 100%;
        justify-content: center;
    }

    /* Logo en pantallas muy pequeñas */
    .navbar__logo img { width: 110px; }

    /* Featured badge en teléfonos pequeños */
    .producto__featured-badge {
        position: static;
        display: inline-block;
        margin-bottom: 8px;
    }

    /* Trust badges en columna en pantallas muy pequeñas */
    .trust__badge { width: 100%; justify-content: flex-start; }
}

/* ── Contact Form 7 integrado al landing ────────────────────────────────────── */

.wam-cf7-wrapper {
    max-width: 680px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-raised);
}

.wam-cf7-header {
    margin-bottom: 28px;
}

.wam-cf7-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    margin-top: 0;
}

.wam-cf7-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Ajustes al formulario CF7 para que coincida con el sistema de diseño */
.wam-cf7-form .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wam-cf7-form .wpcf7-form p {
    margin: 0;
}

.wam-cf7-form input[type="text"],
.wam-cf7-form input[type="email"],
.wam-cf7-form input[type="tel"],
.wam-cf7-form textarea,
.wam-cf7-form select {
    width: 100%;
    padding: 13px 15px;
    background: var(--bg-control);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.94rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    appearance: none;
    box-sizing: border-box;
}

.wam-cf7-form input[type="text"]:focus,
.wam-cf7-form input[type="email"]:focus,
.wam-cf7-form input[type="tel"]:focus,
.wam-cf7-form textarea:focus,
.wam-cf7-form select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
    background: #ffffff;
}

.wam-cf7-form input[type="submit"],
.wam-cf7-form .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 32px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
    width: 100%;
    box-shadow: var(--shadow-accent);
}

.wam-cf7-form input[type="submit"]:hover,
.wam-cf7-form .wpcf7-submit:hover {
    background: var(--accent-hover);
    box-shadow: 0 8px 28px rgba(50, 50, 50, 0.18);
}

.wam-cf7-form .wpcf7-not-valid-tip {
    display: block;
    font-size: 0.79rem;
    color: var(--color-error);
    margin-top: 4px;
}

.wam-cf7-form .wpcf7-response-output {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-top: 8px;
    border: 1px solid var(--border);
}

.wam-cf7-form .wpcf7-mail-sent-ok {
    background: #e8f8ef;
    border-color: #a3d9bc;
    color: #0a7a3e;
}

.wam-cf7-form .wpcf7-mail-sent-ng,
.wam-cf7-form .wpcf7-spam-blocked {
    background: #fef2f2;
    border-color: #fca5a5;
    color: var(--color-error);
}

/* Responsive CF7 */
@media (max-width: 640px) {
    .wam-cf7-wrapper {
        padding: 24px 20px;
        border-radius: var(--radius-lg);
    }

    .wam-cf7-title {
        font-size: 1.2rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   COLOR DE TEXTO PERSONALIZADO — WebAlarmasMaster
   Activo cuando la sección tiene clase .wam-custom-text
   y la variable CSS --wam-tc definida por el plugin.
══════════════════════════════════════════════════════════════ */

/* Encabezados de sección */
.wam-custom-text .section__tag {
    color: #ffffff !important; /* siempre blanco sobre fondo rojo */
}
.wam-custom-text .section__title,
.wam-custom-text .section__title .text--accent,
.wam-custom-text .section__desc {
    color: var(--wam-tc) !important;
}

/* Beneficios */
.wam-custom-text .beneficio__title,
.wam-custom-text .beneficio__desc {
    color: var(--wam-tc) !important;
}

/* Testimonios */
.wam-custom-text .testimonio__text,
.wam-custom-text .testimonio__name,
.wam-custom-text .testimonio__role {
    color: var(--wam-tc) !important;
}

/* Hero */
.wam-custom-text .hero__title,
.wam-custom-text .hero__subtitle,
.wam-custom-text .hero__badge,
.wam-custom-text .hero__stat-number,
.wam-custom-text .hero__stat-label,
.wam-custom-text .hero__inline-label {
    color: var(--wam-tc) !important;
}

/* Footer */
.site-footer.wam-custom-text .footer__tagline,
.site-footer.wam-custom-text .footer__col-title,
.site-footer.wam-custom-text .footer__links a,
.site-footer.wam-custom-text .footer__contact li,
.site-footer.wam-custom-text .footer__contact a {
    color: var(--wam-tc) !important;
}
.site-footer .footer__legal,
.site-footer .footer__legal-links a {
    color: #ffffff !important;
}
