/* Mokito — sitio público. Misma identidad que la app («Durazno», doc 09):
   papel crema, tinta ciruela y el coral de la marca como relleno. El coral no
   sirve como texto (2,4:1 sobre el crema): siempre va de fondo y con la tinta encima. */

:root {
  --bg: #fff7f0;
  --surface: #ffffff;
  --ink: #2a1e3b;
  --ink-body: #4a3b57;
  --ink-soft: #6e5f78;
  --border: #eadbd0;
  --accent: #ff7a59;
  --on-accent: #2a1e3b;
  --accent-text: #954c4a;
  --accent-tint: #ffe9df;
  --bubble: rgba(255, 233, 223, 0.6);
  --dot: rgba(255, 122, 89, 0.4);
  --tint-general: #efe6d8;
  --tint-health: #dde5d0;
  --tint-conditions: #eedfb8;
  --tint-daily: #e6d9e3;
  --tint-files: #f0d5c8;
  --shadow: 0 10px 24px rgba(42, 30, 59, 0.1);
  --radius: 24px;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16111d;
    --surface: #221a2b;
    --ink: #f6eee8;
    --ink-body: #d9cee0;
    --ink-soft: #bbaec6;
    --border: #3a3045;
    --accent-text: #ffb39e;
    --accent-tint: #3b2630;
    --bubble: rgba(59, 38, 48, 0.6);
    --shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    --tint-general: #3b3236;
    --tint-health: #38412f;
    --tint-conditions: #4a4127;
    --tint-daily: #42364a;
    --tint-files: #4a3027;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-body);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .brand {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

/* Recorta las burbujas de la portada: sin esto la página se puede correr de lado. */
main { overflow-x: clip; }

.top, main > section, .foot {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* --- Cabecera ------------------------------------------------------------- */

.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}

.brand {
  font-size: 1.9rem;
  font-weight: 800;
  text-decoration: none;
}
.brand .dot { color: var(--accent); }

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

.soon-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Selector de idioma: un botón con el idioma actual que despliega la lista. */
.langs { position: relative; }
.langs summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  cursor: pointer;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover { background: var(--accent-tint); }
.langs summary:focus-visible,
.langs a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.langs svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease;
}
.langs[open] svg { transform: rotate(180deg); }
.langs ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 3;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  list-style: none;
}
.langs a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 11px;
  color: var(--ink-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}
.langs a:hover { color: var(--ink); background: var(--accent-tint); }
.langs a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }

/* --- Portada -------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
  padding-block: 24px 72px;
}

.hero > * { position: relative; z-index: 1; }

.bubble {
  position: absolute;
  z-index: 0 !important;
  border-radius: 50%;
}
.b1 { width: 340px; height: 340px; top: -90px; right: -120px; background: var(--bubble); }
.b2 { width: 22px; height: 22px; top: 70px; left: 46%; background: var(--dot); }
.b3 { width: 40px; height: 40px; bottom: 48px; left: 4%; background: var(--dot); }

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 6.5vw, 3.8rem);
  font-weight: 800;
}

/* El coral como marcador: relleno con la tinta encima. */
h1 mark {
  padding: 0 0.12em;
  border-radius: 0.2em;
  background: var(--accent);
  color: var(--on-accent);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.lead {
  margin: 0 0 30px;
  max-width: 33em;
  font-size: 1.15rem;
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 13rem;
  padding: 11px 22px 11px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  cursor: default;
}
.store-icon { width: 28px; height: 28px; flex: none; }
.store-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-small { font-size: 0.75rem; color: var(--ink-soft); }
.store-big { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }

/* El grupo de mascotas de la portada, con su rótulo encima. */
.hero-trio { position: relative; width: 100%; padding-top: 18px; }
.hero-trio .trio { width: 100%; }
.hero-badge {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

/* --- Funciones ------------------------------------------------------------ */

.features { padding-block: 16px 72px; }
.features h2, .closing h2 {
  margin: 0 0 28px;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.grid li {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.grid h3 { margin: 16px 0 6px; font-size: 1.25rem; }
.grid p { margin: 0; }

.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--tint);
}
/* Clases y no `style=""` en el HTML: la CSP no deja estilos en línea (S-17). */
.icon.tint-general { --tint: var(--tint-general); }
.icon.tint-health { --tint: var(--tint-health); }
.icon.tint-conditions { --tint: var(--tint-conditions); }
.icon.tint-daily { --tint: var(--tint-daily); }
.icon.tint-files { --tint: var(--tint-files); }
.icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Fotografiar en vez de escribir ----------------------------------------- */

.scan {
  display: grid;
  gap: 40px;
  align-items: center;
  margin-bottom: 72px;
  padding: 40px 28px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.scan h2 { margin: 0 0 14px; font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; }
.scan-lead { margin: 0 0 26px; max-width: 30em; font-size: 1.12rem; }

.scan-note {
  margin: 26px 0 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--accent-tint);
  color: var(--ink-body);
}
.scan-note strong { color: var(--ink); }

.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 14px; }
.steps strong { color: var(--ink); }
.num {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--display);
  font-weight: 800;
}

.scan-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.phone {
  position: relative;
  width: 230px;
  height: 400px;
  padding: 16px 14px 70px;
  border: 5px solid var(--ink);
  border-radius: 34px;
  background: var(--accent-tint);
  transform: translateX(-22%) rotate(-4deg);
  box-shadow: var(--shadow);
}
.viewfinder {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  border-radius: 18px;
  background: var(--surface-dim, rgba(42, 30, 59, 0.1));
}
.corner { position: absolute; width: 26px; height: 26px; border: 4px solid var(--accent); }
.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }

.paper {
  position: relative;
  width: 74%;
  padding: 16px 12px;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(42, 30, 59, 0.15);
  transform: rotate(2deg);
}
.paper span { display: block; border-radius: 3px; background: #d9cee0; }
.paper-title { width: 60%; height: 10px; margin-bottom: 14px; background: #2a1e3b !important; }
.line { height: 6px; margin-bottom: 9px; }
.l1 { width: 100%; }
.l2 { width: 86%; }
.l3 { width: 94%; }
.l4 { width: 70%; margin-bottom: 0; }
.stamp {
  width: 44px;
  height: 44px;
  margin: 4px 0 12px auto;
  border-radius: 50%;
  background: transparent !important;
  border: 3px solid var(--accent);
}

.shutter {
  position: absolute;
  bottom: 14px;
  left: 50%;
  width: 46px;
  height: 46px;
  margin-left: -23px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
}

.proposal {
  position: absolute;
  right: 0;
  bottom: 24px;
  width: 250px;
  padding: 20px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
}
.proposal-label { margin: 0; font-size: 0.8rem; opacity: 0.75; }
.proposal-title {
  margin: 2px 0 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
}
.proposal dl { margin: 0 0 16px; }
.proposal dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.proposal dt { opacity: 0.75; font-size: 0.9rem; }
.proposal dd { margin: 0; text-align: right; font-weight: 600; font-size: 0.9rem; }
.confirm {
  display: block;
  padding: 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #2a1e3b;
  text-align: center;
  font-weight: 600;
}

/* El grupo de mascotas, sobre un arco crema que lo separa del fondo de la portada. */
.trio {
  display: grid;
  place-items: end center;
  width: min(820px, 100%);
  margin-inline: auto;
  padding: 28px 24px 0;
  overflow: hidden;
  border: 4px solid #ffffff;
  border-radius: 220px 220px 28px 28px;
  background: var(--accent-tint);
  box-shadow: var(--shadow);
}
.trio img { display: block; width: 100%; height: auto; }

/* --- Cierre y pie --------------------------------------------------------- */

.closing {
  margin-bottom: 64px;
  padding: 44px 28px;
  border-radius: var(--radius);
  background: var(--accent-tint);
  text-align: center;
}
.closing h2 { margin-bottom: 10px; }
.closing p { margin: 0 auto; max-width: 32em; }

.foot {
  padding-block: 24px 40px;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.foot p { margin: 0; }

/* --- Pantallas anchas ----------------------------------------------------- */

@media (min-width: 820px) {
  .hero { grid-template-columns: 1.05fr 1fr; gap: 56px; padding-block: 40px 96px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .scan { grid-template-columns: 1fr 1fr; gap: 48px; padding: 56px 52px; }
}

@media (max-width: 480px) {
  /* Los botones de las tiendas ya dicen «próximamente»: aquí manda el selector. */
  .soon-pill { display: none; }
  .store { flex: 1 1 100%; }
  .b1 { right: -180px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
