/* =========================================================================
   Anto · iOS — Hoja de estilos compartida
   Diseño: ink oscuro + ámbar/teal, tipografías Bricolage Grotesque + Hanken
   100% estático. Sin dependencias de build. Compatible con IONOS.
   ========================================================================= */

:root {
  /* Lienzo */
  --ink:        #07090e;
  --ink-2:      #0c0f17;
  --ink-3:      #11151f;
  --paper:      #f2efe7;
  --muted:      rgba(242, 239, 231, 0.62);
  --faint:      rgba(242, 239, 231, 0.40);
  --line:       rgba(242, 239, 231, 0.10);
  --line-strong:rgba(242, 239, 231, 0.18);

  /* Acentos */
  --amber:      #ff9233;
  --amber-deep: #e8590c;
  --teal:       #ff6a3d;
  --teal-deep:  #c9491c;

  /* Tipografía */
  --display: "Bricolage Grotesque", Georgia, serif;
  --body:    "Hanken Grotesk", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Medidas */
  --container: 1200px;
  --radius:    20px;
  --radius-sm: 12px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ------------------------------------------------------- Fondo atmosférico */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 80% -5%, rgba(255, 146, 51, 0.18), transparent 60%),
    radial-gradient(55% 45% at 8% 8%, rgba(255, 106, 61, 0.14), transparent 55%),
    radial-gradient(70% 60% at 50% 110%, rgba(255, 146, 51, 0.08), transparent 60%);
  pointer-events: none;
}
/* grano sutil */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----------------------------------------------------------- Utilidades */
.container { width: min(100% - 44px, var(--container)); margin-inline: auto; }
.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--amber);
  opacity: 0.7;
}
.section { padding: clamp(72px, 11vw, 150px) 0; position: relative; }
.eyebrow-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  letter-spacing: 0.1em;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; }

.grad-text {
  background: linear-gradient(105deg, var(--amber) 10%, var(--teal) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn-primary {
  background: linear-gradient(180deg, var(--amber), var(--amber-deep));
  color: #1a1205;
  box-shadow: 0 10px 30px -8px rgba(255, 146, 51, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -8px rgba(255, 146, 51, 0.6); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--paper);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); transform: translateY(-2px); }

/* ============================================================= Navegación */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 9, 14, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(7,9,14,0.8); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.04em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--amber), var(--teal));
  display: grid; place-items: center;
  box-shadow: 0 6px 18px -6px rgba(255,146,51,0.55);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand small { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em; color: var(--muted); display:block; font-weight:400; margin-top:-3px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.92rem; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--paper); }
.nav-toggle { display: none; }

/* ==================================================================== Hero */
.hero { position: relative; padding-top: clamp(50px, 9vw, 110px); padding-bottom: clamp(60px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); margin: 22px 0 26px; }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 30ch; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1; }
.hero-stats .lbl { font-size: 0.8rem; color: var(--faint); margin-top: 6px; }

/* Mockup de iPhone (placeholder en CSS puro) */
.phone-stage { position: relative; display: grid; place-items: center; min-height: 480px; }
.phone {
  position: relative;
  width: 270px; aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  padding: 11px;
  background: linear-gradient(160deg, #2b2f3a, #14161d);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.06) inset;
  transform: rotate(-6deg);
  transition: transform 0.5s var(--ease);
}
.phone:hover { transform: rotate(-2deg) translateY(-6px); }
.phone-screen {
  position: relative; height: 100%; border-radius: 34px; overflow: hidden;
  background: linear-gradient(165deg, #2a1c10, #0c1118);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.phone-island {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 26px; border-radius: 16px; background: #05060a; z-index: 3;
}
.phone-app-icon { width: 78px; height: 78px; border-radius: 20px; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(0,0,0,0.7); }
.phone-app-icon svg { width: 42px; height: 42px; }
.phone-app-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.phone-app-tag { font-size: 0.78rem; color: var(--muted); }
.phone-glow { position: absolute; inset: -40px; z-index: -1; background: radial-gradient(circle, rgba(255,146,51,0.35), transparent 65%); filter: blur(20px); }

/* floating mini icons around phone */
.float-icon {
  position: absolute; width: 56px; height: 56px; border-radius: 15px;
  display: grid; place-items: center;
  background: var(--ink-3); border: 1px solid var(--line-strong);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,0.7);
  animation: floaty 6s ease-in-out infinite;
}
.float-icon svg { width: 28px; height: 28px; }
.float-icon.fi-1 { top: 6%;  right: 2%;  animation-delay: 0s; }
.float-icon.fi-2 { bottom: 14%; left: -2%; animation-delay: 1.4s; }
.float-icon.fi-3 { bottom: 2%;  right: 14%; animation-delay: 2.6s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ============================================================ Marquesina */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 56px; white-space: nowrap; width: max-content; animation: scrollx 32s linear infinite; }
.marquee-track span { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.14em; color: var(--faint); text-transform: uppercase; display:flex; align-items:center; gap:56px; }
.marquee-track span::after { content: "✦"; color: var(--amber); }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ================================================================== Apps */
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin: 18px 0 16px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.app-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.app-row:nth-child(even) .app-visual { order: 2; }
.app-visual { position: relative; display: grid; place-items: center; min-height: 360px; }
.app-card-phone {
  width: 230px; aspect-ratio: 9/19.5; border-radius: 38px; padding: 9px;
  background: linear-gradient(160deg, #2b2f3a, #14161d);
  box-shadow: 0 34px 70px -28px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.app-card-screen { height:100%; border-radius:30px; overflow:hidden; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; position:relative; }
.app-card-screen .phone-island { width:72px; height:22px; top:12px; }
.app-glow { position:absolute; inset:-30px; z-index:-1; filter: blur(26px); opacity:0.55; border-radius:50%; }

.app-info .app-index { font-family: var(--mono); font-size: 0.78rem; color: var(--faint); letter-spacing: 0.1em; }
.app-info h3 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 8px 0 6px; }
.app-info .app-tagline { color: var(--amber); font-size: 1rem; margin-bottom: 16px; font-weight: 600; }
.app-info p { color: var(--muted); margin-bottom: 22px; max-width: 52ch; }
.feat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin-bottom: 24px; }
.feat-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.92rem; color: var(--paper); }
.feat-list li svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--teal); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted);
  background: rgba(255,255,255,0.02);
}

/* ============================================================= Proceso */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px; }
.proc-card { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.005)); transition: transform 0.3s var(--ease), border-color 0.3s; }
.proc-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.proc-card .pn { font-family: var(--mono); color: var(--amber); font-size: 0.8rem; }
.proc-card h4 { font-family: var(--display); font-size: 1.2rem; margin: 14px 0 8px; }
.proc-card p { font-size: 0.9rem; color: var(--muted); }

/* tech stack badges */
.stack { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.stack .tech { display:flex; align-items:center; gap:10px; padding:12px 18px; border-radius: var(--radius-sm); border:1px solid var(--line); background: var(--ink-2); font-size:0.9rem; }
.stack .tech svg { width:20px; height:20px; color: var(--teal); }

/* ============================================================= Privacidad */
.priv-teaser { display:grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items:center; padding: clamp(40px,6vw,64px); border-radius: var(--radius); border:1px solid var(--line); background: linear-gradient(135deg, rgba(255,106,61,0.06), rgba(255,146,51,0.04)); }
.priv-teaser h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 16px; }
.priv-teaser p { color: var(--muted); margin-bottom: 24px; }
.priv-badges { display:flex; flex-direction:column; gap:14px; }
.priv-badge { display:flex; gap:13px; align-items:center; padding:16px 18px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); border:1px solid var(--line); }
.priv-badge svg { width:26px; height:26px; color: var(--teal); flex:none; }
.priv-badge strong { display:block; font-size:0.95rem; }
.priv-badge span { font-size:0.8rem; color: var(--faint); }

/* ============================================================== Contacto */
.contact-wrap { text-align:center; max-width:680px; margin-inline:auto; }
.contact-wrap h2 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 18px 0 20px; }
.contact-wrap p { color: var(--muted); margin-bottom: 32px; font-size: 1.1rem; }

/* ================================================================ Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-grid { display:flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer-col h5 { font-family: var(--mono); font-size:0.72rem; letter-spacing:0.18em; text-transform:uppercase; color: var(--faint); margin-bottom:16px; }
.footer-col a { display:block; color: var(--muted); font-size:0.92rem; margin-bottom:10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap; font-size:0.82rem; color: var(--faint); }

/* ====================================================== Página legal (doc) */
.legal { padding-top: 60px; padding-bottom: 90px; }
.legal-head { max-width: 760px; margin-bottom: 50px; }
.legal-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 18px 0 14px; }
.legal-head p { color: var(--muted); }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 96px; }
.legal-toc h5 { font-family: var(--mono); font-size:0.7rem; letter-spacing:0.16em; text-transform:uppercase; color: var(--faint); margin-bottom:14px; }
.legal-toc a { display:block; font-size:0.86rem; color: var(--muted); padding:6px 0; border-left:2px solid transparent; padding-left:12px; margin-left:-2px; transition: all 0.2s; }
.legal-toc a:hover, .legal-toc a.active { color: var(--paper); border-left-color: var(--amber); }
.legal-body { max-width: 760px; }
.legal-body section { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.legal-body section:first-child { border-top: none; padding-top: 0; }
.legal-body h2 { font-size: 1.5rem; margin-bottom: 14px; display:flex; gap:12px; align-items:baseline; }
.legal-body h2 .n { font-family: var(--mono); font-size:0.9rem; color: var(--amber); }
.legal-body h3 { font-size: 1.1rem; margin: 20px 0 8px; font-family: var(--body); font-weight: 700; letter-spacing: -0.01em; }
.legal-body p { color: var(--muted); margin-bottom: 14px; }
.legal-body ul.bullets { margin: 6px 0 16px; padding-left: 4px; }
.legal-body ul.bullets li { color: var(--muted); padding-left: 22px; position: relative; margin-bottom: 9px; }
.legal-body ul.bullets li::before { content:""; position:absolute; left:0; top:11px; width:7px; height:7px; border-radius:2px; background: var(--teal); }
.legal-body a.inline { color: var(--amber); border-bottom: 1px solid rgba(255,146,51,0.4); }
.legal-body strong { color: var(--paper); }
.placeholder {
  background: rgba(255, 146, 51, 0.14);
  color: var(--amber);
  padding: 1px 7px; border-radius: 6px;
  font-family: var(--mono); font-size: 0.85em;
  border: 1px dashed rgba(255,146,51,0.45);
}
.legal-note {
  margin-top: 14px; padding: 18px 20px; border-radius: var(--radius-sm);
  background: rgba(255,106,61,0.07); border:1px solid rgba(255,106,61,0.25);
  font-size: 0.9rem; color: var(--muted);
}
.legal-table { width:100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 0.88rem; }
.legal-table th, .legal-table td { text-align:left; padding: 11px 14px; border:1px solid var(--line); vertical-align: top; }
.legal-table th { font-family: var(--mono); font-size:0.74rem; letter-spacing:0.06em; text-transform:uppercase; color: var(--amber); background: rgba(255,255,255,0.02); }
.legal-table td { color: var(--muted); }
.updated-pill { display:inline-flex; align-items:center; gap:8px; padding:7px 14px; border-radius:999px; background: rgba(255,255,255,0.04); border:1px solid var(--line); font-family: var(--mono); font-size:0.74rem; color: var(--muted); }

/* ============================================================ Reveal anim */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ============================================================== Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .phone-stage { min-height: 420px; order: -1; }
  .app-row { grid-template-columns: 1fr; gap: 30px; }
  .app-row:nth-child(even) .app-visual { order: 0; }
  .app-visual { min-height: 320px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .priv-teaser { grid-template-columns: 1fr; gap: 30px; }
  .legal-layout { grid-template-columns: 1fr; gap: 30px; }
  .legal-toc { position: static; }
  .legal-toc { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 8px 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 22px; width: 100%; }
  .nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); }
  .nav-toggle svg { width: 22px; height: 22px; }
  .process-grid { grid-template-columns: 1fr; }
  .feat-list { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
