/* Mascotalks (the Panda is its example mascot): one narrow, phone-first column; the panda's cyan and hard-hat yellow as the only accents. */
@font-face { font-family: "Lilita One"; src: url("/assets/LilitaOne-Regular.ttf") format("truetype"); font-display: swap; }
:root {
  --bg: #f4f8fa; --surface: #ffffff; --ink: #11181c; --muted: #51616b; --line: #d7e3e9;
  --cyan: #0086b3; --cyan-brand: #00c2ff; --cyan-soft: #e0f6fe; --hat: #f7c51e; --hat-ink: #3d2f00;
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0c1317; --surface: #141f25; --ink: #eef5f8; --muted: #9fb2bd; --line: #233640;
    --cyan: #3fd0ff; --cyan-soft: #0f2f3c; --hat: #ffd23f; --hat-ink: #2a2000; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
main, header, footer { max-width: 640px; margin: 0 auto; }
header { display: flex; align-items: center; gap: 12px; padding-block: 16px; }
header img { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--hat); }
header b { font-family: var(--display); font-weight: 400; font-size: 20px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(34px, 9vw, 52px); }
h1 span, h2 span { color: var(--cyan); }
h2 { font-size: clamp(26px, 6.5vw, 34px); }
section { display: grid; gap: 16px; padding-block: 28px; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; padding-top: 8px; }
p { margin: 0; }
.lead { color: var(--muted); font-size: 18px; }
.cta { display: inline-block; justify-self: start; background: var(--hat); color: var(--hat-ink); font-weight: 800; text-decoration: none;
  padding: 14px 22px; border-radius: 14px; border: 0; font: 800 17px var(--body); cursor: pointer; }
.cta:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
video { width: 100%; max-width: 340px; aspect-ratio: 9 / 16; border-radius: 18px; background: #000; justify-self: center; }
.note { color: var(--muted); font-size: 14px; }
.steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 22px; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; background: var(--cyan-soft); color: var(--cyan); }
.plans { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 8px; align-content: start; }
.plan .price { font-family: var(--display); font-size: 34px; }
.plan .price small { font: 600 15px var(--body); color: var(--muted); }
.plan ul { margin: 0; padding-left: 20px; color: var(--muted); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
summary { font-weight: 700; cursor: pointer; }
details p { margin-top: 8px; color: var(--muted); }
form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
label small { font-weight: 400; color: var(--muted); }
input, textarea { width: 100%; font: 17px var(--body); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--cyan); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
footer { padding-block: 28px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
footer a, main a { color: var(--cyan); }
.doc h2 { font-size: 22px; margin-top: 10px; }
.doc p, .doc li { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
form h2 { font-size: 24px; margin-top: 8px; }
fieldset.opts { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 12px; margin: 0; display: grid; gap: 8px; }
fieldset.opts legend { font-weight: 700; font-size: 15px; padding: 0 4px; }
.check input[type="radio"] { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--cyan); }
.analisis { display: grid; gap: 10px; }
.guion { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; }
.guion b { font-family: var(--display); font-weight: 400; font-size: 20px; }
.guion small { color: var(--muted); }
.avance { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.avance li { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.avance li.hecho { background: var(--cyan-soft); color: var(--cyan); border-color: transparent; }
.avance li.ahora { background: var(--hat); color: var(--hat-ink); border-color: transparent; }
.opciones { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.opcion { position: relative; display: grid; gap: 6px; background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 10px; cursor: pointer; }
.opcion:has(input:checked) { border-color: var(--cyan); }
.opcion input { position: absolute; top: 14px; left: 14px; width: 22px; height: 22px; accent-color: var(--cyan); }
.opcion img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.voz { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.voz .check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.voz audio { width: 100%; }
.videos { display: grid; gap: 14px; }
/* Gift videos: character cards (the pet photo / description fields show only for those characters, no script needed). */
.personajes { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.personajes legend { font-weight: 700; font-size: 15px; padding: 0 0 6px; }
.personaje { position: relative; display: grid; gap: 6px; background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 8px; cursor: pointer; font-weight: 700; font-size: 14px; text-align: center; }
.personaje:has(input:checked) { border-color: var(--cyan); background: var(--cyan-soft); }
.personaje input { position: absolute; top: 12px; left: 12px; width: 20px; height: 20px; accent-color: var(--cyan); }
.personaje img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--cyan-soft); }
.solo-mascota, .solo-medida, .solo-libre { display: none; }
form:has(#p-mascota:checked) .solo-mascota, form:has(#p-medida:checked) .solo-medida { display: grid; gap: 14px; }
form:has(#p-mascota:checked) .solo-libre, form:has(#p-medida:checked) .solo-libre { display: grid; }
select { width: 100%; font: 17px var(--body); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.previa { width: 100%; max-width: 300px; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; justify-self: center; background: var(--cyan-soft); }
.guion-previa { margin: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--hat); border-radius: 12px; font-size: 18px; }
.aviso { padding: 10px 14px; border-radius: 12px; background: var(--cyan-soft); }
.cta.sec { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.caminos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.camino { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; color: inherit; text-decoration: none; }
.camino b { font-family: var(--display); font-weight: 400; font-size: 24px; }
.camino span { color: var(--muted); }
.camino:hover { border-color: var(--cyan); }
/* Gift form: language and voices (the script hides all but the best 4), scheduled delivery. */
.solo-es, .solo-fecha { display: none; }
form:has(select[name="idioma"] option[value="es"]:checked) .solo-es { display: grid; }
form:has(#cuando-fecha:checked) .solo-fecha { display: grid; gap: 14px; }
.voces { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.voces legend { font-weight: 700; font-size: 15px; padding-bottom: 6px; }
.voces-lista { display: grid; gap: 8px; }
.voz-op { position: relative; display: grid; gap: 6px; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; cursor: pointer; font-weight: 400; }
.voz-op span { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.voz-op input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.voz-op:has(input:checked) { border-color: var(--cyan); background: var(--cyan-soft); }
.voz-op:has(input:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 2px; }
.voz-op.sugerida b::after { content: " · recomendada"; color: var(--cyan); font-weight: 700; font-size: 13px; }
.voz-op audio { width: 100%; height: 36px; }
.voz-op[hidden] { display: none; }
.enlace { overflow-wrap: anywhere; font-family: ui-monospace, monospace; font-size: 14px; }

/* ---------- Shared header link + marketing pieces (home, /regalo, /ficha) ---------- */
:root { --rojo: #c9362c; --rojo-soft: #fde9e6; --banda: #e9f3f7; --hat-edge: #c99700; --sombra: 0 18px 40px rgba(17, 24, 28, .16); }
@media (prefers-color-scheme: dark) {
  :root { --rojo: #ff7a6e; --rojo-soft: #3a1c19; --banda: #101a1f; --hat-edge: #a88400; --sombra: 0 18px 40px rgba(0, 0, 0, .5); }
}
header a.marca { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.cta { box-shadow: 0 4px 0 var(--hat-edge); transition: transform .08s, box-shadow .08s; text-align: center; }
.cta:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--hat-edge); }
.cta.sec { box-shadow: none; }
.cta.grande { padding: 16px 26px; font-size: 18px; }
.kicker { justify-self: start; margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--rojo-soft); color: var(--rojo); font-weight: 800; font-size: 14px; }
.kicker.cian { background: var(--cyan-soft); color: var(--cyan); }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sellos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; font-weight: 700; color: var(--muted); }
.sellos li::before { content: "✓ "; color: var(--cyan); font-weight: 900; }

/* A sample video inside a phone frame: plays muted on a loop (the captions are burned in); a tap turns the sound on. */
.telefono { margin: 0; justify-self: center; width: min(76vw, 320px); display: grid; gap: 10px; justify-items: center; position: relative; isolation: isolate; }
.telefono::before { content: ""; position: absolute; inset: 6% -22% 18%; z-index: -1; background: radial-gradient(closest-side, var(--cyan-soft), transparent); }
.pantalla { position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden; background: #000; border: 9px solid #0d1418; box-shadow: var(--sombra); }
.pantalla video { display: block; width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; object-fit: cover; }
.sonido { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); border: 0; border-radius: 999px; padding: 10px 16px; white-space: nowrap;
  font: 800 15px var(--body); background: rgba(255, 255, 255, .94); color: #11181c; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.sonido:focus-visible, .oir:focus-visible, button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.telefono figcaption { font-size: 13px; color: var(--muted); text-align: center; max-width: 30ch; }
.telefono.chico { width: min(40vw, 200px); }
.telefono.chico .pantalla { border-width: 6px; border-radius: 24px; }
.telefono.chico .sonido { padding: 7px 11px; font-size: 13px; bottom: 10px; }

/* ---------- Home ---------- */
.home main, .home header, .home footer { max-width: 1080px; }
.home header { position: sticky; top: 0; z-index: 10; padding-block: 10px; background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); }
.home header nav { display: none; gap: 20px; font-weight: 700; }
.home header nav a { color: var(--ink); text-decoration: none; }
.home header nav a:hover { color: var(--cyan); }
.home header .cta { margin-left: auto; padding: 10px 16px; font-size: 15px; box-shadow: 0 3px 0 var(--hat-edge); }
.home section { border-top: 0; padding-block: 36px; }
.home h2 { font-size: clamp(30px, 7.5vw, 44px); }
.hero { gap: 22px; padding-top: 12px !important; }
.hero-txt { display: grid; gap: 18px; }
.hero h1 { font-size: clamp(40px, 11vw, 66px); }
.hero .lead { font-size: 19px; }
.precio-linea { color: var(--muted); }
.precio-linea b { color: var(--ink); font-family: var(--display); font-weight: 400; font-size: 22px; }
.banda { background: var(--banda); box-shadow: 0 0 0 100vmax var(--banda); clip-path: inset(0 -100vmax); }

.carrusel { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: -16px; padding: 4px 16px 14px; overscroll-behavior-x: contain; scrollbar-width: thin; }
.pj { scroll-snap-align: start; display: grid; gap: 6px; align-content: start; justify-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 8px 8px 12px; text-align: center; color: inherit; text-decoration: none; }
.pj img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--cyan-soft); }
.pj b { font-family: var(--display); font-weight: 400; font-size: 17px; line-height: 1.15; }
.pj small { color: var(--muted); font-size: 13px; line-height: 1.3; }
a.pj:hover { border-color: var(--cyan); }
.oir { border: 1px solid transparent; background: var(--cyan-soft); color: var(--cyan); border-radius: 999px; padding: 6px 12px; font: 800 13px var(--body); cursor: pointer; }
.oir[aria-pressed="true"] { background: var(--cyan); color: var(--bg); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 15px; }

.precio-regalo { display: grid; gap: 12px; justify-items: start; background: var(--surface); border: 2px solid var(--cyan); border-radius: 22px; padding: 22px; }
.precio-regalo .monto { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-family: var(--display); font-size: 52px; line-height: 1; }
.precio-regalo .monto small { font: 600 16px var(--body); color: var(--muted); }
.cuenta { margin: 0; font-weight: 800; color: var(--rojo); }

.beneficios, .garantias { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.beneficios li, .garantias li { display: grid; gap: 4px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.beneficios b, .garantias b { font-size: 17px; }
.beneficios span, .garantias span { color: var(--muted); font-size: 15px; }
.plan { position: relative; }
.plan.destacado { border: 2px solid var(--cyan); }
.insignia { position: absolute; top: -13px; right: 16px; padding: 3px 10px; border-radius: 999px; background: var(--cyan); color: var(--bg); font-size: 13px; font-weight: 800; }
.plan .cta { justify-self: stretch; margin-top: 6px; }
.panda-fila { display: grid; gap: 16px; align-items: center; }
.pasos-fila { display: grid; gap: 22px; }
.faq { display: grid; gap: 10px; }
.cierre { justify-items: center; text-align: center; background: linear-gradient(135deg, #073246, #0086b3); color: #fff; border-radius: 28px; padding: 36px 20px !important; margin-block: 24px; }
.cierre h2 span { color: var(--hat); }
.cierre p { color: #d9f3fc; }
.cierre .cta.sec { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }

/* Phone-only bar with the main action; it slides in once the hero's button is off screen. */
.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .12); transform: translateY(110%); transition: transform .25s; }
.barra.ver { transform: none; }
.barra span { font-size: 14px; color: var(--muted); line-height: 1.3; }
.barra b { color: var(--ink); font-size: 17px; }
.barra .cta { padding: 12px 18px; flex: none; }

.home { padding-bottom: 80px; }
.neg-grid { display: grid; gap: 22px; }
.neg-grid > div { display: grid; gap: 16px; }

@media (min-width: 600px) {
  .beneficios, .garantias { grid-template-columns: 1fr 1fr; }
  .panda-fila { grid-template-columns: 200px 1fr; }
}
@media (min-width: 860px) {
  .home header nav { display: flex; }
  .hero { grid-template-columns: 1.15fr .85fr; align-items: center; column-gap: 48px; padding-block: 40px 56px !important; }
  .neg-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
  .carrusel { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .home .steps { grid-template-columns: repeat(3, 1fr); }
  .pasos-fila { grid-template-columns: 1fr 220px; align-items: center; column-gap: 40px; }
  .pasos-fila .steps { grid-template-columns: 1fr; }
  .garantias { grid-template-columns: repeat(4, 1fr); }
  .faq { max-width: 760px; }
  .barra { display: none; }
  .home { padding-bottom: 0; }
}

/* /regalo and /ficha: a small sample beside the steps. */
.muestra { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
.mini-pasos { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.mini-pasos b { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { .barra, .cta { transition: none; } }

/* Client portal: networks. A form that is only a button has no box around it. */
form.simple { background: none; border: 0; padding: 0; }
.chips small { color: var(--muted); font-weight: 400; }
.mini-link { border: 0; background: none; padding: 0; color: var(--cyan); font: 700 14px var(--body); text-decoration: underline; cursor: pointer; }

/* Home while gift videos are closed (web.mjs sets the body class): gift buttons hide, the business ones show. */
.si-cerrado { display: none !important; }
.regalos-cerrados .si-abierto { display: none !important; }
.regalos-cerrados .si-cerrado { display: block !important; }
.regalos-cerrados a.si-cerrado { display: inline-block !important; }
.home .aviso { justify-self: start; font-weight: 700; }
/* Client calendar: the month at a glance and one date per video. */
.mes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; max-width: 420px; }
.mes li { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.mes li.dia { background: none; border: 0; font-weight: 700; color: var(--muted); aspect-ratio: auto; }
.mes li.pasado { opacity: .45; }
.mes li.con-video { background: var(--hat); color: var(--hat-ink); border-color: transparent; font-weight: 800; }
.cal-fila { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-weight: 400; }
.cal-fila input { width: auto; }
.cal-fila small { display: block; color: var(--muted); }
.plan-op { position: relative; cursor: pointer; }
.plan-op input { position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; accent-color: var(--cyan); }
.plan-op:has(input:checked) { border-color: var(--cyan); background: var(--cyan-soft); }
