/* Iter — estilos compartidos (index, support, privacy)
   Cuero Coñac Premium de fondo + paneles de cuerina marfil con costura. */
:root {
  /* Coñac (fondo) */
  --base: #5A3320;
  --thread: #E8CC97;
  --on-leather: #F1E3C4;
  --muted: #C9AE82;
  /* Marfil (paneles) */
  --ivory-top: #E6D8BF;
  --ivory-bottom: #C7B58E;
  --ivory-thread: #8A6A3E;
  --ink: #3A2A1B;
  --ink-muted: #6a5539;
  /* Botones: marrón oscuro liso */
  --button: #2E1B0D;
  --button-hi: #3d2514;
}
* { box-sizing: border-box; }
html { background: var(--base); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; position: relative;
  color: var(--on-leather);
  font-family: "Avenir Next", "Avenir", "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}
/* Cuero premium: mismo mosaico que la app (220 pt), con grano y viñeta del tema */
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before { background: url("leather.png") 0 0 / 220px 220px repeat; opacity: .85; }
body::after { background: radial-gradient(ellipse at 50% 35%, rgba(0,0,0,0) 38%, rgba(0,0,0,.55) 125%); }

/* Idiomas */
html[data-lang="es"] [lang="en"], html[data-lang="en"] [lang="es"] { display: none !important; }

a { color: inherit; }
.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; padding: 28px 0 64px; }
.wrap.narrow { width: min(760px, 100% - 32px); }

/* Barra superior */
nav.top {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(24px, 3vw); padding-top: max(14px, env(safe-area-inset-top));
  background: rgba(40, 22, 12, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232, 204, 151, .28);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.nav-logo { font-size: 1.2rem; font-weight: 700; letter-spacing: .02em; color: var(--on-leather); text-decoration: none; }
.nav-logo span { color: var(--thread); }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-link { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-link:hover, .nav-link:focus-visible { color: var(--on-leather); }
.langs { display: flex; border-radius: 999px; overflow: hidden; border: 1px solid rgba(232,204,151,.45); background: rgba(0,0,0,.28); }
.langs button { appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px;
  font-weight: 700; letter-spacing: .08em; padding: 6px 13px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--button); color: var(--on-leather); }
.langs button:focus-visible, .nav-link:focus-visible, .nav-logo:focus-visible { outline: 2px solid var(--thread); outline-offset: 2px; }

/* Panel de cuerina marfil con costura */
.panel {
  position: relative; border-radius: 22px; padding: 30px 32px; color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 40%), linear-gradient(180deg, var(--ivory-top), var(--ivory-bottom));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 6px rgba(70,45,15,.28), 0 14px 30px rgba(0,0,0,.5), 0 2px 0 rgba(0,0,0,.4);
}
.panel::before { /* grano premium sobre el marfil */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: url("leather.png") 0 0 / 220px 220px repeat; opacity: .32;
}
.panel::after { /* costura */
  content: ""; position: absolute; inset: 9px; border-radius: 15px; pointer-events: none;
  border: 1.6px dashed rgba(138, 106, 62, .85);
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.55));
}
.panel > * { position: relative; z-index: 1; }
.panel h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: .01em; color: var(--ink); }
.panel p { margin: 0; }
.panel .muted { color: var(--ink-muted); }
.panel a { color: #7a3d16; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.panel a:hover { color: var(--button); }
.panel a.btn, .panel a.btn:hover { color: var(--on-leather); text-decoration: none; }

/* Encabezado */
header.brand { text-align: center; padding: 26px 0 8px; }
.icon { width: 148px; height: 148px; border-radius: 22.37%; display: block; margin: 0 auto 18px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 18px 34px rgba(0,0,0,.55), 0 4px 10px rgba(0,0,0,.4); }
h1.name { margin: 0; font-size: clamp(46px, 9vw, 72px); font-weight: 700; letter-spacing: .02em; line-height: 1.05;
  text-shadow: 0 2px 0 rgba(0,0,0,.45), 0 8px 18px rgba(0,0,0,.35); }
.sub { margin: 6px 0 0; font-size: clamp(16px, 3vw, 20px); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* Hero y botón */
.hero { margin-top: 30px; text-align: center; }
.hero .tag { font-size: clamp(20px, 3.6vw, 28px); font-weight: 700; margin: 0 auto 8px; max-width: 30ch; line-height: 1.25; }
.hero .lead { max-width: 58ch; margin: 0 auto; color: #5b4630; }
.store { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; cursor: default;
  padding: 14px 26px; border-radius: 14px; color: var(--on-leather); font: inherit; font-size: 18px; font-weight: 700;
  background: linear-gradient(180deg, var(--button-hi), var(--button)); border: 1px solid rgba(0,0,0,.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 8px 16px rgba(0,0,0,.4); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.1; }
.btn .t { text-align: left; line-height: 1.15; }
.btn[aria-disabled="true"] { opacity: .9; }
.soon { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--ivory-thread); font-weight: 800; }
html.live .soon { display: none; }
html.live .btn { cursor: pointer; }
html.live .btn:hover { filter: brightness(1.15); }

/* Funciones */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-top: 28px; }
.features .panel { padding: 26px 28px; }
.features h2 { font-size: 19px; }
.features p { font-size: 15.5px; }

/* Galerías */
.gallery { margin-top: 28px; }
.gallery h2 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.thumbs { margin-top: 16px; display: grid; gap: 12px; padding: 14px; border-radius: 14px;
  background: rgba(70, 45, 15, .22); box-shadow: inset 0 3px 8px rgba(60,35,10,.45), inset 0 -1px 0 rgba(255,255,255,.5); }
.thumbs.ipad { grid-template-columns: repeat(5, 1fr); }
.thumbs.iphone { grid-template-columns: repeat(7, 1fr); }
.thumb { appearance: none; padding: 0; border: 0; background: none; cursor: zoom-in; display: block; border-radius: 10px; }
.thumb .shot { display: block; width: 100%; border-radius: 10px; overflow: hidden; background: #2a180c;
  border: 1px solid rgba(0,0,0,.6); box-shadow: 0 0 0 1px rgba(138,106,62,.4), 0 6px 12px rgba(40,22,10,.45); transition: transform .18s ease, box-shadow .18s ease; }
.ipad .shot { aspect-ratio: 3 / 4; }
.iphone .shot { aspect-ratio: 1206 / 2622; border-radius: 9px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover .shot, .thumb:focus-visible .shot { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(138,106,62,.8), 0 12px 18px rgba(40,22,10,.5); }
.thumb:focus-visible { outline: 2px solid var(--button); outline-offset: 3px; }
.thumb.missing { display: none; }

/* Textos largos (soporte y privacidad) */
.page-label { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 20px 0 14px; }
.page-label::before { content: ""; width: 20px; height: 1px; background: var(--muted); }
h1.page { margin: 0 0 8px; font-size: clamp(34px, 6vw, 52px); line-height: 1.05; letter-spacing: -.01em; text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.intro { color: var(--on-leather); opacity: .92; max-width: 60ch; margin: 0 0 26px; }
.updated { font-size: 12px; letter-spacing: .12em; color: var(--muted); margin: 0 0 26px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack .panel { padding: 26px 30px; }
.stack .panel h2 { font-size: 20px; margin-bottom: 10px; }
.stack .panel p { font-size: 15.5px; line-height: 1.75; }
.stack .panel p + p { margin-top: 10px; }
.stack .panel strong { color: #2a1a0c; }
.stack ol { list-style: none; counter-reset: step; padding: 0; margin: 12px 0 0; }
.stack ol li { counter-increment: step; position: relative; padding-left: 34px; margin-bottom: 8px; font-size: 15.5px; line-height: 1.7; }
.stack ol li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--on-leather); background: var(--button); }
.stack ul { margin: 10px 0 0; padding-left: 20px; }
.stack ul li { margin-bottom: 6px; font-size: 15.5px; line-height: 1.7; }

/* Pie */
footer.foot { margin-top: 40px; text-align: center; color: var(--muted); font-size: 14px; }
footer.foot .links { display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 10px; }
footer.foot a, footer.foot button { color: var(--on-leather); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
footer.foot a:hover { color: var(--thread); }
footer.foot .mail { appearance: none; background: none; border: 1px solid rgba(232,204,151,.5); border-radius: 999px; padding: 7px 18px; cursor: pointer; }
footer.foot .mail:hover { background: rgba(0,0,0,.25); }
footer.foot .brand-line { letter-spacing: .08em; }

@media (max-width: 820px) {
  .thumbs.iphone { grid-template-columns: repeat(4, 1fr); }
  .panel { padding: 24px 22px; }
}
@media (max-width: 560px) {
  nav.top { padding-left: 16px; padding-right: 16px; }
  .nav-right { gap: 12px; }
  .thumbs.ipad, .thumbs.iphone { grid-template-columns: repeat(3, 1fr); }
  .thumbs { gap: 9px; padding: 11px; }
  .icon { width: 124px; height: 124px; }
  .stack .panel { padding: 22px 20px; }
}

/* Visor */
.lb { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  background: rgba(18, 9, 4, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); touch-action: pan-y; }
.lb.open { display: flex; }
.lb figure { margin: 0; max-width: min(94vw, 1100px); max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb img { max-width: 100%; max-height: calc(88vh - 40px); border-radius: 14px; box-shadow: 0 0 0 1px rgba(232,204,151,.3), 0 24px 60px rgba(0,0,0,.7); background: #2a180c; }
.lb figcaption { color: var(--muted); font-size: 14px; letter-spacing: .12em; }
.lb .ctl { position: absolute; appearance: none; border: 1px solid rgba(0,0,0,.6); color: var(--on-leather);
  background: linear-gradient(180deg, var(--button-hi), var(--button)); width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 6px 14px rgba(0,0,0,.5); }
.lb .ctl svg { width: 22px; height: 22px; }
.lb .ctl:focus-visible { outline: 2px solid var(--thread); outline-offset: 2px; }
.lb .prev { left: max(10px, env(safe-area-inset-left)); top: 50%; transform: translateY(-50%); }
.lb .next { right: max(10px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); }
.lb .close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
@media (max-width: 560px) { .lb .ctl { width: 42px; height: 42px; } }
body.noscroll { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .thumb .shot { transition: none; } html { scroll-behavior: auto; } }
