@font-face { font-family: "Jakarta"; src: url("fonts/PlusJakartaSans-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --paper: #fbfcfe;
  --ink: #081938;
  --ink-soft: #47526e;
  --muted: #5d6781;
  --accent: #127b58;
  --accent-bright: #1fa374;
  --accent-deep: #0b5a40;
  --menta: #d9f2e6;
  --cielo: #dce9fb;
  --rosa: #fce1e8;
  --melocoton: #fee6cf;
  --limon: #fff2c2;
  --border: #e6ebf3;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

/* ---------- Landing ---------- */

.hero {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px 20px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 15% 10%, var(--limon) 0%, transparent 70%),
    radial-gradient(55% 45% at 90% 20%, var(--cielo) 0%, transparent 70%),
    radial-gradient(60% 50% at 80% 95%, var(--rosa) 0%, transparent 70%),
    radial-gradient(55% 45% at 10% 90%, var(--melocoton) 0%, transparent 70%),
    var(--paper);
}

.hero-inner {
  width: 100%; max-width: 1080px;
  display: grid; gap: 56px; align-items: center; justify-items: center;
}
.hero-copy { max-width: 560px; display: flex; flex-direction: column; align-items: center; }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr 1fr; gap: 40px; }
  .hero-copy { text-align: left; align-items: flex-start; }
}

/* ---------- Móvil con capturas ---------- */

.showcase { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }

.phone {
  width: clamp(250px, 70vw, 310px);
  aspect-ratio: 600 / 1301;
  padding: 11px;
  border-radius: 52px;
  background: #0f1729;
  box-shadow:
    inset 0 0 0 2px #2a3550,
    0 30px 60px -10px rgba(8, 25, 56, .35),
    0 12px 24px rgba(8, 25, 56, .12);
  transform: rotate(2deg);
}
.screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: var(--cielo);
}
.shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .6s ease, transform .9s ease;
}
.shot.is-active { opacity: 1; transform: none; }

.showcase .foli {
  position: absolute;
  left: -58px; bottom: 40px;
  width: clamp(110px, 26vw, 150px);
  margin: 0;
}

.dots { display: flex; gap: 8px; }
.dots button {
  width: 8px; height: 8px; padding: 0;
  border: 0; border-radius: 100px;
  background: rgba(8, 25, 56, .22);
  cursor: pointer;
  transition: width .3s ease, background .3s ease;
}
.dots button[aria-selected="true"] { width: 24px; background: var(--accent); }
.dots button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Jakarta", sans-serif; font-weight: 800; font-size: 20px;
  letter-spacing: -0.02em; margin-bottom: 28px;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 12px rgba(8, 25, 56, .12); }

.foli {
  width: clamp(150px, 34vw, 210px);
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(8, 25, 56, .12));
  animation: float 4s ease-in-out infinite;
  margin-bottom: 20px;
}
@keyframes float { 50% { transform: translateY(-10px) rotate(-2deg); } }

h1 {
  font-family: "Jakarta", sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 8vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--accent); }

.lead {
  margin-top: 18px;
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--ink-soft);
  max-width: 30em;
  text-wrap: pretty;
}

.cta {
  margin-top: 36px;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 30px 14px 24px;
  border-radius: 100px;
  background: linear-gradient(180deg, var(--accent) 0%, #0f6a4c 100%);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .28);
  text-decoration: none;
  box-shadow: 0 6px 0 var(--accent-deep), 0 16px 30px rgba(18, 123, 88, .3);
  transition: transform .12s ease, box-shadow .12s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--accent-deep), 0 20px 34px rgba(18, 123, 88, .34); }
.cta:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--accent-deep), 0 8px 16px rgba(18, 123, 88, .25); }
.cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.cta svg { width: 30px; height: 30px; flex: none; }
.cta span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.cta small { font-size: 12px; font-weight: 500; opacity: .9; }
.cta strong { font-family: "Jakarta", sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }

.note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 22px 20px;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  justify-content: center; align-items: center;
  font-size: 14px; color: var(--ink-soft);
  background: var(--paper);
}
.footer nav { display: flex; gap: 18px; }
.footer a { font-weight: 500; text-decoration: none; }
.footer a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Páginas legales ---------- */

.legal-top {
  background: var(--menta);
  padding: 20px;
}
.legal-top .wrap { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.legal-top .brand { margin: 0; text-decoration: none; }
.legal-top .back { font-weight: 700; font-size: 15px; color: var(--accent-deep);text-decoration: none; }
.legal-top .back:hover { text-decoration: underline; }

.legal {
  flex: 1;
  max-width: 720px; width: 100%;
  margin: 0 auto;
  padding: 44px 20px 72px;
}
.legal h1 { font-size: clamp(34px, 6vw, 48px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 {
  font-family: "Jakarta", sans-serif; font-weight: 800;
  font-size: 21px; letter-spacing: -0.02em;
  margin: 34px 0 10px;
}
.legal p, .legal li { color: var(--ink-soft); font-size: 17px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 6px; }
.legal strong { color: var(--ink); }
.legal .callout {
  background: var(--limon);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 8px;
}
.legal .callout p { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .foli { animation: none; }
  .shot, .dots button { transition: none; }
  .cta { transition: none; }
}
