/* Parvo website. Apple-like: system type, lots of air, one signature moment
   (the pinned iPad in "Así funciona"). Brand colours from the logo. */

:root {
  --forest: #06452D;      /* brand: headings, buttons, dark band */
  --forest-2: #0A5A3B;    /* button hover */
  --leaf: #59A21C;        /* brand: decoration and large text only (3:1 on white) */
  --leaf-soft: #B9E08F;   /* small text on forest (8.9:1) */
  --white: #FFFFFF;
  --paper: #F5F7F2;       /* page background */
  --ink: #0F241A;         /* body text, 15.8:1 on paper */
  --ink-2: #4A5B52;       /* secondary text, 6.6:1 on paper */
  --line: rgba(6, 69, 45, 0.14);
  --tint: #E8F0E3;        /* quiet green fill */
  --danger: #B42318;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 72px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--forest); color: var(--white); padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 0;
  background: var(--forest); color: var(--white);
  font: 600 17px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--forest-2); }
.btn:active { transform: scale(0.98); }
.btn-small { min-height: 36px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.link { color: var(--forest); font-weight: 600; text-decoration: none; padding: 12px 4px; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 247, 242, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: 56px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { width: auto; }
.brand > img:first-child { height: 30px; }
.brand-word { height: 18px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--forest); }
.nav-login { color: var(--ink); text-decoration: none; font-size: 15px; margin-right: 4px; }
.nav-login:hover { color: var(--forest); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang { background: none; border: 0; color: var(--ink-2); font: 600 14px var(--font); min-height: 36px; min-width: 36px; cursor: pointer; border-radius: 999px; }
.lang:hover { color: var(--forest); background: var(--tint); }

/* ---------- Device frame ---------- */
.ipad {
  background: #1D1D1F;
  padding: clamp(6px, 1.2%, 14px);
  border-radius: clamp(18px, 3.2vw, 38px);
  box-shadow: 0 40px 80px -30px rgba(6, 69, 45, 0.35), 0 12px 24px -12px rgba(0, 0, 0, 0.25);
}
.ipad img { border-radius: clamp(12px, 2.2vw, 26px); width: 100%; background: #F2F2F7; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 112px) 0 0; overflow: hidden; }
.hero-text { text-align: center; }
.hero-title {
  font-size: clamp(40px, 7.2vw, 88px);
  line-height: 1.03; letter-spacing: -0.028em; font-weight: 800;
  color: var(--forest);
  max-width: 14ch; margin: 0 auto;
}
.hero-sub { font-size: clamp(19px, 2vw, 24px); line-height: 1.4; color: var(--ink-2); max-width: 36ch; margin: 24px auto 0; letter-spacing: -0.01em; }
.hero-cta { display: flex; gap: 20px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.hero-device { margin: clamp(48px, 7vw, 80px) auto 0; width: min(1000px, calc(100% - 2 * var(--gutter))); }
.hero-device .ipad { border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; }
.hero-device .ipad img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; max-height: 560px; object-fit: cover; object-position: top; }

/* The one page-load sequence: text, then the device rising */
@media (prefers-reduced-motion: no-preference) {
  .load-1, .load-2 { animation: rise .9s var(--ease) both; }
  .load-2 { animation-delay: .12s; }
  .load-3 { animation: device 1.3s var(--ease) .25s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes device { from { opacity: 0; transform: translateY(90px) scale(.96); } }

/* ---------- Statement ---------- */
.statement { background: var(--white); padding: clamp(80px, 11vw, 140px) 0; border-top: 1px solid var(--line); }
.statement-big { font-size: clamp(36px, 5.6vw, 68px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 800; color: var(--forest); max-width: 16ch; }
.statement-body { margin-top: 28px; font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.outcomes { list-style: none; padding: 0; margin: clamp(48px, 7vw, 80px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.outcomes li { border-top: 2px solid var(--leaf); padding-top: 18px; }
.outcomes strong { display: block; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.02em; color: var(--forest); }
.outcomes span { display: block; margin-top: 6px; color: var(--ink-2); }

/* ---------- Section titles ---------- */
.section-title { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; color: var(--forest); max-width: 22ch; }

/* ---------- How it works (signature: pinned iPad) ---------- */
.how { padding: clamp(80px, 11vw, 140px) 0 clamp(40px, 6vw, 80px); }
.how-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; margin-top: -10vh; }
.steps { list-style: none; padding: 0; margin: 0; }
.step { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; opacity: .45; transition: opacity .5s var(--ease); }
.step.is-active { opacity: 1; }
.step-n {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--forest); color: var(--white); font-weight: 700; font-size: 16px; margin-bottom: 18px;
}
.step h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -0.025em; color: var(--forest); max-width: 18ch; }
.step p { margin-top: 14px; font-size: 19px; color: var(--ink-2); max-width: 34ch; }
.step-shot { display: none; }
.how-stage { position: relative; }
.stage-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.stage { display: grid; width: 100%; }
.stage img { grid-area: 1 / 1; opacity: 0; transition: opacity .6s var(--ease), transform .8s var(--ease); transform: scale(.985); }
.stage img.is-on { opacity: 1; transform: none; }

/* ---------- Two views ---------- */
.views { padding: clamp(80px, 10vw, 120px) 0; background: var(--white); }
.views-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); margin-top: 48px; }
.view h3 { margin-top: 28px; font-size: 26px; letter-spacing: -0.02em; color: var(--forest); }
.view p { margin-top: 8px; color: var(--ink-2); max-width: 42ch; }

/* ---------- Assistant ---------- */
.ask-sec { padding: clamp(80px, 10vw, 128px) 0; background: var(--tint); overflow: hidden; }
.ask-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.ask-lead { margin-top: 20px; font-size: clamp(19px, 1.8vw, 22px); color: var(--ink-2); max-width: 40ch; }
.bubbles { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.bubbles li { background: var(--forest); color: var(--white); font-weight: 500; padding: 10px 18px; border-radius: 20px 20px 20px 6px; font-size: 17px; }
.bubbles li:nth-child(even) { margin-left: 28px; }
.ask-device { margin: 0; }

/* ---------- Features ---------- */
.features { padding: clamp(80px, 10vw, 120px) 0; background: var(--white); }
.feat-list { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; row-gap: 36px; }
.feat-list li { display: flex; gap: 14px; align-items: flex-start; }
.feat-list svg { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--leaf); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.feat-list h3 { font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.feat-list p { margin-top: 2px; color: var(--ink-2); font-size: 16px; }

/* ---------- Comparison ---------- */
.compare { padding: clamp(80px, 10vw, 120px) 0; }
.table-scroll { margin-top: 40px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 16px; table-layout: fixed; }
th, td { padding: 16px 12px; text-align: center; border-bottom: 1px solid var(--line); }
thead th { font-size: 15px; font-weight: 600; color: var(--ink-2); vertical-align: bottom; }
tbody th, thead th:first-child { text-align: left; width: 34%; }
tbody th { font-weight: 500; color: var(--ink); }
td { color: var(--ink-2); }
td.us { font-size: 20px; }
.us { background: var(--tint); color: var(--forest); font-weight: 700; }
thead .us { border-radius: 14px 14px 0 0; font-size: 17px; }
tbody tr:last-child .us { border-radius: 0 0 14px 14px; }
.footnote { margin-top: 16px; font-size: 14px; color: var(--ink-2); }

/* ---------- Law band ---------- */
.law { background: var(--forest); color: var(--white); padding: clamp(64px, 9vw, 112px) 0; }
.law h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.025em; max-width: 22ch; }
.law p { margin-top: 18px; font-size: 19px; color: rgba(255,255,255,.88); max-width: 52ch; }
.law .law-note { font-size: 15px; color: var(--leaf-soft); }

/* ---------- Pilot + form ---------- */
.pilot { padding: clamp(80px, 10vw, 128px) 0; }
.pilot-grid { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: clamp(32px, 6vw, 80px); align-items: start; }
.pilot-offer > p { margin-top: 20px; font-size: 19px; color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; font-size: 18px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.pilot-offer .ask { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 17px; color: var(--ink-2); max-width: 44ch; }

.form { background: var(--white); border-radius: 28px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 60px -36px rgba(6, 69, 45, .35); }
.form h3 { font-size: 24px; letter-spacing: -0.02em; color: var(--forest); margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.field-row .field { margin-bottom: 0; }
label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
input, select {
  width: 100%; min-height: 48px; padding: 0 14px;
  font: 17px var(--font); color: var(--ink);
  background: var(--paper); border: 1.5px solid transparent; border-radius: 12px;
  transition: border-color .15s, background-color .15s;
  appearance: none; -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5B52' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
input:focus, select:focus { outline: none; border-color: var(--forest); background-color: var(--white); }
input[aria-invalid="true"] { border-color: var(--danger); background-color: #FFF6F5; }
.err { display: none; color: var(--danger); font-size: 14px; margin-top: 6px; }
.err.show { display: block; }
#e-contact { margin: 6px 0 14px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 4px; }
.consent input { flex: none; width: 22px; height: 22px; min-height: 0; padding: 0; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--ink-2); background: var(--white); cursor: pointer; }
.consent input:checked { background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: var(--forest); }
.consent label { font-weight: 400; font-size: 14px; color: var(--ink-2); margin: 0; }
.form .btn-block { margin-top: 18px; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { margin-top: 12px; font-size: 15px; min-height: 1em; }
.form-status.ok { color: var(--forest); font-weight: 600; }
.form-status.bad { color: var(--danger); }
.form.sent .field, .form.sent .field-row, .form.sent .consent, .form.sent .btn-block, .form.sent .err { display: none; }
.form.sent .form-status { font-size: 19px; line-height: 1.45; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- About ---------- */
.about { padding: clamp(80px, 10vw, 120px) 0; background: var(--white); }
.about-lead { margin-top: 20px; font-size: clamp(19px, 1.8vw, 22px); color: var(--ink-2); max-width: 48ch; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.person { display: flex; gap: 18px; align-items: flex-start; }
.avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--forest); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 21px; letter-spacing: .02em; }
.person h3 { font-size: 20px; color: var(--ink); }
.person .role { margin-top: 2px; font-size: 15px; font-weight: 600; color: var(--forest); }
.person p { margin-top: 6px; color: var(--ink-2); max-width: 40ch; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(80px, 10vw, 120px) 0; }
.faq details { max-width: 820px; }
.faq .section-title { margin-bottom: 32px; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: translateY(-75%) rotate(45deg); transition: transform .3s var(--ease); }
details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
details p { padding: 0 0 22px; color: var(--ink-2); max-width: 60ch; }

/* ---------- Final ---------- */
.final { padding: clamp(80px, 11vw, 140px) 0; text-align: center; background: var(--white); border-top: 1px solid var(--line); }
.final-big { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -0.025em; font-weight: 800; color: var(--forest); max-width: 18ch; margin: 0 auto 32px; }

/* ---------- Footer ---------- */
.footer { padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--forest); text-decoration: underline; }
.copy { font-size: 14px; color: var(--ink-2); }

/* Placeholders still to fill: outlined only on the local preview */
.show-todo [data-todo] { outline: 2px dashed #D97706; outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .how-grid { grid-template-columns: 1fr; gap: 0; }
  .how-stage { display: none; }
  .how-grid { margin-top: 24px; }
  .step { min-height: 0; opacity: 1; padding: 40px 0; }
  .step-shot { display: block; margin-top: 28px; }
  .feat-list { grid-template-columns: 1fr 1fr; }
  .pilot-grid, .ask-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .outcomes { grid-template-columns: 1fr; gap: 24px; }
  .views-grid, .people { grid-template-columns: 1fr; }
  .views-grid { gap: 56px; }
  .feat-list { grid-template-columns: 1fr; row-gap: 28px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field { margin-bottom: 14px; }
  .hero-cta .btn { width: 100%; }
  table { min-width: 0; font-size: 14px; }
  th, td { padding: 12px 4px; }
  thead th { font-size: 12px; }
  thead .us { font-size: 14px; }
  tbody th, thead th:first-child { width: 36%; padding-left: 0; }
  td.us { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
