/* Hoja compartida por index.html (español) y en.html (inglés). Está fuera del
   HTML a propósito: son la misma página en dos idiomas, y mantener dos copias
   del mismo CSS termina siempre con una de las dos desactualizada.

   La paleta está tomada tal cual de src/theme.ts (los tokens de los estilos
   "rosado" y "azul", ya convertidos de OKLCH a hex) para que la web y la app se
   vean como la misma marca y no como dos productos parecidos. */

:root {
  --bg:        #fdf1f6;
  --surface:   #ffffff;
  --ink:       #25151d;
  --muted:     #6d5f65;
  --accent:    #d44996;
  --accent-ink:#b22578;
  --soft:      #ffe0ef;
  --line:      #e6d6dc;
  --azul:      #1f6cb0;
  --radius:    22px;
  --pill:      999px;
  --shadow:    0 18px 40px -24px rgba(37,21,29,.45);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #170f13;
    --surface:   #211820;
    --ink:       #f4e9ee;
    --muted:     #ab979f;
    --accent:    #f172b6;
    --accent-ink:#f172b6;
    --soft:      #3a2130;
    --line:      #362630;
    --azul:      #7db6e8;
    --shadow:    0 18px 40px -24px rgba(0,0,0,.8);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent-ink); }

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

/* ---------- cabecera ---------- */
header.top {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 12px; height: 62px; }
.top img { width: 32px; height: 32px; border-radius: 9px; }
.top b { font-size: 17px; letter-spacing: -.2px; }
.top nav { margin-left: auto; display: flex; gap: 20px; align-items: center; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 560px) { .top nav a.opt { display: none; } }

/* Selector de idioma. Va siempre visible, incluso en móvil: es el enlace que
   no puede esconderse detrás de un menú, porque quien lo necesita justamente
   no está leyendo el idioma en el que está escrito el menú. */
.idioma {
  border: 1px solid var(--line); border-radius: var(--pill);
  padding: 5px 13px; font-weight: 700; font-size: 13.5px; letter-spacing: .04em;
}
.idioma:hover { border-color: var(--accent); color: var(--accent-ink) !important; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 68px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -40% 20% auto -20%; height: 620px;
  background: radial-gradient(closest-side, var(--soft), transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 46px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-ink);
  background: var(--soft); padding: 7px 14px; border-radius: var(--pill);
}
h1 {
  font-size: clamp(38px, 6.4vw, 60px); line-height: 1.06; letter-spacing: -1.6px;
  margin: 20px 0 16px; font-weight: 800;
}
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(18px, 2.3vw, 21px); color: var(--muted); margin: 0 0 30px; max-width: 30em; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--pill);
  font-weight: 700; font-size: 16px; text-decoration: none;
  background: var(--accent); color: #fff; border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}
a.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.cta small { display: block; width: 100%; color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- teléfono ---------- */
.phone {
  background: #1a1216; padding: 9px; border-radius: 36px;
  box-shadow: 0 30px 60px -30px rgba(37,21,29,.6);
  max-width: 268px; margin-inline: auto;
}
.phone img { border-radius: 28px; }
.phone-pair { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.phone-pair .phone { max-width: 232px; }

/* ---------- secciones ---------- */
section { padding: 60px 0; }
h2 {
  font-size: clamp(27px, 3.6vw, 36px); line-height: 1.15; letter-spacing: -.9px;
  margin: 0 0 14px; font-weight: 800;
}
h3 { font-size: 21px; letter-spacing: -.3px; margin: 0 0 8px; font-weight: 700; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.centro { text-align: center; }

.pull {
  text-align: center; max-width: 22em; margin: 0 auto;
  font-size: clamp(24px, 3.6vw, 34px); line-height: 1.3; letter-spacing: -.6px; font-weight: 700;
}
.pull span { color: var(--accent); }

.row { display: grid; gap: 34px; align-items: center; padding: 34px 0; }
@media (min-width: 860px) {
  .row { grid-template-columns: 1fr 1fr; gap: 60px; }
  .row.flip .txt { order: 2; }
}
.row .txt p:last-child { margin-bottom: 0; }
.num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--pill);
  background: var(--soft); color: var(--accent-ink);
  font-weight: 800; font-size: 15px; margin-bottom: 14px;
}

/* ---------- tarjetas ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.card h3 { font-size: 18px; }
.card p { font-size: 15.5px; color: var(--muted); margin: 0; }
.ico { font-size: 24px; line-height: 1; margin-bottom: 12px; }

/* ---------- estilos ---------- */
.estilos { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.swatch { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 14.5px; color: var(--muted); margin-top: 14px; }
.dot { width: 15px; height: 15px; border-radius: var(--pill); background: var(--accent); }
.dot.sq { border-radius: 3px; background: var(--azul); }

/* ---------- precio ---------- */
.planes { display: grid; gap: 16px; max-width: 620px; margin: 30px auto 0; }
@media (min-width: 620px) { .planes { grid-template-columns: 1fr 1fr; } }
.plan {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px; text-align: center; position: relative;
}
.plan.destacado { border: 2px solid var(--accent); }
.plan .precio-num { font-size: 34px; font-weight: 800; letter-spacing: -1px; display: block; }
.plan .per { color: var(--muted); font-size: 15px; }
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 5px 13px; border-radius: var(--pill); white-space: nowrap;
}
.letra-chica { font-size: 13.5px; color: var(--muted); max-width: 42em; margin: 26px auto 0; text-align: left; }
.letra-chica li { margin-bottom: 6px; }

/* ---------- preguntas ---------- */
details { border-bottom: 1px solid var(--line); padding: 16px 2px; }
summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
details[open] summary::after { content: "\2212"; }
details p { margin: 12px 0 2px; color: var(--muted); font-size: 16px; }

/* ---------- pie ---------- */
footer {
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 44px 0; text-align: center; font-size: 15px; color: var(--muted);
}
footer nav { display: flex; gap: 10px 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
footer a { color: var(--ink); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--accent-ink); }
footer img { width: 40px; height: 40px; border-radius: 11px; margin: 0 auto 18px; }
