/* ZenTavo website, "Mosaico + Calma" direction (chosen 2026-11-05).
   CSS only: the CSP allows no scripts, so every interaction here (demo tabs,
   hover, the highlighted email) is plain CSS and degrades to static content. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --card: #EFECE4;
  --line: #E2DED4;
  --track: #DCD8CE;
  --ink: #1E2522;
  --muted: #5C6661;
  --accent: #2F5D50;
  --accent-strong: #1C3A31;
  --accent-soft: #E3ECE7;
  --on-accent: #F7F5F0;
  --band: #2F5D50;
  --band-tile: #3A6B5D;
  --band-muted: #CFE0D8;
  --gym: #5B8BD6;
  --money: #3E9B6A;
  --food: #E0965F;
  --focus: #7C6FC4;
  --phone: #1E2522;
  --shadow: 0 22px 44px -24px rgba(30, 37, 34, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121715;
    --surface: #1B221F;
    --card: #1F2724;
    --line: #2B3430;
    --track: #33403A;
    --ink: #EEF1EC;
    --muted: #A5AFA9;
    --accent: #8FC7B0;
    --accent-strong: #B5DDCB;
    --accent-soft: #1F2E28;
    --on-accent: #121715;
    --band: #1F3D34;
    --band-tile: #2A4B41;
    --band-muted: #BFD6CC;
    --gym: #86AEEB;
    --money: #6CC495;
    --food: #F0B183;
    --focus: #A99DE6;
    --phone: #0A0D0C;
    --shadow: 0 22px 44px -24px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.1; }
p, li { max-width: 68ch; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 40px; overflow-wrap: anywhere; }
.fine a { color: inherit; }
.eyebrow { margin: 0 0 16px; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* Header */
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 22px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.logo { width: 32px; height: 30px; transition: transform .4s var(--ease); }
.brand:hover .logo { transform: rotate(-6deg) translateY(-2px); }
.nav { display: flex; gap: 8px 24px; flex-wrap: wrap; font-weight: 600; font-size: 16px; }
.nav a { color: var(--ink); }
.nav a.lang { color: var(--muted); }

/* Underline that draws itself on hover */
.link { position: relative; text-decoration: none; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }

/* Buttons */
.actions { display: flex; gap: 12px 20px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); text-decoration: none; padding: 16px 26px; border-radius: 999px; font-weight: 700; font-size: 17px; transition: transform .2s var(--ease), background .2s; }
.btn:hover { transform: translateY(-2px); background: var(--accent); color: var(--on-accent); }
.btn:active { transform: translateY(0) scale(.98); }
.text-link { color: var(--ink); font-weight: 700; font-size: 17px; padding-block: 8px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: center; padding-block: 40px 96px; }
.hero-copy { flex: 1 1 460px; min-width: 0; }
.hero h1 { margin: 0 0 22px; font-size: clamp(44px, 6.6vw, 84px); line-height: 1; letter-spacing: -.035em; font-weight: 800; }
.hero h1 span { color: var(--accent); }
.lead { margin: 0 0 32px; font-size: clamp(18px, 2vw, 20px); line-height: 1.55; color: var(--muted); max-width: 36ch; }
.hero-art { flex: 1 1 380px; min-width: 0; position: relative; height: 580px; }
.halo { position: absolute; left: 50%; top: 50%; width: min(440px, 92%); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: var(--accent-soft); }
.hero-art .phone { position: absolute; left: 50%; top: 8px; translate: -50% 0; width: 262px; }
.chip { position: absolute; display: flex; gap: 8px; align-items: center; background: var(--surface); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 15px; white-space: nowrap; }
.chip b { font-weight: 800; }
.chip.c1 { left: 0; top: 90px; }
.chip.c2 { right: 0; top: 270px; }
.chip.c3 { left: 4%; bottom: 70px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.gym { background: var(--gym); }
.dot.money { background: var(--money); }
.dot.food { background: var(--food); }
.dot.focus { background: var(--focus); }
.dot.ai { background: var(--ink); }
.pill { position: absolute; right: 6%; bottom: 18px; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 11px 18px; font-size: 14px; font-weight: 700; }

/* Phone frame around a real app capture */
.phone { background: var(--phone); border-radius: 44px; padding: 10px; box-shadow: var(--shadow); }
.phone img { width: 100%; border-radius: 35px; aspect-ratio: 390 / 844; object-fit: cover; background: #F2F2F7; }

/* Sections */
.section { padding-block: 0 104px; }
.section-head { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.section h2 { font-size: clamp(32px, 4.4vw, 46px); margin: 0; max-width: 20ch; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; max-width: 46ch; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: 30px; padding: 28px; min-height: 230px; transition: transform .35s var(--ease), background .35s, box-shadow .35s; }
.card .dot { width: 16px; height: 16px; margin-bottom: 24px; transition: transform .35s var(--ease); }
.card h3 { margin: 0 0 8px; font-size: 23px; }
.card p { margin: 0 0 20px; color: var(--muted); }
.meter { margin-top: auto; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 3px; transform-origin: left; transform: scaleX(.35); transition: transform .5s var(--ease); }
.meter.gym span { background: var(--gym); }
.meter.money span { background: var(--money); }
.meter.food span { background: var(--food); }
.meter.focus span { background: var(--focus); }
.card:hover { transform: translateY(-6px); background: var(--surface); box-shadow: var(--shadow); }
.card:hover .dot { transform: scale(1.3); }
.card:hover .meter span { transform: scaleX(1); }
.voice { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; background: var(--ink); color: var(--bg); border-radius: 30px; padding: 32px; }
.voice h3 { margin: 0 0 6px; font-size: 26px; }
.voice p { margin: 0; color: color-mix(in srgb, var(--bg) 72%, var(--ink)); }
.voice > div { flex: 1 1 300px; }
.voice q { display: block; flex: 1 1 340px; background: color-mix(in srgb, var(--bg) 10%, var(--ink)); border-radius: 22px; padding: 18px 22px; font-size: 18px; line-height: 1.5; quotes: "«" "»"; }

/* Demo: radio inputs drive the tabs, so it works without scripts and with the keyboard (arrow keys). */
.demo-ui { position: relative; }
.demo-ui > input { position: absolute; opacity: 0; pointer-events: none; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs label { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--card); font-weight: 700; font-size: 15px; transition: background .2s, color .2s, transform .2s var(--ease); }
.tabs label:hover { transform: translateY(-2px); }
.stage { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 40px 64px; align-items: center; background: var(--card); border-radius: 40px; padding: clamp(24px, 5vw, 56px); }
.screens { position: relative; padding-bottom: 28px; }
.screens > .phone:first-child { position: relative; width: 74%; margin-left: 13%; transition: margin-left .5s var(--ease); }
.screens .shot { display: grid; }
.screens .shot > * { grid-area: 1 / 1; }
.screens img { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.screens .review { position: absolute; right: 0; bottom: 0; width: 54%; opacity: 0; transform: translateX(-20px) scale(.92); transition: opacity .45s var(--ease) .5s, transform .55s var(--ease) .5s; }
.screens .review img { opacity: 1; transform: none; }
.copy > div { display: none; }
.copy h3 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 34px); }
.copy p { margin: 0 0 18px; color: var(--muted); font-size: 18px; }
.copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.copy li { display: flex; gap: 12px; align-items: baseline; }
.copy li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); translate: 0 -2px; }
.copy .note { margin-top: 22px; font-size: 14px; color: var(--muted); }
.copy > div { animation: fade .45s var(--ease) both; }

#d-hoy:checked ~ .tabs [for="d-hoy"],
#d-cuentame:checked ~ .tabs [for="d-cuentame"],
#d-gimnasio:checked ~ .tabs [for="d-gimnasio"],
#d-finanzas:checked ~ .tabs [for="d-finanzas"],
#d-nutricion:checked ~ .tabs [for="d-nutricion"],
#d-foco:checked ~ .tabs [for="d-foco"] { background: var(--ink); color: var(--bg); }
.tabs label .dot.ai { background: currentColor; }
#d-hoy:focus-visible ~ .tabs [for="d-hoy"],
#d-cuentame:focus-visible ~ .tabs [for="d-cuentame"],
#d-gimnasio:focus-visible ~ .tabs [for="d-gimnasio"],
#d-finanzas:focus-visible ~ .tabs [for="d-finanzas"],
#d-nutricion:focus-visible ~ .tabs [for="d-nutricion"],
#d-foco:focus-visible ~ .tabs [for="d-foco"] { outline: 3px solid var(--accent); outline-offset: 3px; }
#d-hoy:checked ~ .stage .s-hoy,
#d-cuentame:checked ~ .stage .s-cuentame,
#d-gimnasio:checked ~ .stage .s-gimnasio,
#d-finanzas:checked ~ .stage .s-finanzas,
#d-nutricion:checked ~ .stage .s-nutricion,
#d-foco:checked ~ .stage .s-foco { opacity: 1; transform: none; }
#d-cuentame:checked ~ .stage .review { opacity: 1; transform: none; }
#d-cuentame:checked ~ .stage .screens > .phone:first-child { margin-left: 0; }
#d-hoy:checked ~ .stage .t-hoy,
#d-cuentame:checked ~ .stage .t-cuentame,
#d-gimnasio:checked ~ .stage .t-gimnasio,
#d-finanzas:checked ~ .stage .t-finanzas,
#d-nutricion:checked ~ .stage .t-nutricion,
#d-foco:checked ~ .stage .t-foco { display: block; }

/* Privacy band */
.band { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; background: var(--band); color: #F7F5F0; border-radius: 40px; padding: clamp(32px, 6vw, 60px); }
.band > div:first-child { flex: 1 1 420px; min-width: 0; }
.band h2 { color: #F7F5F0; margin: 0 0 14px; }
.band p { margin: 0 0 18px; font-size: 19px; color: var(--band-muted); max-width: 44ch; }
.band a { color: #F7F5F0; font-weight: 700; }
.zeros { flex: 1 1 300px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: center; margin: 0; padding: 0; list-style: none; }
.zeros li { background: var(--band-tile); border-radius: 22px; padding: 22px 8px; transition: transform .3s var(--ease); }
.zeros li:hover { transform: translateY(-4px); }
.zeros b { display: block; font-size: 34px; line-height: 1.1; }
.zeros span { font-size: 14px; color: var(--band-muted); }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.mail-card { position: relative; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; background: var(--surface); border: 2px solid var(--accent); border-radius: 30px; padding: clamp(24px, 4vw, 40px); scroll-margin-top: 24px; }
.mail-card p { margin: 0; color: var(--muted); }
.mail-card .address { display: block; margin: 6px 0 0; font-size: clamp(24px, 4.2vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.mail-card .address a { color: var(--ink); text-decoration-thickness: 3px; text-decoration-color: var(--accent); }
.mail-card .address a:hover { color: var(--accent); }
.mail-card:target { animation: call 1.4s var(--ease) 2; }
.info { background: var(--card); border-radius: 30px; padding: 28px; }
.info h2, .info h3 { margin: 0 0 8px; font-size: 22px; }
.info p, .info ul { margin: 0; color: var(--muted); }
.info ul { padding-left: 20px; display: grid; gap: 8px; }
.info .dot { margin-bottom: 18px; width: 14px; height: 14px; }

/* Documents (privacy, legal notice) */
.page-head { padding-block: 24px 40px; }
.page-head h1 { margin: 0 0 14px; font-size: clamp(38px, 5.6vw, 64px); }
.page-head p { margin: 0; color: var(--muted); font-size: 19px; max-width: 56ch; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 56px; }
.summary .card { min-height: 0; padding: 24px; }
.summary .card h2 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.01em; }
.summary .card p { margin: 0; font-size: 16px; }
.doc { max-width: 820px; padding-bottom: 104px; }
.doc > h2 { font-size: 28px; margin: 48px 0 14px; }
.doc > h2:first-child { margin-top: 0; }
.doc ul { padding-left: 20px; display: grid; gap: 6px; }
.flows { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 18px 0; max-width: none; }
.flow { background: var(--card); border-radius: 24px; padding: 22px; }
.flow h3 { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; font-size: 18px; letter-spacing: -.01em; line-height: 1.3; }
.flow dl { margin: 0; display: grid; gap: 10px; }
.flow dt { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.flow dd { margin: 0; font-size: 16px; line-height: 1.5; }
.callout { background: var(--accent-soft); border-radius: 22px; padding: 18px 22px; margin: 18px 0; }
.callout p { margin: 0; }
details { background: var(--card); border-radius: 22px; margin-bottom: 10px; transition: background .25s; }
details[open] { background: var(--surface); box-shadow: var(--shadow); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
details > :not(summary) { margin: 0 22px 18px; }
details > ul { padding-left: 20px; }

/* Footer */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-block: 28px; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* Motion. Entrance on load, idle float, and scroll reveals where the browser
   supports scroll-driven animations; everything is off with reduced motion. */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes floatB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes breathe { 0%, 100% { transform: scale(.9); opacity: .6; } 50% { transform: scale(1); opacity: 1; } }
@keyframes pop { 0% { transform: scale(.7); opacity: 0; } 70% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } }
@keyframes call { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); transform: scale(1); } 40% { transform: scale(1.015); } 100% { box-shadow: 0 0 0 22px transparent; transform: scale(1); } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .rise { animation: rise .9s var(--ease) both; }
  .d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; } .d3 { animation-delay: .3s; }
  .halo { animation: breathe 8s ease-in-out infinite; }
  .hero-art .phone { animation: float 7s ease-in-out infinite; }
  .chip.c1 { animation: rise .8s var(--ease) .5s both, floatB 7s ease-in-out 1.3s infinite; }
  .chip.c2 { animation: rise .8s var(--ease) .7s both, float 6s ease-in-out 1.5s infinite; }
  .chip.c3 { animation: rise .8s var(--ease) .9s both, floatB 8s ease-in-out 1.7s infinite; }
  .pill { animation: pop .7s var(--ease) 1.2s both; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Small screens */
@media (max-width: 820px) {
  .stage { grid-template-columns: 1fr; justify-items: center; }
  .screens { width: min(400px, 100%); }
  .copy { width: 100%; }
}
@media (max-width: 560px) {
  .hero { padding-block: 16px 72px; }
  .hero-art { height: 500px; }
  .hero-art .phone { width: 226px; }
  .chip { font-size: 13px; padding: 10px 12px; }
  .chip.c1 { top: 40px; }
  .chip.c2 { top: 240px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .tabs label { flex: none; }
  .section { padding-bottom: 80px; }
  .zeros b { font-size: 28px; }
}
