/* Portada (index.html). Las demás páginas usan style.css. */
:root {
  --primary: #eabbc5;
  --accent: #9c5f6e;
  --ink: #3f3f41;
  --fill: #fbf4f6;
  --muted: #6f6f73;
  --line: #efe3e6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Cabecera fija */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px max(20px, calc((100% - 1040px) / 2));
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 8px rgba(156, 95, 110, 0.25); }
.links { display: flex; gap: 22px; font-size: 0.95rem; }
.links a { color: var(--ink); text-decoration: none; }
.links a:hover { color: var(--accent); }
.lang { font-size: 0.9rem; color: var(--muted); white-space: nowrap; }
.lang a { text-decoration: none; padding: 4px 6px; }
.lang a[aria-current="true"] { color: var(--ink); font-weight: 700; }

/* Portada */
.hero {
  position: relative;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(234, 187, 197, 0.55), transparent 70%),
    radial-gradient(40% 50% at 5% 90%, rgba(234, 187, 197, 0.35), transparent 70%),
    var(--fill);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 72px;
}
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 7vw, 4.4rem); }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
.lead { font-size: 1.2rem; color: var(--muted); margin: 22px 0 30px; max-width: 32em; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.stores a { display: block; transition: transform 0.15s; }
.stores a:hover { transform: translateY(-2px); }
/* Los dos distintivos, a la misma altura (el PNG de Google ya va sin margen). */
.badge { height: 52px; width: auto; border-radius: 8px; }
.badge.google { outline: 1px solid #a6a6a6; outline-offset: -1px; }
.free {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

.stage { position: relative; width: min(100%, 420px); margin: 0 auto; padding: 0 44px; }
.hero-video {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 32px;
  border: 6px solid #fff;
  box-shadow: 0 30px 70px rgba(120, 60, 75, 0.35);
  background: var(--fill);
}
.print {
  margin: 0;
  padding: 8px 8px 26px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(63, 63, 65, 0.22);
}
.print img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
.stage .print { position: absolute; width: 38%; z-index: 1; }
.stage .p1 { left: -6px; bottom: 9%; transform: rotate(-9deg); }
.stage .p2 { right: -6px; top: 7%; transform: rotate(8deg); z-index: 3; width: 32%; }
.live {
  position: absolute;
  z-index: 4;
  left: 22px;
  top: 30%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(63, 63, 65, 0.3);
}
.live::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 9px solid var(--primary);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* Tira de fotos */
.strip { overflow: hidden; padding: 34px 0 10px; background: linear-gradient(var(--fill), #fff); }
.track { display: flex; gap: 22px; width: max-content; animation: slide 60s linear infinite; }
.track .print { width: 150px; flex: none; }
.track .print:nth-child(odd) { transform: rotate(-3deg); }
.track .print:nth-child(even) { transform: rotate(2.5deg) translateY(10px); }
@keyframes slide { to { transform: translateX(calc(-50% - 11px)); } }

/* Secciones */
section { padding: 84px 0; }
.center { text-align: center; }
.sub { color: var(--muted); max-width: 38em; margin: 14px auto 0; font-size: 1.05rem; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.step {
  text-align: center;
  background: var(--fill);
  border-radius: 28px;
  padding: 32px 22px 28px;
}
.step h3 { margin: 22px 0 6px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }
.num {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-right: 8px;
}
.phone {
  width: 100%;
  max-width: 230px;
  margin: 0 auto;
  border-radius: 32px;
  border: 7px solid var(--ink);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 44px rgba(63, 63, 65, 0.2);
}
.phone img { width: 100%; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip .text { order: 2; }
.split p { color: var(--muted); font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { padding-left: 32px; position: relative; margin: 12px 0; color: var(--ink); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.42em;
  width: 5px;
  height: 9px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.pair { display: flex; gap: 18px; justify-content: center; }
.pair .phone { max-width: 215px; margin: 0; }
.pair .phone:first-child { transform: rotate(-3deg); }
.pair .phone:last-child { margin-top: 44px; transform: rotate(3deg); }

/* Sorpresa: fondo rosa con las dos cintas del lazo */
.gift {
  position: relative;
  background: var(--primary);
  overflow: hidden;
}
.gift::before, .gift::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.28);
}
.gift::before { left: 0; right: 0; top: 50%; height: 46px; margin-top: -23px; }
.gift::after { top: 0; bottom: 0; left: 8%; width: 46px; }
.gift .wrap { position: relative; z-index: 1; }
.gift .split p { color: #5d4a4f; }
.gift .ticks li::before { background: #fff; }
.gift h2 em { color: #7d4252; }

.ideas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; text-align: left; }
.idea {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.idea:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(156, 95, 110, 0.15); }
.idea svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: var(--fill);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.idea h3 { margin: 14px 0 4px; font-size: 1.05rem; }
.idea p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.band { background: var(--fill); }

.faq { max-width: 720px; margin: 36px auto 0; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 10px 0;
  background: #fff;
}
.faq details[open] { background: var(--fill); }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.cta {
  background: var(--ink);
  color: #fff;
  text-align: center;
  background-image: radial-gradient(50% 80% at 50% 0%, rgba(234, 187, 197, 0.22), transparent 70%);
}
.cta p { color: #d9d9db; margin: 12px 0 28px; }
.cta .stores { justify-content: center; }
.cta .badge.apple { outline: 1px solid #77777a; border-radius: 9px; }

footer { padding: 28px 20px 40px; text-align: center; font-size: 0.9rem; color: var(--muted); }
footer a { margin: 0 4px; }

@media (max-width: 800px) {
  .links { display: none; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero .wrap { text-align: center; padding-top: 36px; padding-bottom: 48px; }
  .lead { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .split.flip .text { order: 0; }
  .steps, .ideas { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .stage { width: min(100%, 340px); padding: 0 34px; }
  .pair .phone { max-width: 46%; }
  .track .print { width: 120px; }
  .gift::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track { animation: none; }
  .reveal { transition: none; }
  .stores a:hover, .idea:hover { transform: none; }
}
