/* PULSO · sitio oficial. Paleta aprobada: negro #070708, terracota #E36A45, crema #F3F0EA. */
:root {
  --ink: #070708;
  --espresso: #121417;
  --clay: #1c1f24;
  --line: #2c3138;
  --cream: #f3f0ea;
  --mist: #a8a39a;
  --terra: #e36a45;
  --terra-dark: #c4553a;
  --ok: #8fae87;
  --radius: 22px;
  --wrap: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--terra); text-underline-offset: 3px; }
a:hover { color: #f08a68; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 7vw, 5.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.accent { color: var(--terra); }
.muted { color: var(--mist); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--terra); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 30;
  background: linear-gradient(to bottom, rgba(7, 7, 8, 0.86), rgba(7, 7, 8, 0));
  transition: background 0.25s;
}
.site-header.solid { background: rgba(7, 7, 8, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { color: var(--cream); text-decoration: none; font-weight: 900; letter-spacing: 0.22em; font-size: 1.15rem; }
.logo span { color: var(--terra); }
.nav { margin-left: auto; display: flex; gap: 22px; }
.nav a { color: var(--cream); text-decoration: none; font-size: 0.95rem; opacity: 0.85; }
.nav a:hover { opacity: 1; color: var(--cream); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--cream); border-radius: 12px; padding: 8px 12px; font: inherit; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 700 1rem var(--font); text-decoration: none; cursor: pointer;
  background: var(--terra); color: #1a0c08;
}
.btn:hover { background: #f07c58; color: #1a0c08; }
.btn.ghost { background: transparent; color: var(--cream); border: 1px solid rgba(243, 240, 234, 0.35); }
.btn.ghost:hover { border-color: var(--cream); }
.btn[aria-disabled="true"] { background: var(--clay); color: var(--mist); border: 1px solid var(--line); cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--espresso); }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 50%; }
.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 7, 8, 0.92) 0%, rgba(7, 7, 8, 0.72) 42%, rgba(7, 7, 8, 0.25) 75%, rgba(7, 7, 8, 0.15)),
    linear-gradient(to top, var(--ink) 3%, rgba(7, 7, 8, 0.35) 35%, rgba(7, 7, 8, 0) 60%, rgba(7, 7, 8, 0.6)),
    radial-gradient(ellipse at 15% 100%, rgba(227, 106, 69, 0.22), transparent 60%);
}
.hero-content { padding: 140px 0 72px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); opacity: 0.85; margin-bottom: 18px; }
.hero-kicker::before { content: ""; width: 26px; height: 2px; background: var(--terra); }
.hero h1 { max-width: 15ch; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 44ch; color: #ddd8cf; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-phrase { min-height: 2.6em; font-size: clamp(1.15rem, 2.6vw, 1.6rem); font-weight: 800; margin: 26px 0 0; }
.hero-phrase span { display: inline-block; animation: phrase-in 0.6s ease both; }
.hero-phrase .accent { display: block; }
@keyframes phrase-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-controls { position: absolute; right: 16px; bottom: 20px; display: flex; gap: 8px; z-index: 2; }
.hero-controls button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(243, 240, 234, 0.4);
  background: rgba(7, 7, 8, 0.55); color: var(--cream); cursor: pointer; display: grid; place-items: center;
}
.hero-controls button svg { width: 20px; height: 20px; }
.hero-controls[hidden] { display: none; }
.hero-note { font-size: 0.78rem; color: var(--mist); margin-top: 18px; }

/* Sections */
section { padding: clamp(72px, 10vw, 120px) 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.eyebrow { color: var(--terra); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: #ddd8cf; }

.intro-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.photo-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-stack img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.photo-stack img:nth-child(2) { margin-top: 48px; }
.photo-credit { font-size: 0.78rem; color: var(--mist); margin-top: 10px; }

.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding: 0; list-style: none; }
.facts li { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 0.92rem; background: var(--espresso); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--espresso); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .icon { width: 44px; height: 44px; border-radius: 14px; background: rgba(227, 106, 69, 0.14); color: var(--terra); display: grid; place-items: center; margin-bottom: 16px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature p { color: var(--mist); margin: 0; font-size: 0.97rem; }

/* Screens */
.screens-section { background: linear-gradient(180deg, var(--ink), var(--espresso) 30%, var(--espresso) 70%, var(--ink)); }
/* Gallery of real app screens.
   Wide screens: every phone whole, in centered rows.
   Narrower screens: a deliberate carousel with buttons, a counter and an edge fade. */
.screens { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 32px; padding: 8px 0 12px; list-style: none; margin: 0; }
.screen { flex: 0 0 auto; width: clamp(180px, 19vw, 226px); margin: 0; }
.phone { border-radius: 34px; padding: 8px; background: #000; border: 1px solid #33373e; box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5); }
/* height: auto keeps the real 390:844 shape; without it the HTML height
   attribute (844px) won and object-fit cropped half of each screen. */
.phone img { border-radius: 27px; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: contain; background: var(--clay); }
.screen figcaption { margin-top: 12px; font-weight: 700; }
.gallery-controls { display: none; align-items: center; justify-content: flex-end; gap: 12px; margin: -12px 0 18px; }
.gallery-controls[hidden] { display: none !important; }
.gallery-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--espresso);
  color: var(--cream); font: 700 1.3rem var(--font); cursor: pointer; display: grid; place-items: center;
}
.gallery-btn:hover:not([disabled]) { border-color: var(--terra); color: var(--terra); }
.gallery-btn[disabled] { opacity: 0.35; cursor: default; }
.gallery-count { color: var(--mist); font-size: 0.9rem; min-width: 4.5em; text-align: center; }
@media (max-width: 1099px) {
  .gallery-controls { display: flex; }
  .screens {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px; padding: 8px 4px 22px; gap: 22px; scrollbar-width: thin;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 0, #000 88%, transparent);
  }
  .screens.at-end { -webkit-mask-image: none; mask-image: none; }
  .screen { width: clamp(190px, 42vw, 240px); scroll-snap-align: start; }
}
.screen figcaption span { display: block; font-weight: 400; color: var(--mist); font-size: 0.9rem; }
.screens-note { color: var(--mist); font-size: 0.85rem; }

/* Safety */
.safety-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; background: var(--espresso); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.checklist svg { width: 22px; height: 22px; color: var(--ok); margin-top: 2px; }
.checklist strong { display: block; }
.checklist span { color: var(--mist); font-size: 0.95rem; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.6rem; color: var(--terra); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: #d8d3ca; padding-bottom: 18px; margin: 0; }

/* Contact / CTA */
.cta { text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(227, 106, 69, 0.25), transparent 65%), var(--espresso); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta h2 { margin-inline: auto; max-width: 18ch; }
.cta .hero-actions { justify-content: center; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { background: var(--espresso); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-card p { color: var(--mist); font-size: 0.95rem; }
.pending { color: var(--mist); font-style: italic; }

/* Footer */
.site-footer { padding: 48px 0 40px; border-top: 1px solid var(--line); color: var(--mist); font-size: 0.92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h3 { color: var(--cream); font-size: 0.95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--cream); }

/* Document pages (legal, delete account) */
.doc { padding: 120px 0 72px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
.doc h2 { font-size: 1.5rem; margin-top: 2em; }
.doc h3 { margin-top: 1.4em; }
.doc li { margin-bottom: 0.4em; }
.doc table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.95rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--cream); background: var(--espresso); }
.doc blockquote { margin: 1.2em 0; padding: 14px 18px; border-left: 3px solid var(--terra); background: var(--espresso); border-radius: 0 14px 14px 0; }
.doc code { background: var(--clay); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }
.draft-banner { background: rgba(227, 106, 69, 0.12); border: 1px solid rgba(227, 106, 69, 0.5); border-radius: 16px; padding: 14px 18px; margin-bottom: 28px; font-size: 0.95rem; }
.placeholder { background: rgba(227, 106, 69, 0.18); color: #ffc7b4; border-radius: 6px; padding: 0 4px; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; background: var(--espresso); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 0; }
.steps li::before { content: counter(step); width: 30px; height: 30px; border-radius: 50%; background: var(--terra); color: var(--ink); font-weight: 800; display: grid; place-items: center; }

/* Responsive */
@media (max-width: 900px) {
  .intro-grid, .safety-grid { grid-template-columns: 1fr; }
  .features, .contact-cards { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(7, 7, 8, 0.97); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-block; }
  .hero-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 33.34%; }
  .hero::after { background: linear-gradient(to top, var(--ink) 8%, rgba(7, 7, 8, 0.8) 45%, rgba(7, 7, 8, 0.45) 75%, rgba(7, 7, 8, 0.7)); }
  .hero-content { padding: 120px 0 96px; }
  .hero-actions .btn { width: 100%; }
  .features, .contact-cards, .site-footer .wrap { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-phrase span { animation: none; }
}

/* Tables become cards on phones so no column is cut off. */
@media (max-width: 720px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc tr { background: var(--espresso); border: 1px solid var(--line); border-radius: 16px; padding: 6px 14px; margin-bottom: 12px; }
  .doc td { border: 0; padding: 8px 0; }
  .doc td::before { content: attr(data-label); display: block; color: var(--mist); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
}
