/* Landing promo Central de Alarmas — mobile-first, estilo centraldealarmas.com.mx */

:root {
    --primary: #ffffff;
    --secondary: #f8fafc;
    --surface: #f3f6fa;
    --accent: #063970;
    --accent-dark: #04294f;
    --accent-light: #e6f2f8;
    --accent-yellow: #f6eb17;
    --text: #1a202c;
    --text-soft: #334155;
    --text-muted: #64748b;
    --border: #e0e7f0;
    --danger: #dc2626;
    --wa: #25d366;
    --wa-dark: #128c4b;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --glow: rgba(6, 57, 112, 0.15);
    --footer-bg: #061432;
    --header-h: 60px;
    --gutter: clamp(16px, 4vw, 40px);
    --section-y: clamp(3.5rem, 8vw, 6rem);
}
@media (min-width: 960px) { :root { --header-h: 70px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 8px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--secondary);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent-yellow); outline-offset: 2px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }

/* ─── Marco de imagen uniforme (paquetes, galería, componentes) ─── */
.frame {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.frame > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 8%;
    transition: opacity 0.25s ease;
}
.frame.is-soft { background: var(--surface); }
.frame.is-square { aspect-ratio: 1 / 1; }
.frame.is-wide { aspect-ratio: 3 / 2; }
.frame.is-wide > img { padding: 3% 4%; }
.frame > img.is-swapping { opacity: 0; }

/* ─── Botones ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
    padding: 0.75rem 1.35rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn svg { flex-shrink: 0; }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
.btn:active { transform: scale(0.98); }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(6, 57, 112, 0.22); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-yellow { background: var(--accent-yellow); color: var(--accent); box-shadow: 0 6px 18px rgba(246, 235, 23, 0.25); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, 0.25); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-ghost-light { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.btn-outline { background: #fff; color: var(--accent); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); }

.label-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.35rem 0.8rem;
    background: var(--accent-yellow);
    color: var(--accent);
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.8rem;
}

/* ─── Header ─── */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    z-index: 100;
    display: flex;
    align-items: center;
    background: rgba(6, 20, 50, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled { background: var(--accent); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header .logo img { height: 30px; width: auto; }
@media (min-width: 960px) { .site-header .logo img { height: 36px; } }

.header-nav { display: none; gap: 0.25rem; }
.header-nav a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
}
.header-nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.header-actions { display: flex; gap: 0.5rem; align-items: center; }
.header-actions .btn { min-height: 40px; padding: 0.45rem 0.85rem; font-size: 0.82rem; }
.header-actions .btn-wa-label { display: none; }
@media (min-width: 960px) {
    .header-nav { display: flex; }
    .header-actions .btn-wa-label { display: inline; }
}

/* ─── Hero ─── */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 1.75rem) 0 2.5rem;
    color: #fff;
    background: var(--footer-bg) url('../img/hero.jpg?v=20261001j') center / cover no-repeat;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(6, 20, 50, 0.95) 0%, rgba(6, 57, 112, 0.88) 60%, rgba(6, 57, 112, 0.7) 100%);
}
.hero .container { position: relative; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) {
    .hero { padding-bottom: 4rem; }
    .hero .container { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; }
}

.hero h1 {
    font-size: clamp(2rem, 7.4vw, 3.6rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.hero h1 .hl { color: var(--accent-yellow); }
.hero-sub { font-size: clamp(1rem, 2.6vw, 1.15rem); color: rgba(255, 255, 255, 0.86); max-width: 560px; margin-bottom: 1.5rem; }

.hero-pick { margin-bottom: 1.4rem; }
.hero-pick p { font-size: 0.85rem; font-weight: 700; color: rgba(255, 255, 255, 0.75); margin-bottom: 0.55rem; }
.hero-pick-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; max-width: 520px; }
.hero-pick-options a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.8rem 0.4rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    transition: background 0.2s, border-color 0.2s;
}
.hero-pick-options a:hover, .hero-pick-options a:active { background: rgba(255, 255, 255, 0.18); border-color: var(--accent-yellow); }
.hero-pick-options svg { color: var(--accent-yellow); }

.hero-actions { display: grid; gap: 0.6rem; margin-bottom: 1.4rem; }
@media (min-width: 520px) { .hero-actions { display: flex; flex-wrap: wrap; } }

.trust-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; list-style: none; }
.trust-row li { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.trust-row svg { color: var(--accent-yellow); flex-shrink: 0; }

/* Problemas en la portada */
.hero-pains { list-style: none; display: grid; gap: 0.6rem; max-width: 560px; margin-inline: auto; width: 100%; }
.hero-pains li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: left;
}
.hero-pains .pain-icon { background: rgba(248, 113, 113, 0.18); color: #fca5a5; }
.hero-pains h3 { font-size: 0.98rem; color: #fff; margin-bottom: 0.15rem; }
.hero-pains p { font-size: 0.86rem; color: rgba(255, 255, 255, 0.75); }
@media (min-width: 960px) {
    .hero .container { grid-template-columns: 1.15fr 0.85fr; }
    .hero-pains { gap: 0.9rem; margin: 0; }
    .hero-pains li { padding: 1.15rem 1.2rem; }
}

/* Portada centrada en celular/tablet */
@media (max-width: 959px) {
    .hero-content { text-align: center; margin-inline: auto; max-width: 600px; }
    .hero-sub { margin-inline: auto; }
    .hero-actions { justify-content: center; }
}

/* ─── Secciones ─── */
.section { padding: var(--section-y) 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 2rem; }
@media (min-width: 768px) { .section-header { margin-bottom: 3rem; } }
.section-header h2 {
    font-size: clamp(1.6rem, 5.5vw, 2.5rem);
    line-height: 1.15;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.01em;
}
.section-header p { color: var(--text-muted); font-size: clamp(0.95rem, 2.4vw, 1.05rem); margin-top: 0.7rem; }

/* Problema */
.problem { background: #fff; }
.pain-icon {
    flex-shrink: 0;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #fee2e2;
    color: var(--danger);
    display: grid;
    place-items: center;
}
.flow { display: grid; gap: 0.75rem; list-style: none; counter-reset: flow; }
@media (min-width: 820px) { .flow { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.flow li {
    position: relative;
    padding: 1.2rem 1.2rem 1.2rem 4.2rem;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: #fff;
}
.flow li::before {
    counter-increment: flow;
    content: counter(flow);
    position: absolute;
    left: 1.1rem; top: 1.15rem;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent-yellow);
    color: var(--accent);
    font-weight: 800;
    display: grid;
    place-items: center;
}
.flow h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.flow p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.82); }

/* ─── Elige qué proteger ─── */
.pick-section { background: linear-gradient(135deg, var(--footer-bg) 0%, var(--accent) 100%); color: #fff; }
.pick-inner { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 960px) { .pick-inner { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.pick-copy { text-align: center; }
.pick-copy h2 { font-size: clamp(1.6rem, 5.5vw, 2.5rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
.pick-copy p { color: rgba(255, 255, 255, 0.82); margin: 0.8rem auto 1.2rem; max-width: 560px; font-size: clamp(0.95rem, 2.4vw, 1.05rem); }
.pick-copy .trust-row { justify-content: center; }
@media (min-width: 960px) {
    .pick-copy { text-align: left; }
    .pick-copy p { margin-inline: 0; }
    .pick-copy .trust-row { justify-content: flex-start; }
}
.pick-box { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius-lg); padding: 1.25rem; }
@media (min-width: 640px) { .pick-box { padding: 1.75rem; } }
.pick-question { font-size: 1.05rem; font-weight: 800; text-align: center; margin-bottom: 0.9rem; }
.pick-box .hero-pick-options { max-width: none; margin-bottom: 1.1rem; }
.pick-box .hero-pick-options a { padding: 1rem 0.4rem; font-size: 0.86rem; min-height: 96px; justify-content: center; }
.pick-box .hero-actions { margin: 0; justify-content: center; }
@media (min-width: 520px) { .pick-box .hero-actions .btn { flex: 1; } }

/* ─── Paquetes ─── */
.pkg-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    padding: 0.35rem;
    margin: 0 auto 1.25rem;
    max-width: 520px;
    background: #fff;
    border-radius: 100px;
    box-shadow: 0 4px 18px rgba(6, 20, 50, 0.07);
}
.pkg-tabs button {
    min-height: 42px;
    border: 0;
    border-radius: 100px;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.15;
    padding: 0.3rem 0.4rem;
    transition: background 0.2s, color 0.2s;
}
.pkg-tabs button[aria-selected="true"] { background: var(--accent); color: #fff; }
@media (min-width: 1080px) { .pkg-tabs { display: none; } }

.packages-track {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    --pkg-card: min(calc(100vw - 56px), 380px);
    grid-auto-columns: var(--pkg-card);
    gap: 0.9rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* márgenes iguales a ambos lados: cualquier tarjeta (incluida la primera y la última) puede quedar centrada */
    padding: 1rem calc((100vw - var(--pkg-card)) / 2) 1.5rem;
    margin-inline: calc(var(--gutter) * -1);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.packages-track::-webkit-scrollbar { display: none; }
@media (min-width: 1080px) {
    .packages-track {
        grid-auto-flow: row;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-columns: auto;
        gap: 1.5rem;
        overflow: visible;
        margin: 0;
        padding: 0.5rem 0 0;
    }
}

.pkg-dots { display: flex; justify-content: center; gap: 0.4rem; }
.pkg-dots span { width: 8px; height: 8px; border-radius: 100px; background: #cbd5e1; transition: width 0.2s, background 0.2s; }
.pkg-dots span.is-active { width: 22px; background: var(--accent); }
.swipe-hint { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.5rem; }
@media (min-width: 1080px) { .pkg-dots, .swipe-hint { display: none; } }

.package-card {
    position: relative;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 6px 26px rgba(6, 20, 50, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) and (min-width: 1080px) {
    .package-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(6, 57, 112, 0.14); }
}
.package-card.is-featured { border-color: var(--accent); }
/* Tarjeta elegida (Hogar / Hogar y PyMES / Negocio): marco azul iluminado y ligeramente elevada */
.package-card.is-selected {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 0 0 3px rgba(6, 57, 112, 0.18), 0 22px 46px rgba(6, 57, 112, 0.25);
}
.packages-track.has-selection .package-card.is-featured:not(.is-selected) { border-color: transparent; }

.package-media { position: relative; border-bottom: 1px solid #eef2f7; }
.package-media .frame { border-radius: 0; }
.package-tag, .package-ribbon {
    position: absolute;
    top: 0.85rem;
    z-index: 2;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
}
.package-tag { left: 0.85rem; background: var(--accent); color: #fff; }
.package-ribbon { right: 0.85rem; background: var(--accent-yellow); color: var(--accent); }

.package-gallery-btn {
    position: absolute;
    right: 0.75rem; bottom: 0.75rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    border-radius: 100px;
    background: rgba(6, 20, 50, 0.85);
    color: #fff;
    min-height: 36px;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}
.package-gallery-btn:hover { background: var(--accent); }

.package-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.2rem 1.25rem; }
@media (min-width: 768px) { .package-body { padding: 1.5rem; } }
.package-body h3 { font-size: 1.3rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.package-body h3 small { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-left: 0.25rem; }
.package-for { font-size: 0.88rem; color: var(--text-muted); margin: 0.35rem 0 0.9rem; }

.package-offer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 800;
}
.package-offer.is-muted { background: var(--surface); color: var(--text-soft); font-weight: 700; }

.package-list { list-style: none; flex: 1; }
.package-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.88rem;
    color: var(--text-soft);
    padding: 0.38rem 0;
}

.check {
    flex-shrink: 0;
    width: 18px; height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--accent);
    display: grid;
    place-items: center;
}
.check::after {
    content: '';
    width: 9px; height: 9px;
    background: #fff;
    -webkit-mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolyline points="20 6 9 17 4 12"/%3E%3C/svg%3E') center / contain no-repeat;
    mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolyline points="20 6 9 17 4 12"/%3E%3C/svg%3E') center / contain no-repeat;
}

.package-colors { display: flex; align-items: center; gap: 0.55rem; margin-top: 0.9rem; font-size: 0.85rem; color: var(--text-muted); }
.swatches { display: inline-flex; gap: 0.5rem; }
.swatch {
    position: relative;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}
.swatch::after { content: ''; position: absolute; inset: -8px; } /* área táctil */
.swatch[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px #fff inset, 0 0 0 2px var(--accent-light); }
.swatch-white { background: #fff; }
.swatch-black { background: #111; }
.js-color-name { font-weight: 700; color: var(--text-soft); }

.package-terms { margin-top: 0.75rem; font-size: 0.72rem; font-weight: 700; color: var(--accent); }
.package-terms a { color: inherit; }

.package-actions { display: grid; gap: 0.55rem; margin-top: 1.1rem; }
.package-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.package-actions-row .btn { min-height: 46px; padding: 0.5rem; font-size: 0.86rem; }

.packages-note { margin: 2rem auto 0; max-width: 760px; text-align: center; font-size: 0.92rem; color: var(--text-muted); }
.packages-note a { color: var(--accent); font-weight: 700; }

/* ─── Beneficios Ajax ─── */
.benefits { background: #fff; }
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (min-width: 900px) { .benefit-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.benefit { padding: 1.1rem 1rem; border-radius: var(--radius-md); background: var(--secondary); border: 1px solid #eef2f7; }
.benefit-icon {
    width: 42px; height: 42px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--accent-yellow);
    display: grid;
    place-items: center;
    margin-bottom: 0.75rem;
}
.benefit h3 { font-size: 0.95rem; color: var(--accent); line-height: 1.25; margin-bottom: 0.3rem; }
.benefit p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.45; }

/* ─── Servicios empresa (scroller en móvil) ─── */
.services-track {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(64%, 240px);
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding: 0.25rem var(--gutter) 1rem;
    margin-inline: calc(var(--gutter) * -1);
    scrollbar-width: none;
}
.services-track::-webkit-scrollbar { display: none; }
@media (min-width: 640px) {
    .services-track { grid-auto-columns: calc((100% - 2 * 0.75rem - 2 * var(--gutter)) / 3); }
}
@media (min-width: 1000px) {
    .services-track {
        grid-auto-columns: calc((100% - 3 * 1.25rem) / 4);
        gap: 1.25rem;
        margin: 0;
        padding: 0.25rem 0 1rem;
        scroll-padding-inline: 0;
    }
}

.svc-controls { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin-top: 0.4rem; }
.svc-nav {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--accent);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: border-color 0.2s, background 0.2s;
}
.svc-nav:hover { border-color: var(--accent); background: var(--accent-light); }
.svc-dots { display: flex; gap: 0.4rem; }
.svc-dots span { width: 8px; height: 8px; border-radius: 100px; background: #cbd5e1; transition: width 0.25s, background 0.25s; }
.svc-dots span.is-active { width: 22px; background: var(--accent); }

.svc-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 1.75rem;
    padding: 1.4rem;
    border-radius: var(--radius-lg);
    background: var(--accent);
    color: #fff;
}
.svc-cta h3 { font-size: 1.1rem; }
.svc-cta p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); margin-top: 0.2rem; }
.svc-cta .btn { width: 100%; }
@media (min-width: 700px) {
    .svc-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 1.5rem 2rem; }
    .svc-cta .btn { width: auto; }
}
.service-card {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(6, 20, 50, 0.06);
}
.service-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.service-card div { padding: 0.9rem 1rem 1.1rem; }
.service-card h3 { font-size: 0.95rem; color: var(--accent); margin-bottom: 0.25rem; }
.service-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.45; }
.service-card.service-cta { justify-content: center; background: var(--accent); color: #fff; }
.service-card.service-cta div { padding: 1.25rem; }
.service-card.service-cta h3 { color: #fff; font-size: 1.05rem; }
.service-card.service-cta p { color: rgba(255, 255, 255, 0.8); margin-bottom: 0.9rem; }

/* ─── FAQ ─── */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 0.6rem; }
.faq-list details { background: #fff; border-radius: var(--radius-md); box-shadow: 0 3px 14px rgba(6, 20, 50, 0.05); }
.faq-list summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    min-height: 56px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent);
    cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: '+';
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--accent-light);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 1.15rem 1.1rem; font-size: 0.9rem; color: var(--text-muted); }

/* ─── Contacto / formulario ─── */
.contact { background: linear-gradient(180deg, var(--secondary) 0%, #eaf0f7 100%); }
.contact-grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 2.5rem; } }

.form-card { background: #fff; border-radius: var(--radius-lg); padding: 1.4rem 1.15rem; box-shadow: 0 10px 40px rgba(6, 20, 50, 0.08); }
@media (min-width: 640px) { .form-card { padding: 2.25rem; } }

.form-progress { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); }
.form-progress .bar { flex: 1; height: 6px; border-radius: 100px; background: var(--surface); overflow: hidden; }
.form-progress .bar span { display: block; height: 100%; width: 50%; background: var(--accent); border-radius: inherit; transition: width 0.3s ease; }

.form-card h3 { font-size: 1.2rem; color: var(--accent); line-height: 1.25; }
.form-intro { color: var(--text-muted); font-size: 0.88rem; margin: 0.25rem 0 1.2rem; }

.selected-package {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: var(--accent-light);
    border: 1px solid #cfe2f0;
    color: var(--accent);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    font-size: 0.86rem;
    margin-bottom: 1.1rem;
}
.selected-package.is-visible { display: flex; }
.selected-package button { background: none; border: 0; color: var(--accent); font-weight: 700; font-size: 0.8rem; cursor: pointer; text-decoration: underline; min-height: 32px; }

.lead-form { display: grid; gap: 1rem; }
.form-step { display: grid; gap: 1rem; }
.form-step[hidden] { display: none; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field label, .field .legend { font-size: 0.84rem; font-weight: 700; color: var(--text-soft); }
.req { color: var(--danger); }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 50px;
    padding: 0.8rem 0.95rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 16px; /* evita zoom automático en iOS */
    color: var(--text);
    background: var(--secondary);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
.field select {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23063970" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolyline points="6 9 12 15 18 9"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 0.95rem center;
    padding-right: 2.4rem;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--glow); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { display: none; font-size: 0.78rem; font-weight: 600; color: var(--danger); }
.field.has-error .field-error { display: block; }
.field-hint { font-size: 0.76rem; font-weight: 500; color: var(--text-muted); }

.choice-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.4rem 0.5rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-soft);
    background: var(--secondary);
    text-align: center;
    line-height: 1.15;
    cursor: pointer;
    transition: all 0.2s;
}
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--accent-yellow); outline-offset: 2px; }

.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.82rem; color: var(--text-muted); font-weight: 500 !important; }
.consent input { width: 20px; height: 20px; min-height: 0 !important; margin-top: 1px; accent-color: var(--accent); flex-shrink: 0; appearance: auto !important; -webkit-appearance: checkbox !important; padding: 0 !important; }
.consent a { color: var(--accent); font-weight: 700; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.g-recaptcha { min-height: 78px; }
@media (max-width: 360px) { .g-recaptcha { transform: scale(0.86); transform-origin: left top; } }

.form-nav { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; }
.form-nav .btn-outline { padding-inline: 1rem; }
.form-submit { min-height: 54px; font-size: 1rem; }
.form-submit[disabled] { opacity: 0.7; cursor: progress; transform: none; }

.form-status { display: none; padding: 0.8rem 1rem; border-radius: var(--radius-sm); font-size: 0.86rem; font-weight: 600; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-status.is-visible { display: block; }
.form-safe { display: flex; align-items: center; justify-content: center; gap: 0.4rem; font-size: 0.78rem; color: var(--text-muted); }
.form-alt { text-align: center; font-size: 0.86rem; color: var(--text-muted); }
.form-alt a { color: var(--wa-dark); font-weight: 700; }

.contact-side { display: grid; gap: 1rem; }
.side-card { background: #fff; border-radius: var(--radius-md); padding: 1.3rem; box-shadow: 0 4px 24px rgba(6, 20, 50, 0.05); }
.side-card h3 { font-size: 1.02rem; color: var(--accent); margin-bottom: 0.3rem; }
.side-card p { font-size: 0.88rem; color: var(--text-muted); }
.side-card .btn { width: 100%; margin-top: 1rem; }
.side-card.wa-card { background: var(--accent); color: #fff; }
.side-card.wa-card h3 { color: #fff; }
.side-card.wa-card p { color: rgba(255, 255, 255, 0.82); }
.side-list { list-style: none; display: grid; gap: 0.75rem; margin-top: 0.7rem; }
.side-list li { display: flex; gap: 0.65rem; font-size: 0.88rem; color: var(--text-soft); }
.side-list svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.side-list a { color: var(--accent); font-weight: 700; text-decoration: none; }

/* ─── Footer ─── */
.site-footer { background: var(--footer-bg); color: rgba(255, 255, 255, 0.75); padding: 3rem 0 calc(6rem + env(safe-area-inset-bottom)); font-size: 0.86rem; }
.footer-top { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
@media (min-width: 800px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer .logo img { height: 32px; width: auto; margin-bottom: 1rem; }
.site-footer h4 { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); margin-bottom: 0.9rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; display: grid; gap: 0.55rem; }
.socials { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.08); }
.socials a:hover { background: rgba(255, 255, 255, 0.18); }
.socials img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.footer-legal { padding-top: 1.5rem; font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); line-height: 1.6; }

/* ─── WhatsApp flotante + barra móvil ─── */
.wa-float {
    position: fixed;
    right: 1.25rem; bottom: 1.25rem;
    z-index: 90;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--wa);
    color: #fff;
    display: none;
    place-items: center;
    box-shadow: 0 10px 28px rgba(18, 140, 75, 0.4);
}
.mobile-cta {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 95;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 0.5rem;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -6px 24px rgba(6, 20, 50, 0.12);
    transform: translateY(110%);
    transition: transform 0.3s ease;
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { min-height: 48px; font-size: 0.9rem; padding: 0.5rem; }
@media (min-width: 768px) {
    .wa-float { display: grid; }
    .mobile-cta { display: none; }
    .site-footer { padding-bottom: 2.5rem; }
}

/* ─── Visor de paquete (galería y "qué incluye" comparten el mismo diseño) ─── */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(6, 20, 50, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.modal.is-open { display: flex; }
.modal-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 94vh;
    height: 94dvh;
    background: #fff;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.3);
    animation: sheet-in 0.28s ease;
    overflow: hidden;
}
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 900px) {
    .modal { align-items: center; padding: 2rem; }
    .modal-dialog { max-width: 1040px; height: auto; max-height: min(88vh, 760px); border-radius: var(--radius-lg); animation-name: modal-in; }
    @keyframes modal-in { from { transform: translateY(12px) scale(0.98); opacity: 0; } }
}

.modal-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid #eef2f7;
}
.modal-head h3 { font-size: 1.05rem; color: var(--accent); line-height: 1.2; }
.modal-head small { display: block; font-size: 0.76rem; font-weight: 600; color: var(--text-muted); margin-top: 0.1rem; }
.modal-close {
    width: 42px; height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 0;
    background: var(--surface);
    cursor: pointer;
    display: grid;
    place-items: center;
}
.modal-close:hover { background: var(--accent-light); color: var(--accent); }

.modal-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1rem 1.1rem 1.25rem; }
@media (min-width: 900px) { .modal-body { padding: 1.5rem; } }

.viewer { display: grid; gap: 1rem; }
@media (min-width: 900px) { .viewer { grid-template-columns: 1.15fr 1fr; gap: 1.75rem; align-items: start; } }

.viewer-stage { position: relative; }
.viewer-stage .frame { max-height: 48dvh; margin-inline: auto; }
@media (min-width: 900px) { .viewer-stage { position: sticky; top: 0; } .viewer-stage .frame { max-height: none; } }
.viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: var(--accent);
    box-shadow: 0 6px 18px rgba(6, 20, 50, 0.16);
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 2;
}
.viewer-nav.prev { left: 0.6rem; }
.viewer-nav.next { right: 0.6rem; }
.viewer-count {
    position: absolute;
    left: 0.75rem; top: 0.75rem;
    z-index: 2;
    background: rgba(6, 20, 50, 0.8);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
}

.viewer-info h4 { font-size: 1.1rem; color: var(--text); display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.qty { font-size: 0.7rem; font-weight: 800; color: var(--accent); background: var(--accent-yellow); padding: 0.18rem 0.55rem; border-radius: 100px; }
.viewer-info p { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.3rem; min-height: 2.7em; }

.viewer-summary { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.viewer-summary span { font-size: 0.74rem; font-weight: 700; color: var(--accent); background: var(--accent-light); padding: 0.3rem 0.65rem; border-radius: 100px; }
.viewer-intro { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 0.7rem; }

.viewer-thumbs-title { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); margin: 1.1rem 0 0.6rem; }
.viewer-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
@media (min-width: 900px) { .viewer-thumbs { grid-template-columns: repeat(4, 1fr); } }
.thumb {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    text-align: center;
}
.thumb .frame { display: block; width: 100%; border: 2px solid #eef2f7; border-radius: var(--radius-sm); transition: border-color 0.2s; }
.thumb .frame > img { padding: 12%; }
.thumb span { font-size: 0.66rem; font-weight: 600; color: var(--text-muted); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thumb[aria-current="true"] .frame { border-color: var(--accent); }
.thumb[aria-current="true"] span { color: var(--accent); }
.thumb .qty-mini { position: absolute; right: 4px; top: 4px; z-index: 1; font-size: 0.6rem; font-weight: 800; background: var(--accent-yellow); color: var(--accent); padding: 0.05rem 0.35rem; border-radius: 100px; }

.modal-foot {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.75rem 1.1rem calc(0.75rem + env(safe-area-inset-bottom));
    border-top: 1px solid #eef2f7;
    background: #fff;
}
.modal-foot .btn { min-height: 48px; font-size: 0.88rem; padding: 0.5rem; }

body.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
