/* Layout: el lenguaje del panel Central RF (píldoras, tarjetas de 22 px, turquesa Davinc-e)
   llevado a una web informativa: titular abierto y bloques de texto e imagen alternados. */
:root {
  --fondo: #edf3f4;
  --superficie: #ffffff;
  --superficie-2: #f5f9f9;
  --texto: #1a2b2e;
  --tenue: #5f7275;
  --borde: #dde7e9;
  --marca: #49bbc4;
  --marca-media: #2f9aa3;
  --marca-profunda: #1f5f66;
  --marca-suave: #e3f5f6;
  --activa: #1f5f66;          /* píldora activa y botón principal (como el panel) */
  --activa-texto: #ffffff;
  --menta: #dcf3ea;   --menta-tinta: #2f9a6e;
  --celeste: #e1eefa; --celeste-tinta: #3f86c8;
  --lavanda: #ebe7fa; --lavanda-tinta: #7563c9;
  --durazno: #fdeee2; --durazno-tinta: #c4733a;
  --ok: #15803d; --ok-fondo: #e7f7ee;
  --pendiente: #b45309; --pendiente-fondo: #fff4e2;
  --alerta: #dc2626;
  --dest-1: #cdeff1; --dest-2: #b8e6ea; --dest-3: #d5ede4; --dest-texto: #12454b; --dest-tenue: #3d6f74;
  --dest-velo: rgba(255, 255, 255, .6);
  --dispositivo: #ffffff; --dispositivo-borde: #c9dcdf;
  --sombra-1: 0 1px 2px rgba(16, 40, 44, .06);
  --sombra-2: 0 1px 2px rgba(16, 40, 44, .05), 0 14px 34px -14px rgba(16, 40, 44, .18);
  --sombra-3: 0 4px 8px rgba(16, 40, 44, .06), 0 22px 44px -16px rgba(16, 40, 44, .24);
  /* Modo oscuro "vidrio" del panel: en claro estas capas son sólidas y sin desenfoque */
  --vidrio: var(--superficie);
  --linea-tarjeta: transparent;
  --desenfoque: none;
  --campo: var(--superficie-2);
  --barra-fondo: color-mix(in srgb, var(--fondo) 86%, transparent);
  --fondo-luz: radial-gradient(1100px 600px at 100% -10%, rgba(73, 187, 196, .13), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(117, 99, 201, .06), transparent 60%);
  --radio: 22px;
  --letra: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fondo: #12121b; --superficie: #1c1c27; --superficie-2: #23232f; --texto: #eeedf7; --tenue: #a9a7c0; --borde: #2e2e3c;
    --marca-media: #6fd0d8; --marca-profunda: #9be1e6; --marca-suave: rgba(111, 208, 216, .14);
    --activa: #bfeef1; --activa-texto: #10262a;
    --menta: rgba(111, 214, 170, .14); --menta-tinta: #7fdcb4;
    --celeste: rgba(120, 175, 230, .14); --celeste-tinta: #8cbcec;
    --lavanda: rgba(170, 155, 235, .15); --lavanda-tinta: #b3a6f0;
    --durazno: rgba(240, 170, 120, .14); --durazno-tinta: #f0b48a;
    --ok: #6ee7a0; --ok-fondo: rgba(110, 231, 160, .12); --pendiente: #fbbf6a; --pendiente-fondo: rgba(251, 191, 106, .12); --alerta: #f87171;
    --dest-1: #163c42; --dest-2: #133239; --dest-3: #1a3a33; --dest-texto: #dff6f7; --dest-tenue: #a6d3d6; --dest-velo: rgba(255, 255, 255, .1);
    --dispositivo: #2a2a37; --dispositivo-borde: #3b3b4b;
    --sombra-1: 0 1px 2px rgba(0, 0, 0, .3);
  --superficie: rgba(255, 255, 255, .06); --superficie-2: rgba(255, 255, 255, .05); --borde: rgba(255, 255, 255, .12);
  --sombra-2: inset 0 1px 0 rgba(255, 255, 255, .09), 0 22px 44px -26px rgba(0, 0, 0, .85);
  --sombra-3: inset 0 1px 0 rgba(255, 255, 255, .09), 0 26px 50px -24px rgba(0, 0, 0, .95);
  --vidrio: linear-gradient(180deg, rgba(255, 255, 255, .085) 0%, rgba(255, 255, 255, .035) 100%);
  --linea-tarjeta: rgba(255, 255, 255, .09);
  --desenfoque: blur(18px) saturate(140%);
  --campo: rgba(8, 8, 16, .45);
  --barra-fondo: rgba(18, 18, 27, .55);
  --fondo-luz: radial-gradient(1100px 650px at 50% -8%, rgba(132, 118, 196, .22), transparent 62%), radial-gradient(800px 600px at 100% 105%, rgba(73, 187, 196, .08), transparent 60%), radial-gradient(700px 500px at -5% 60%, rgba(110, 96, 170, .10), transparent 60%), linear-gradient(180deg, #181826 0%, #12121b 45%, #0e0e15 100%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fondo: #12121b; --superficie: #1c1c27; --superficie-2: #23232f; --texto: #eeedf7; --tenue: #a9a7c0; --borde: #2e2e3c;
  --marca-media: #6fd0d8; --marca-profunda: #9be1e6; --marca-suave: rgba(111, 208, 216, .14);
  --activa: #bfeef1; --activa-texto: #10262a;
  --menta: rgba(111, 214, 170, .14); --menta-tinta: #7fdcb4;
  --celeste: rgba(120, 175, 230, .14); --celeste-tinta: #8cbcec;
  --lavanda: rgba(170, 155, 235, .15); --lavanda-tinta: #b3a6f0;
  --durazno: rgba(240, 170, 120, .14); --durazno-tinta: #f0b48a;
  --ok: #6ee7a0; --ok-fondo: rgba(110, 231, 160, .12); --pendiente: #fbbf6a; --pendiente-fondo: rgba(251, 191, 106, .12); --alerta: #f87171;
  --dest-1: #163c42; --dest-2: #133239; --dest-3: #1a3a33; --dest-texto: #dff6f7; --dest-tenue: #a6d3d6; --dest-velo: rgba(255, 255, 255, .1);
  --dispositivo: #2a2a37; --dispositivo-borde: #3b3b4b;
  --sombra-1: 0 1px 2px rgba(0, 0, 0, .3);
  --superficie: rgba(255, 255, 255, .06); --superficie-2: rgba(255, 255, 255, .05); --borde: rgba(255, 255, 255, .12);
  --sombra-2: inset 0 1px 0 rgba(255, 255, 255, .09), 0 22px 44px -26px rgba(0, 0, 0, .85);
  --sombra-3: inset 0 1px 0 rgba(255, 255, 255, .09), 0 26px 50px -24px rgba(0, 0, 0, .95);
  --vidrio: linear-gradient(180deg, rgba(255, 255, 255, .085) 0%, rgba(255, 255, 255, .035) 100%);
  --linea-tarjeta: rgba(255, 255, 255, .09);
  --desenfoque: blur(18px) saturate(140%);
  --campo: rgba(8, 8, 16, .45);
  --barra-fondo: rgba(18, 18, 27, .55);
  --fondo-luz: radial-gradient(1100px 650px at 50% -8%, rgba(132, 118, 196, .22), transparent 62%), radial-gradient(800px 600px at 100% 105%, rgba(73, 187, 196, .08), transparent 60%), radial-gradient(700px 500px at -5% 60%, rgba(110, 96, 170, .10), transparent 60%), linear-gradient(180deg, #181826 0%, #12121b 45%, #0e0e15 100%);
  color-scheme: dark;
}
.logo-oscuro { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-claro { display: none; } :root:not([data-theme="light"]) .logo-oscuro { display: block; } }
:root[data-theme="dark"] .logo-claro { display: none; }
:root[data-theme="dark"] .logo-oscuro { display: block; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 400 15px/1.6 var(--letra); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--fondo); }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
a { color: var(--marca-media); }
:focus-visible { outline: 2px solid var(--marca); outline-offset: 3px; }

.ancho { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* ---------- Componentes del panel ---------- */
.tarjeta { background: var(--superficie); border-radius: var(--radio); box-shadow: var(--sombra-2); min-width: 0; }
.pildora { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--marca-suave); color: var(--marca-profunda); white-space: nowrap; }
.pildora.ok { background: var(--ok-fondo); color: var(--ok); }
.pildora.pendiente { background: var(--pendiente-fondo); color: var(--pendiente); }
.pildora.velo { background: var(--dest-velo); color: var(--dest-texto); }
.pildora .punto { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font: 600 14px/1 var(--letra); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.boton:hover { transform: translateY(-1px); }
.boton.principal { background: var(--activa); color: var(--activa-texto); }
.boton.secundario { background: var(--superficie); color: var(--texto); border-color: var(--borde); }
.acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.tono { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.tono svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t-menta { background: var(--menta); color: var(--menta-tinta); }
.t-celeste { background: var(--celeste); color: var(--celeste-tinta); }
.t-lavanda { background: var(--lavanda); color: var(--lavanda-tinta); }
.t-durazno { background: var(--durazno); color: var(--durazno-tinta); }
.destacada { color: var(--dest-texto); background: radial-gradient(420px 260px at 88% 10%, var(--dest-velo), transparent 60%), linear-gradient(135deg, var(--dest-1) 0%, var(--dest-2) 45%, var(--dest-3) 100%); }
.destacada p { color: var(--dest-tenue); }
.tenue { color: var(--tenue); }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--marca-media); }
.numero { font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* Encabezado: marca + menú en píldoras + acción, como la barra del panel */
.barra { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; padding-block: 14px; background: color-mix(in srgb, var(--fondo) 86%, transparent); backdrop-filter: blur(10px); }
.barra .ancho { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marca { display: flex; align-items: center; padding: 9px 16px; border-radius: 999px; background: var(--superficie); box-shadow: var(--sombra-1); line-height: 0; }
.marca img { height: 22px; width: auto; }
.menu { display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: var(--superficie); box-shadow: var(--sombra-1); overflow-x: auto; scrollbar-width: none; }
.menu a { padding: 9px 16px; border-radius: 999px; color: var(--texto); text-decoration: none; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.menu a:hover { background: var(--superficie-2); }
.menu a.activa { background: var(--activa); color: var(--activa-texto); }
@media (max-width: 860px) { .menu { display: none; } }

/* Ilustración del pulsador */
.dispositivo { width: 100%; max-width: 100%; height: auto; display: block; }
#pulsador .caja { fill: var(--dispositivo); stroke: var(--dispositivo-borde); stroke-width: 1.5; }
#pulsador .boton-sos { fill: var(--alerta); }
#pulsador .aro { fill: none; stroke: var(--marca); stroke-width: 2; opacity: 0; animation: onda 2.6s ease-out infinite; transform-origin: center; transform-box: fill-box; }
#pulsador .aro.b { animation-delay: .85s; } #pulsador .aro.c { animation-delay: 1.7s; }
#pulsador .led { fill: var(--ok); }
.dispositivo .txt { font: 600 13px var(--letra); fill: var(--dest-texto); }
@keyframes onda { 0% { opacity: .8; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.55); } }
.burbuja-wsp { fill: var(--superficie); stroke: var(--dispositivo-borde); }
.topo line { stroke: var(--marca); stroke-opacity: .5; stroke-width: 1; }
.topo rect { fill: var(--superficie); stroke: var(--marca-media); stroke-width: 1.4; }
.topo circle { fill: var(--marca); }

section { padding-block: 22px; }
[id] { scroll-margin-top: 90px; }
.cabecera { display: grid; gap: 8px; margin-bottom: 18px; max-width: 64ch; }
.cabecera h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 750; }

.a-pasos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 22px; }
@media (max-width: 900px) { .a-pasos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .a-pasos { grid-template-columns: 1fr; } }
.paso { display: grid; gap: 6px; align-content: start; }
.numero-paso { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--marca-suave); color: var(--marca-profunda); font-weight: 700; font-size: 14px; }
.paso h3 { font-size: 1rem; font-weight: 700; }
.paso p { font-size: 13.5px; }
.contacto { padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; }
@media (max-width: 820px) { .contacto { grid-template-columns: 1fr; } }
.contacto h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
.canales { display: grid; gap: 10px; }
.canal { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 16px; background: var(--dest-velo); }
.canal b { display: block; font-size: 12px; font-weight: 600; color: var(--dest-tenue); }
.canal .valor { font-weight: 600; word-break: break-all; }
.canal .copiar { border: 0; padding: 8px 12px; border-radius: 999px; background: var(--superficie); color: var(--texto); font: 600 12.5px/1 var(--letra); cursor: pointer; }
.webs { padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.webs-lista { display: flex; flex-wrap: wrap; gap: 8px; }
.webs-lista a { display: inline-flex; flex-direction: column; padding: 10px 16px; border-radius: 16px; background: var(--superficie-2); color: var(--texto); text-decoration: none; }
.webs-lista a small { color: var(--tenue); font-size: 12px; }

/* ---------- Portada y bloques ---------- */
.c-hero { padding-block: clamp(28px, 6vw, 72px) 20px; display: grid; gap: 18px; max-width: 860px; }
.c-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.3rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; }
.c-hero h1 span { color: var(--marca-media); }
.c-hero .bajada { font-size: 1.12rem; max-width: 56ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .pildora { background: var(--superficie); color: var(--texto); box-shadow: var(--sombra-1); padding: 9px 14px; font-weight: 500; }
.chips .pildora i { width: 8px; height: 8px; border-radius: 50%; }
.c-servicios { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 8px; margin-bottom: 34px; }
.c-servicio { padding: 20px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.c-servicio + .c-servicio { border-left: 1px solid var(--borde); }
.c-servicio h3 { font-size: 1.05rem; font-weight: 700; }
.c-servicio p { font-size: 14px; }
@media (max-width: 960px) { .c-servicios { grid-template-columns: 1fr 1fr; } .c-servicio:nth-child(3) { border-left: 0; } .c-servicio:nth-child(n+3) { border-top: 1px solid var(--borde); } }
@media (max-width: 540px) { .c-servicios { grid-template-columns: 1fr; } .c-servicio + .c-servicio { border-left: 0; border-top: 1px solid var(--borde); } }
.c-bloque { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding-block: 34px; border-top: 1px solid var(--borde); }
.c-bloque.invertido > :first-child { order: 2; }
@media (max-width: 860px) { .c-bloque { grid-template-columns: 1fr; } .c-bloque.invertido > :first-child { order: 0; } }
.c-texto { display: grid; gap: 14px; max-width: 60ch; }
.c-texto h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; }
.c-lista { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.c-lista li { display: flex; gap: 10px; align-items: baseline; }
.c-lista li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--marca); flex-shrink: 0; transform: translateY(-2px); }
.c-visual { padding: 24px; }
.c-proceso { display: grid; gap: 0; }
.c-proceso .paso { grid-template-columns: 32px 1fr; column-gap: 16px; padding-bottom: 18px; position: relative; }
.c-proceso .paso:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 2px; width: 2px; background: var(--borde); }
.c-proceso .paso > div { display: grid; gap: 2px; }
.c-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.c-mini .dato .numero { font-size: 1.6rem; color: var(--marca-media); }

footer { padding-block: 30px 10px; }
footer .ancho { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; color: var(--tenue); font-size: 13px; }
footer img { height: 34px; width: auto; }

/* ---------- Tema claro / oscuro (botón en la barra) ---------- */
.lado { display: flex; align-items: center; gap: 8px; }
.boton-tema { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--superficie); color: var(--texto); box-shadow: var(--sombra-1); cursor: pointer; }
.boton-tema svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.boton-tema .sol { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .boton-tema .sol { display: block; } :root:not([data-theme="light"]) .boton-tema .luna { display: none; } }
:root[data-theme="dark"] .boton-tema .sol { display: block; }
:root[data-theme="dark"] .boton-tema .luna { display: none; }
@media (max-width: 480px) { .barra .boton.principal { padding: 11px 14px; } }

/* ---------- Tienda ---------- */
.precio { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.precio small { font-size: .9rem; font-weight: 500; color: var(--tenue); letter-spacing: 0; }
.medios { display: flex; flex-wrap: wrap; gap: 6px; }
.medios span { padding: 5px 10px; border-radius: 8px; background: var(--superficie-2); border: 1px solid var(--borde); font-size: 12px; font-weight: 600; color: var(--tenue); }
.compra { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: start; padding-block: clamp(20px, 4vw, 44px); }
@media (max-width: 900px) { .compra { grid-template-columns: 1fr; } }
.compra .tarjeta { padding: clamp(20px, 3vw, 30px); display: grid; gap: 16px; }
.compra h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.resumen { display: grid; gap: 10px; }
.resumen .fila { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.resumen .total { border-top: 1px solid var(--borde); padding-top: 10px; font-weight: 700; font-size: 1.1rem; }
.migas { font-size: 13px; color: var(--tenue); }
.migas a { color: var(--tenue); }

/* Formularios (como los campos del panel) */
.form { display: grid; gap: 14px; }
.form .dos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .dos { grid-template-columns: 1fr; } }
.campo { display: grid; gap: 6px; min-width: 0; }
.campo label { font-size: 13px; font-weight: 600; }
.campo input, .campo select, .campo textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--borde); background: var(--superficie-2); color: var(--texto); font: 400 15px/1.3 var(--letra); }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--marca); box-shadow: 0 0 0 3px color-mix(in srgb, var(--marca) 25%, transparent); }
.campo small { color: var(--tenue); font-size: 12px; }
.casilla { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.casilla input { margin-top: 3px; accent-color: var(--marca-media); }
.cantidad { display: inline-flex; align-items: center; border: 1px solid var(--borde); border-radius: 999px; background: var(--superficie-2); }
.cantidad button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--texto); font-size: 18px; cursor: pointer; border-radius: 50%; }
.cantidad input { width: 46px; border: 0; background: transparent; text-align: center; font: 600 15px var(--letra); color: var(--texto); }
.boton.ancho-total { width: 100%; padding-block: 15px; font-size: 15px; }
.boton[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.aviso { padding: 12px 14px; border-radius: 14px; font-size: 14px; }
.aviso.error { background: color-mix(in srgb, var(--alerta) 12%, transparent); color: var(--alerta); }
.aviso.ok { background: var(--ok-fondo); color: var(--ok); }
.aviso.info { background: var(--marca-suave); color: var(--marca-profunda); }
.seguro { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--tenue); }
.seguro svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; flex-shrink: 0; }

/* Páginas de texto (términos, privacidad) */
.texto-legal { max-width: 760px; padding: clamp(22px, 4vw, 40px); display: grid; gap: 14px; margin-block: 30px; }
.texto-legal h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; }
.texto-legal h2 { font-size: 1.15rem; font-weight: 700; margin-top: 10px; }
.pie-enlaces { display: flex; flex-wrap: wrap; gap: 14px; }
.pie-enlaces a { color: var(--tenue); }
.campo .cantidad { justify-self: start; }
.campo .cantidad input { width: 46px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; -moz-appearance: textfield; appearance: textfield; }
.campo .cantidad input::-webkit-inner-spin-button, .campo .cantidad input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ==========================================================================
   Animaciones y modo oscuro "vidrio" (como el panel de la Central RF)
   ========================================================================== */
body { background: var(--fondo-luz), var(--fondo); background-attachment: fixed; }
.barra { background: var(--barra-fondo); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }

/* Superficies de vidrio (en claro: blancas, como siempre) */
.tarjeta:not(.destacada), .marca, .menu, .boton-tema {
  background: var(--vidrio);
  border: 1px solid var(--linea-tarjeta);
  backdrop-filter: var(--desenfoque);
  -webkit-backdrop-filter: var(--desenfoque);
}
.destacada { border: 1px solid var(--linea-tarjeta); }
.campo input, .campo select, .campo textarea { background: var(--campo); }

/* Tarjetas que responden al mouse */
.tarjeta { transition: box-shadow 220ms ease, transform 220ms ease, border-color 220ms ease; }
.tarjeta:hover { box-shadow: var(--sombra-3); }
.c-servicio { border-radius: 16px; transition: background 200ms ease, transform 200ms ease; }
.c-servicio:hover { background: var(--superficie-2); transform: translateY(-3px); }
.c-servicio .tono { transition: transform 260ms cubic-bezier(.2, .8, .2, 1); }
.c-servicio:hover .tono { transform: scale(1.08) rotate(-4deg); }
.webs-lista a { transition: transform 200ms ease, box-shadow 200ms ease; }
.webs-lista a:hover { transform: translateY(-2px); box-shadow: var(--sombra-2); }

/* Botones y píldoras: se hunden al presionar */
.boton, .menu a, .boton-tema, .cantidad button, .canal .copiar { transition: background 180ms ease, color 180ms ease, transform 120ms ease, box-shadow 180ms ease; }
.boton:hover { transform: translateY(-1px); box-shadow: var(--sombra-2); }
.boton:active, .menu a:active, .cantidad button:active, .canal .copiar:active { transform: scale(.97); }
.boton-tema { transition: background 180ms ease, transform 200ms ease; }
.boton-tema:hover { transform: rotate(-18deg) scale(1.06); }
.cantidad button:hover { background: var(--superficie); }

/* Punto de estado que late (como el pulso del panel) */
.pildora .punto { position: relative; }
.pildora .punto::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: expandir-pulso 1.8s ease-out infinite; }
@keyframes expandir-pulso { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3.2); opacity: 0; } }

/* Entradas: la portada y las tarjetas de compra aparecen al cargar */
.c-hero > *, .compra > .tarjeta, .texto-legal { animation: aparecer-ingreso 520ms cubic-bezier(.2, .8, .2, 1) both; }
.c-hero > :nth-child(2) { animation-delay: 60ms; }
.c-hero > :nth-child(3) { animation-delay: 120ms; }
.c-hero > :nth-child(4) { animation-delay: 180ms; }
.compra > .tarjeta:nth-child(2) { animation-delay: 90ms; }
@keyframes aparecer-ingreso { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* Secciones que aparecen al bajar (sitio.js marca solo las que están fuera de la vista;
   sin JavaScript todo queda visible) */
.revelar { opacity: 0; transform: translateY(16px); }
.revelar.visto { opacity: 1; transform: none; transition: opacity 600ms cubic-bezier(.2, .8, .2, 1), transform 600ms cubic-bezier(.2, .8, .2, 1); }

/* Pasos que se encienden uno tras otro */
.c-proceso .numero-paso { transition: background 300ms ease, color 300ms ease, transform 300ms ease; }
.c-proceso .paso:hover .numero-paso { background: var(--marca); color: #ffffff; transform: scale(1.08); }

/* Rueda de carga del botón de pago */
.boton.cargando::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* Cambio de tema "líquido": el tema nuevo entra recortado por la mancha (sitio.js) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
@media (prefers-reduced-motion: reduce) { .revelar { opacity: 1; transform: none; } }

/* Menú con burbuja que se desliza hasta la sección activa (sitio.js). Sin JavaScript, la
   píldora activa se pinta sola como siempre. */
.menu { position: relative; }
.menu .burbuja { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--activa); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--activa) 70%, transparent); pointer-events: none; opacity: 0;
  transition: left 460ms cubic-bezier(.3, 1.25, .5, 1), width 460ms cubic-bezier(.3, 1.25, .5, 1), opacity 200ms ease; }
.menu .burbuja.lista { opacity: 1; }
.menu.con-burbuja a { position: relative; z-index: 1; transition: color 260ms ease, transform 120ms ease; }
.menu.con-burbuja a.activa { background: transparent; color: var(--activa-texto); }
.menu.con-burbuja a:not(.activa):hover { background: color-mix(in srgb, var(--superficie-2) 80%, transparent); }

/* ---------- Pulsador: foto, cómo funciona, mensaje, detalles y preguntas ---------- */
.foto-producto { margin: 0; background: #ffffff; border-radius: 18px; display: grid; place-items: center; padding: 18px; border: 1px solid var(--linea-tarjeta); }
.foto-producto img { width: auto; max-width: 100%; max-height: 360px; height: auto; display: block; transition: transform 400ms cubic-bezier(.2, .8, .2, 1); }
.foto-producto:hover img { transform: scale(1.04) rotate(-2deg); }
.pasos-pulsador { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pasos-pulsador li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; }
.pasos-pulsador h3 { font-size: 1rem; font-weight: 700; }
.pasos-pulsador p { font-size: 14px; }
.whatsapp { margin: 0; display: grid; gap: 10px; }
.burbuja-chat { position: relative; justify-self: start; max-width: 340px; padding: 10px 14px 22px; border-radius: 4px 16px 16px 16px; background: #ffffff; color: #111b21; font-size: 14px; line-height: 1.45; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); display: grid; gap: 8px; }
.burbuja-chat .hora { position: absolute; right: 10px; bottom: 5px; font-size: 11px; color: #667781; }
.whatsapp-fondo { padding: 16px; border-radius: 18px; background: #e7ded4; }
:root[data-theme="dark"] .whatsapp-fondo { background: #0b141a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .whatsapp-fondo { background: #0b141a; } :root:not([data-theme="light"]) .burbuja-chat { background: #202c33; color: #e9edef; } }
:root[data-theme="dark"] .burbuja-chat { background: #202c33; color: #e9edef; }
.detalles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .detalles { grid-template-columns: 1fr; } }
.detalles h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.lista-si, .lista-requisito { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 14.5px; }
.lista-si li, .lista-requisito li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.lista-si li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.lista-requisito li::before { content: "!"; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--pendiente-fondo); color: var(--pendiente); margin-top: 2px; }
.preguntas { display: grid; gap: 8px; }
.preguntas details { border-radius: 14px; background: var(--superficie-2); border: 1px solid var(--borde); padding: 0 16px; }
.preguntas summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; font-weight: 500; font-size: 20px; line-height: 1; color: var(--marca-media); transition: transform 220ms ease; }
.preguntas details[open] summary::after { transform: rotate(45deg); }
.preguntas details p { padding-bottom: 14px; color: var(--tenue); font-size: 14.5px; }
.preguntas details[open] p { animation: desplegar 260ms cubic-bezier(.2, .8, .2, 1); }
@keyframes desplegar { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.pildora.marca-sm { background: var(--marca-suave); color: var(--marca-profunda); }
.seccion-producto { display: grid; gap: 20px; padding: clamp(20px, 3vw, 30px); margin-bottom: 20px; }
.seccion-producto > h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 750; }
.fila-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .fila-dos { grid-template-columns: 1fr; } }
/* Ítems con negritas: bloque normal y la marca a la izquierda (el grid partía el texto) */
.lista-si li, .lista-requisito li { display: block; position: relative; padding-left: 28px; }
.lista-si li::before, .lista-requisito li::before { position: absolute; left: 0; top: 1px; }

/* Tienda: botón aparte con carrito, junto al tema (siempre visible, también en celular) */
.boton-tienda { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 13px; border-radius: 999px; text-decoration: none; font: 600 14px/1 var(--letra); color: var(--marca-profunda); background: var(--marca-suave); border: 1px solid color-mix(in srgb, var(--marca) 35%, transparent); transition: background 180ms ease, color 180ms ease, transform 120ms ease, box-shadow 180ms ease; }
.boton-tienda svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform 300ms cubic-bezier(.3, 1.3, .5, 1); }
.boton-tienda:hover { transform: translateY(-1px); box-shadow: var(--sombra-2); }
.boton-tienda:hover svg { transform: translateX(2px) rotate(-8deg); }
.boton-tienda:active { transform: scale(.97); }
.boton-tienda.activa { background: var(--activa); color: var(--activa-texto); border-color: transparent; }
@media (max-width: 560px) { .barra .boton.principal { display: none; } }
@media (max-width: 380px) { .boton-tienda span { display: none; } .boton-tienda { padding: 0 12px; } }

/* Servicios: 6 tarjetas (3 × 2) */
.c-servicios { grid-template-columns: repeat(3, 1fr); gap: 4px; }
.c-servicio + .c-servicio, .c-servicio:nth-child(n) { border: 0; }
@media (max-width: 960px) { .c-servicios { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .c-servicios { grid-template-columns: 1fr; } }

/* Esquema IoT */
.flujo-iot { width: 100%; height: auto; display: block; }
.flujo-iot .nodo rect { fill: var(--superficie-2); stroke: var(--borde); stroke-width: 1.2; }
.flujo-iot .nodo.central rect { fill: var(--marca-suave); stroke: var(--marca); }
.flujo-iot .nodo.aviso rect { fill: var(--ok-fondo); stroke: color-mix(in srgb, var(--ok) 45%, transparent); }
.flujo-iot text { font: 600 12.5px var(--letra); fill: var(--texto); text-anchor: middle; }
.flujo-iot text.sub { font-weight: 400; font-size: 10.5px; fill: var(--tenue); }
.flujo-iot .linea { fill: none; stroke: var(--marca); stroke-width: 1.6; stroke-dasharray: 4 5; opacity: .7; }
.flujo-iot .dato { fill: var(--marca); }
@media (prefers-reduced-motion: reduce) { .flujo-iot .dato { display: none; } }

/* ---------- Tienda: catálogo y video ---------- */
.catalogo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 20px; }
@media (max-width: 960px) { .catalogo { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .catalogo { grid-template-columns: 1fr; } }
.producto { display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.producto:hover { transform: translateY(-4px); }
.producto-foto { display: block; background: #eef6f6; }
.producto-foto img { display: block; width: 100%; height: auto; transition: transform 500ms cubic-bezier(.2, .8, .2, 1); }
.producto:hover .producto-foto img { transform: scale(1.04); }
.producto-cuerpo { padding: 18px 20px 20px; display: grid; gap: 6px; align-content: start; }
.producto-cuerpo h2 { font-size: 1.25rem; font-weight: 750; }
.producto-pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.producto-pie .precio { font-size: 1.6rem; }
.foto-producto img { max-height: 520px; border-radius: 12px; }
.foto-producto { padding: 0; overflow: hidden; }
.video-producto video { width: 100%; max-width: 340px; height: auto; border-radius: 22px; background: #000; justify-self: center; box-shadow: var(--sombra-2); }
.foto-producto { background: transparent; border: 0; }
.foto-producto img { width: 100%; max-height: none; border-radius: 16px; }
