/* Leggera · sitio
   Idea: el turquesa de la app como un solo bloque de luz arriba (la firma escribiéndose),
   y debajo una página clara y quieta, con la barra de almacenamiento del iPhone como detalle propio. */
:root {
  --turq-1: #8EF1E0;
  --turq-2: #22BFB3;
  --turq-3: #0E7FA6;
  --accent: #0B7285;
  --bg: #F3F9F8;
  --card: #FFFFFF;
  --ink: #0E2A2E;
  --muted: #4B6669;
  --line: #D3E5E3;
  --full: #E2574C;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body: "Figtree", -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #4FD8CC;
    --bg: #061719;
    --card: #0C2427;
    --ink: #E4F3F1;
    --muted: #9BB7B4;
    --line: #1E3A3D;
    --full: #F07A70;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent: #4FD8CC;
  --bg: #061719;
  --card: #0C2427;
  --ink: #E4F3F1;
  --muted: #9BB7B4;
  --line: #1E3A3D;
  --full: #F07A70;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
img, svg { max-width: 100%; }

/* idioma: se muestra solo el que corresponde */
html[data-lang="es"] [lang="en"]:not(html),
html[data-lang="en"] [lang="es"]:not(html) { display: none !important; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* ---------- barra superior ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
}
.marca { font: 400 28px/1 var(--display); color: inherit; text-decoration: none; letter-spacing: .01em; }
.top nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.top nav a { color: inherit; text-decoration: none; opacity: .9; }
.top nav a:hover { opacity: 1; text-decoration: underline; }
.idioma {
  display: inline-flex; border: 1px solid currentColor; border-radius: 999px; overflow: hidden;
  font: 600 13px/1 var(--body);
}
.idioma button {
  appearance: none; border: 0; background: transparent; color: inherit;
  padding: 6px 10px; cursor: pointer; font: inherit; opacity: .7;
}
.idioma button[aria-pressed="true"] { background: currentColor; opacity: 1; }
.idioma button[aria-pressed="true"] span { color: var(--turq-3); }
.paginas .idioma button[aria-pressed="true"] span { color: var(--bg); }

/* ---------- héroe ---------- */
.heroe {
  color: #fff;
  background:
    radial-gradient(60% 70% at 18% 8%, rgba(255,255,255,.42), transparent 70%),
    linear-gradient(160deg, var(--turq-1) 0%, var(--turq-2) 48%, var(--turq-3) 100%);
  border-radius: 0 0 36px 36px;
  padding-bottom: 56px;
}
.heroe .top { color: #fff; }
.heroe-cuerpo {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding-top: 28px;
}
.firma {
  width: min(520px, 100%); height: auto; display: block; color: #fff;
  filter: drop-shadow(0 3px 6px rgba(0, 40, 58, .22));
  margin: 0 0 6px -6px;
}
.firma path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.escribiendo .firma path { animation: tinta var(--t) cubic-bezier(.35,.05,.4,1) var(--d) both; }
@keyframes tinta { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .escribiendo .firma path { animation: none; }
}
.heroe h1 {
  font: 400 clamp(38px, 5.4vw, 64px)/1.04 var(--display);
  margin: 6px 0 14px; text-wrap: balance; letter-spacing: -.01em;
}
.heroe .bajada { font-size: 19px; max-width: 34ch; margin: 0 0 26px; color: rgba(255,255,255,.94); }
.acciones { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.boton {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #0A5F6E; text-decoration: none;
  font: 700 16px/1 var(--body); padding: 15px 22px; border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 50, 60, .18);
  border: 0; cursor: pointer;
}
.boton:hover { transform: translateY(-1px); }
.nota { font-size: 14px; color: rgba(255,255,255,.88); }

/* barra de almacenamiento: el detalle propio del tema */
.almacen {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 22px; padding: 22px;
  backdrop-filter: blur(6px);
  display: grid; gap: 18px;
}
.almacen h2 { font: 600 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; margin: 0; color: rgba(255,255,255,.9); }
.fila { display: grid; gap: 8px; }
.fila .dato { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-variant-numeric: tabular-nums; }
.fila .dato b { font-weight: 700; }
.barra { height: 14px; border-radius: 999px; background: rgba(255,255,255,.28); overflow: hidden; display: flex; }
.barra i { display: block; height: 100%; }
.b-fotos { background: #FFCF4A; }
.b-videos { background: #FF8A5B; }
.b-otros { background: rgba(255,255,255,.75); }
.b-libre {
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.95) 0 4px, rgba(255,255,255,.35) 4px 8px);
}
.leyenda { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: rgba(255,255,255,.9); }
.leyenda > span::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px;
  margin-right: 6px; vertical-align: -1px; background: var(--c);
}
.ejemplo { font-size: 12px; color: rgba(255,255,255,.75); margin: 0; }

/* ---------- secciones ---------- */
section { padding: 64px 0 0; }
.sec-titulo {
  font: 400 clamp(30px, 3.6vw, 44px)/1.1 var(--display);
  margin: 0 0 10px; text-wrap: balance;
}
.sec-bajada { color: var(--muted); max-width: 60ch; margin: 0 0 28px; }

.funciones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.funcion {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px; display: grid; gap: 10px; align-content: start;
}
.funcion svg { width: 30px; height: 30px; color: var(--accent); }
.funcion h3 { font: 700 17px/1.25 var(--body); margin: 0; }
.funcion p { margin: 0; color: var(--muted); font-size: 15.5px; }

.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.precio, .privado {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px;
  display: grid; gap: 12px; align-content: start;
}
.cifra { font: 400 64px/1 var(--display); letter-spacing: -.01em; }
.cifra small { font: 600 16px/1 var(--body); color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lista li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.lista li::before {
  content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.6 7.3-5.2 6a1 1 0 0 1-1.5 0l-2.6-2.9 1.5-1.3 1.9 2.1 4.4-5.2 1.5 1.3Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.6 7.3-5.2 6a1 1 0 0 1-1.5 0l-2.6-2.9 1.5-1.3 1.9 2.1 4.4-5.2 1.5 1.3Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* lista de espera */
.avisame {
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center;
}
.avisame form { display: grid; gap: 10px; }
.campo { display: flex; gap: 10px; flex-wrap: wrap; }
.campo input {
  flex: 1 1 220px; min-width: 0; font: 400 17px/1 var(--body); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px;
}
.campo .boton { background: var(--accent); color: #fff; box-shadow: none; }
:root[data-theme="dark"] .campo .boton { color: #062226; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .campo .boton { color: #062226; } }
.mensaje { min-height: 1.4em; margin: 0; font-size: 15px; color: var(--muted); }
.mensaje.ok { color: var(--accent); font-weight: 600; }

/* preguntas */
.preguntas { display: grid; gap: 10px; max-width: 760px; }
details {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px;
}
summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style-position: outside; }
details p { margin: 0 0 16px; color: var(--muted); }

/* pie */
footer { padding: 72px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 22px; }
footer a { color: inherit; }

/* ---------- páginas de texto (privacidad, soporte) ---------- */
.paginas .top { border-bottom: 1px solid var(--line); }
.texto { max-width: 68ch; padding: 40px 0 0; }
.texto h1 { font: 400 clamp(36px, 5vw, 52px)/1.05 var(--display); margin: 0 0 8px; text-wrap: balance; }
.texto .fecha { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.texto h2 { font: 700 20px/1.3 var(--body); margin: 34px 0 8px; }
.texto p, .texto li { color: var(--ink); }
.texto ul { padding-left: 20px; display: grid; gap: 6px; }
.texto .caja { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.ruta { font-weight: 700; }

/* ---------- teléfono ---------- */
@media (max-width: 900px) {
  .heroe-cuerpo, .dos, .avisame { grid-template-columns: 1fr; }
  .funciones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .funciones { grid-template-columns: 1fr; }
  .top nav { gap: 12px; font-size: 14px; }
  .top nav .opcional { display: none; }
  .heroe { border-radius: 0 0 26px 26px; }
  .avisame, .precio, .privado { padding: 22px; }
}
