/* Catálogo de sistemas — manual de marca OkariK Perú
   Tipografías: Asap Condensed (títulos) + Source Sans 3 (texto) */

:root {
    --blue: #2441a8;
    --blue-2: #3358c8;
    --navy: #1d2550;
    --teal: #1b5c6e;
    --teal-dark: #123f4c;
    --red: #e1352c;
    --yellow: #ffc857;
    --orange: #ff8a3d;

    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f1f3f9;
    --line: #dfe5f2;
    --ink: #1d2550;
    --muted: #5a6386;
    --accent: var(--blue);
    --accent-ink: #ffffff;

    --radius-card: 2rem;
    --radius: 1.4rem;
    --shadow: 0 18px 40px -22px rgba(29, 37, 80, .35);
    --header-h: 4.75rem;
    --font-head: "Asap Condensed", "Arial Narrow", sans-serif;
    --font-body: "Source Sans 3", system-ui, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0c1129;
        --surface: #111834;
        --surface-2: #1a2347;
        --line: #26305c;
        --ink: #e7ebfa;
        --muted: #a3acd0;
        --accent: #8ea8ff;
        --accent-ink: #0c1129;
        --shadow: 0 18px 40px -22px rgba(0, 0, 0, .7);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #0c1129;
    --surface: #111834;
    --surface-2: #1a2347;
    --line: #26305c;
    --ink: #e7ebfa;
    --muted: #a3acd0;
    --accent: #8ea8ff;
    --accent-ink: #0c1129;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, .7);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; margin: 0 0 .5rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.ico { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font: 700 1rem/1 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--red); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--yellow); }
.btn-sm { padding: .6rem 1.15rem; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    height: var(--header-h);
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand-logo { height: 2.6rem; width: auto; }
.logo-for-dark { display: none; }
:root[data-theme="dark"] .logo-for-light { display: none; }
:root[data-theme="dark"] .logo-for-dark { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo-for-light { display: none; }
    :root:not([data-theme="light"]) .logo-for-dark { display: block; }
}
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav > a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav > a:not(.btn):hover { color: var(--red); }
.theme-toggle {
    width: 2.5rem; height: 2.5rem; border-radius: 50%;
    border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
    display: grid; place-items: center; cursor: pointer;
}
.theme-toggle .when-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .when-dark { display: contents; }
:root[data-theme="dark"] .theme-toggle .when-light { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .when-dark { display: contents; }
    :root:not([data-theme="light"]) .theme-toggle .when-light { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: var(--navy);
    color: #fff;
    padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.hero-inner { position: relative; z-index: 2; max-width: 1200px; }
.eyebrow {
    display: inline-block;
    padding: .35rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: 1.2rem;
}
.hero-title { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 800; max-width: 14ch; text-transform: uppercase; }
.hl { color: var(--yellow); }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 40rem; color: #cfd6e8; margin: 1.2rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero .btn-primary { background: var(--red); color: #fff; }
.hero .btn-primary:hover { background: #fff; color: var(--navy); }
.hero .btn-ghost { color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hero-stats { list-style: none; padding: 0; margin: 3rem 0 0; display: flex; flex-wrap: wrap; gap: 1rem 3rem; }
.hero-stats strong { display: block; font: 800 2.2rem/1 var(--font-head); color: #fff; }
.hero-stats span { color: #b8c2da; font-size: .95rem; }

.hero-shapes .shape { position: absolute; border-radius: 50%; z-index: 1; }
.shape.s1 { width: 30rem; height: 30rem; right: -8rem; top: -10rem; background: var(--blue-2); opacity: .55; }
.shape.s2 { width: 16rem; height: 16rem; right: 12%; bottom: -6rem; background: var(--red); opacity: .85; }
.shape.s3 { width: 7rem; height: 7rem; right: 30%; top: 18%; background: var(--yellow); }
@media (max-width: 760px) {
    .shape.s1 { width: 18rem; height: 18rem; }
    .shape.s2 { width: 9rem; height: 9rem; right: -2rem; }
    .shape.s3 { display: none; }
}

/* ---------- Catálogo como landing ---------- */
.catalog-hero {
    position: relative;
    background: var(--surface-2);
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.catalog-head { margin-bottom: 1.8rem; }
.catalog-head .eyebrow { background: var(--accent); color: var(--accent-ink); }
.catalog-title { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; text-transform: uppercase; }
.catalog-title .hl { color: var(--red); }
.catalog-head p { color: var(--muted); max-width: 40rem; margin: 0; font-size: 1.1rem; }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--surface-2); }
.section-head { margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); margin: 0; }
.title { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
.title-sm { font-size: 1.7rem; font-weight: 700; margin-top: 2rem; }
.title-sm:first-child { margin-top: 0; }

/* Colores de marca por sistema */
.c-blue   { --c: var(--blue-2);  --c-ink: #fff; }
.c-navy   { --c: var(--navy);    --c-ink: #fff; }
.c-teal   { --c: var(--teal);    --c-ink: #fff; }
.c-red    { --c: var(--red);     --c-ink: #fff; }
.c-yellow { --c: var(--yellow);  --c-ink: var(--navy); }
.c-orange { --c: var(--orange);  --c-ink: var(--navy); }
/* En modo oscuro el azul marino se pierde con el fondo */
:root[data-theme="dark"] .c-navy { --c: #33407e; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .c-navy { --c: #33407e; }
}

/* ---------- Destacados ---------- */
.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.featured-card {
    display: flex; flex-direction: column;
    background: var(--c); color: var(--c-ink);
    border-radius: var(--radius-card);
    padding: 2rem;
    text-decoration: none;
    min-height: 18rem;
    transition: transform .25s, box-shadow .25s;
}
.featured-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.featured-ico {
    width: 3.4rem; height: 3.4rem; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .2);
    margin-bottom: auto;
}
.featured-ico .ico { width: 1.6rem; height: 1.6rem; }
.featured-card h3 { font-size: 1.75rem; margin-top: 1.5rem; }
.featured-card p { opacity: .88; font-size: .98rem; }
.featured-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; margin-top: auto; }
.featured-card:hover .featured-link .ico { transform: translateX(4px); }
.featured-link .ico { transition: transform .2s; }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.search {
    display: flex; align-items: center; gap: .7rem;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 999px;
    padding: .2rem 1.3rem;
    color: var(--muted);
    max-width: 34rem;
    transition: border-color .2s;
}
.search:focus-within { border-color: var(--accent); }
.search input {
    flex: 1; min-width: 0;
    border: 0; background: transparent; outline: none;
    font: inherit; color: var(--ink);
    padding: .7rem 0;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
    border: 1.5px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    padding: .5rem 1.05rem;
    border-radius: 999px;
    font: 600 .92rem var(--font-body);
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--accent); }
.chip.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- Tarjetas ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.4rem; }
.card {
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-top {
    display: flex; align-items: center; justify-content: space-between; gap: .6rem;
    background: var(--c); color: var(--c-ink);
    padding: 1.4rem 1.6rem;
}
.card-ico {
    width: 3rem; height: 3rem; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .22);
}
.card-ico .ico { width: 1.45rem; height: 1.45rem; }
.tag {
    font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: .3rem .75rem; border-radius: 999px;
    background: rgba(255, 255, 255, .22);
}
.card-body { padding: 1.5rem 1.6rem .5rem; flex: 1; }
.card-body h3 { font-size: 1.55rem; }
.card-body p { color: var(--muted); font-size: .98rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.checks li { display: flex; align-items: flex-start; gap: .55rem; font-size: .95rem; font-weight: 500; }
.checks .ico { color: var(--red); margin-top: .15em; }
.card-foot {
    display: flex; align-items: center; justify-content: space-between; gap: .8rem;
    padding: 1.2rem 1.6rem 1.5rem;
}
.price { font: 700 1.05rem var(--font-head); color: var(--accent); }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }

/* ---------- CTA ---------- */
.cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
    background: var(--red); color: #fff;
    border-radius: var(--radius-card);
    padding: clamp(2rem, 5vw, 3.5rem);
}
.cta p { margin: 0; opacity: .92; font-size: 1.1rem; }

/* ---------- Detalle ---------- */
.detail-hero { background: var(--c); color: var(--c-ink); padding: 2.5rem 0 3.5rem; }
.back { display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; font-weight: 600; opacity: .85; margin-bottom: 2rem; }
.back:hover { opacity: 1; }
.detail-head { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.detail-ico {
    width: 6rem; height: 6rem; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .2);
}
.detail-ico .ico { width: 2.8rem; height: 2.8rem; }
.detail-title { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; margin-top: .7rem; }
.detail-lead { font-size: 1.2rem; max-width: 42rem; opacity: .92; margin: 0; }
.tag-light { display: inline-block; }

.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 3rem; align-items: start; }
.detail-main p { font-size: 1.1rem; }
.detail-cover {
    display: block; width: 100%; padding: 0; margin: 0 0 2.5rem;
    border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden;
    background: var(--surface-2); cursor: zoom-in; box-shadow: var(--shadow);
}
.detail-cover img { width: 100%; max-height: 520px; object-fit: cover; object-position: top; }

/* Galería de capturas */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; }
.gallery-item {
    position: relative; padding: 0; border: 1px solid var(--line); border-radius: 1.1rem;
    overflow: hidden; cursor: zoom-in; background: var(--surface-2); aspect-ratio: 16 / 10;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item span {
    position: absolute; inset: auto 0 0 0; padding: 1.4rem .8rem .5rem;
    font-size: .85rem; font-weight: 600; color: #fff; text-align: left;
    background: linear-gradient(transparent, rgba(12, 17, 41, .85));
}

/* Videos */
.videos { display: grid; gap: 1.4rem; }
.video { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 1.4rem; overflow: hidden; background: #000; }
.video-frame video, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { font-weight: 600; margin-top: .6rem; }

/* Documentos descargables */
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.doc {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding: .9rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 1.1rem;
}
.doc-ico {
    width: 3.2rem; height: 3.2rem; border-radius: .9rem; flex-shrink: 0;
    display: grid; place-items: center; align-content: center; gap: .05rem;
    background: color-mix(in srgb, var(--blue-2) 14%, transparent); color: var(--accent);
}
.doc-ico small { font-size: .62rem; font-weight: 800; letter-spacing: .04em; }
.doc-pdf { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.doc-info { flex: 1; min-width: 10rem; display: grid; }
.doc-info strong { font-weight: 700; }
.doc-info small { color: var(--muted); }
.doc-actions { display: flex; gap: .5rem; }

.quick-links { display: grid; gap: .2rem; padding: .3rem 0 .6rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-links a { display: flex; align-items: center; gap: .55rem; padding: .45rem 0; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.quick-links a:hover { color: var(--red); }
.quick-links .ico { color: var(--accent); }

/* Visor de capturas */
.lightbox {
    position: fixed; inset: 0; z-index: 100;
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
    padding: 1rem; background: rgba(8, 11, 28, .94);
}
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: .8rem; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); border-radius: 1rem; }
.lightbox figcaption { color: #cfd6e8; font-weight: 600; }
.lb-close, .lb-nav {
    width: 3rem; height: 3rem; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff;
}
.lb-close:hover, .lb-nav:hover { background: var(--red); }
.lb-close { position: absolute; top: 1rem; right: 1rem; }
.lightbox.is-single .lb-nav { visibility: hidden; }
@media (max-width: 640px) {
    .lightbox { grid-template-columns: 1fr; }
    .lb-nav { position: absolute; bottom: 1rem; }
    .lb-prev { left: calc(50% - 3.5rem); }
    .lb-next { right: calc(50% - 3.5rem); }
}

/* Recursos en la tarjeta del catálogo */
.card-shot { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c); border-bottom: 1px solid var(--line); }
.card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .35s; }
.card:hover .card-shot img { transform: scale(1.03); }
.card-res { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.card-res span {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .8rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px;
    background: var(--surface-2); color: var(--muted);
}
.card-res .ico { width: 1rem; height: 1rem; color: var(--accent); }
.checks-lg li { font-size: 1.08rem; padding: .85rem 1.1rem; background: var(--surface-2); border-radius: 1rem; }
.detail-side { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.price-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: var(--shadow);
    display: grid; gap: .9rem;
}
.price-label { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: .82rem; letter-spacing: .08em; }
.price-big { font: 800 2rem/1.1 var(--font-head); color: var(--ink); }
.mini { list-style: none; padding: 0; margin: .3rem 0 .6rem; display: grid; gap: .4rem; font-size: .95rem; }
.mini li { display: flex; gap: .5rem; align-items: center; }
.mini .ico { color: var(--teal); }
:root[data-theme="dark"] .mini .ico { color: #5bbcbf; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-dark); color: #cfd6e8; padding: 3.5rem 0 2.5rem; }
.footer-inner { display: grid; gap: .6rem; justify-items: start; }
.footer-logo { height: 2.6rem; width: auto; margin-bottom: .5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--yellow); }
.site-footer small { opacity: .7; margin-top: 1rem; }

.wa-float {
    position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60;
    width: 3.6rem; height: 3.6rem; border-radius: 50%;
    display: grid; place-items: center;
    background: #25d366; color: #fff;
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, .45);
    transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .ico { width: 1.8rem; height: 1.8rem; }

/* ---------- Utilidades móviles ---------- */
.no-scroll { overflow: hidden; }
.result-count { color: var(--muted); font-size: .92rem; font-weight: 600; margin: -.8rem 0 1.2rem; }
.icon-round {
    width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center; background: var(--surface-2); color: var(--ink);
}
.mobile-bar, .sheet { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    .detail-grid { grid-template-columns: 1fr 300px; gap: 2rem; }
}
@media (max-width: 900px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-side { position: static; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
}

/* ---------- Móvil: barra inferior y ajustes ---------- */
@media (max-width: 760px) {
    :root { --header-h: 3.75rem; --bar-h: 4.25rem; }
    body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
    .container { width: calc(100% - 2rem); }
    .hide-mobile { display: none !important; }
    .wa-float { display: none; }

    .site-header { padding-top: env(safe-area-inset-top); height: calc(var(--header-h) + env(safe-area-inset-top)); }
    .brand-logo { height: 2rem; }
    .theme-toggle { width: 2.4rem; height: 2.4rem; }

    /* Encabezado del catálogo más compacto */
    .catalog-hero { padding: 1.6rem 0 2.5rem; }
    .catalog-head { margin-bottom: 1.2rem; }
    .catalog-head .eyebrow { font-size: .72rem; margin-bottom: .7rem; }
    .catalog-title { font-size: clamp(2rem, 9vw, 2.6rem); }
    .catalog-head p { font-size: 1rem; }

    /* Chips en una sola fila con desplazamiento horizontal */
    .toolbar { gap: .8rem; margin-bottom: 1.6rem; }
    .search { max-width: none; padding: .1rem 1.1rem; }
    .search input { padding: .8rem 0; font-size: 16px; } /* 16px evita el zoom automático en iPhone */
    .chips {
        flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity;
        margin-inline: -1rem; padding: .1rem 1rem .4rem;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
        mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 1.5rem), transparent);
    }
    .chips::-webkit-scrollbar { display: none; }
    .chip { flex-shrink: 0; scroll-snap-align: start; padding: .55rem 1rem; }
    .result-count { margin: -.6rem 0 1rem; }

    /* Tarjetas */
    .grid { grid-template-columns: 1fr; gap: 1rem; }
    .card { border-radius: 1.5rem; }
    .card:hover { transform: none; }
    .card-top { padding: 1rem 1.2rem; }
    .card-ico { width: 2.6rem; height: 2.6rem; }
    .card-body { padding: 1.1rem 1.2rem .3rem; }
    .card-body h3 { font-size: 1.4rem; }
    .card-foot { padding: 1rem 1.2rem 1.2rem; }
    .card-foot .btn { padding: .7rem 1.3rem; }

    .section { padding: 2.5rem 0; }
    .cta { flex-direction: column; align-items: flex-start; border-radius: 1.5rem; padding: 1.8rem 1.4rem; }
    .cta .btn { width: 100%; }
    .featured-grid { grid-template-columns: 1fr; }

    /* Detalle del sistema */
    .detail-hero { padding: 1.4rem 0 2rem; }
    .back { margin-bottom: 1.2rem; font-size: .95rem; }
    .detail-head { gap: 1rem; align-items: flex-start; }
    .detail-ico { width: 3.6rem; height: 3.6rem; }
    .detail-ico .ico { width: 1.8rem; height: 1.8rem; }
    .detail-title { font-size: clamp(1.9rem, 8vw, 2.4rem); }
    .detail-lead { font-size: 1.02rem; }
    .detail-main p { font-size: 1.02rem; }
    .detail-cover { border-radius: 1.2rem; margin-bottom: 1.8rem; }
    .detail-cover img { max-height: 280px; }
    .checks-lg li { font-size: 1rem; padding: .75rem .9rem; }
    .price-box { padding: 1.4rem; border-radius: 1.5rem; box-shadow: none; }

    /* Galería deslizable */
    .gallery {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .7rem;
        margin-inline: -1rem; padding: 0 1rem .5rem; scrollbar-width: none;
    }
    .gallery::-webkit-scrollbar { display: none; }
    .gallery-item { flex: 0 0 80%; scroll-snap-align: center; }
    .video-frame { border-radius: 1rem; }

    .doc { padding: .8rem; gap: .8rem; }
    .doc-ico { width: 2.8rem; height: 2.8rem; }
    .doc-actions { width: 100%; }
    .doc-actions .btn { flex: 1; }

    .site-footer { padding: 2.5rem 0 2rem; }
    .footer-links { gap: .6rem 1.2rem; }

    /* Barra inferior */
    .mobile-bar {
        display: flex; align-items: center;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
        min-height: var(--bar-h);
        padding: .4rem .6rem calc(.4rem + env(safe-area-inset-bottom));
        background: color-mix(in srgb, var(--surface) 92%, transparent);
        backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--line);
        box-shadow: 0 -10px 30px -18px rgba(29, 37, 80, .35);
    }
    .mobile-tabs { justify-content: space-around; }
    .mb-tab {
        position: relative; flex: 1;
        display: flex; flex-direction: column; align-items: center; gap: .15rem;
        padding: .35rem 0; border: 0; background: none; cursor: pointer;
        color: var(--muted); text-decoration: none;
        font: 600 .72rem var(--font-body);
        -webkit-tap-highlight-color: transparent;
    }
    .mb-tab .ico { width: 1.45rem; height: 1.45rem; transition: transform .15s; }
    .mb-tab:active .ico { transform: scale(.88); }
    .mb-tab.is-active { color: var(--accent); }
    .mb-wa { color: #1fae55; }
    .mb-dot { position: absolute; top: .25rem; left: calc(50% + .55rem); width: .55rem; height: .55rem; border-radius: 50%; background: var(--red); }

    .mobile-cta { gap: .6rem; }
    .mb-icon {
        width: 2.9rem; height: 2.9rem; flex-shrink: 0; border-radius: 50%;
        display: grid; place-items: center;
        background: var(--surface-2); color: var(--ink); text-decoration: none;
    }
    .mb-price { flex: 1; min-width: 0; display: grid; line-height: 1.15; }
    .mb-price small { color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mb-price strong { font: 800 1.05rem var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mb-cta { padding: .8rem 1.2rem; flex-shrink: 0; }
    .mb-cta:hover { transform: none; }

    /* Panel inferior (bottom sheet) */
    .sheet { display: block; position: fixed; inset: 0; z-index: 90; }
    .sheet[hidden] { display: none; }
    .sheet-backdrop { position: absolute; inset: 0; background: rgba(8, 11, 28, .5); opacity: 0; transition: opacity .25s; }
    .sheet-panel {
        position: absolute; left: 0; right: 0; bottom: 0;
        max-height: 80vh; overflow-y: auto;
        background: var(--surface); border-radius: 1.6rem 1.6rem 0 0;
        padding: .6rem 1rem calc(1rem + env(safe-area-inset-bottom));
        transform: translateY(100%); transition: transform .25s ease-out;
    }
    .sheet.is-open .sheet-backdrop { opacity: 1; }
    .sheet.is-open .sheet-panel { transform: none; }
    .sheet-handle { display: block; width: 2.6rem; height: .3rem; border-radius: 999px; background: var(--line); margin: 0 auto .6rem; }
    .sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
    .sheet-head h2 { font-size: 1.4rem; margin: 0; }
    .sheet-list { display: grid; gap: .35rem; }
    .sheet-opt {
        text-align: left; padding: .9rem 1rem; border-radius: 1rem;
        border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
        font: 600 1rem var(--font-body); cursor: pointer;
    }
    .sheet-opt.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent); }

    .lightbox { padding: 3.5rem .5rem 5rem; }
    .lightbox img { max-height: calc(100vh - 10rem); border-radius: .6rem; }
}

@media (max-width: 380px) {
    .mb-price small { display: none; }
    .mb-cta { padding: .75rem 1rem; }
    .card-foot { flex-wrap: wrap; }
    .card-foot .btn { width: 100%; }
}

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