/* Nedi site v3. Plain CSS, no build step. One white background, teal accent, thin rules, 2 px corners.
   Fonts (site only): Familjen Grotesk for headings, IBM Plex Sans for body. */
:root {
  --accent: #2F5D62;        /* Teal profundo */
  --accent-strong: #1F4549; /* Teal marino */
  --accent-light: #A9C5C7;  /* Aqua suave: decoration only, never text on white */
  --ink: #1C2626;           /* Tinta */
  --muted: #55646A;         /* Gris medio, darkened a touch for contrast on white */
  --line: #D7E0E0;          /* Gris borde */
  --rule: #1C2626;
  --bg: #FFFFFF;
  --warn: #975A00;
  --display: "Familjen Grotesk", "Segoe UI", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: 76px;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0 0 12px; color: var(--ink); letter-spacing: -0.02em; }
h1 { font-size: 2.6rem; font-weight: 700; }
h2 { font-size: 1.9rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--accent-strong); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Sections: thin rule on top, heading in a left column on wide screens */
section { padding: 40px 0 56px; }
.hero { border-top: 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }

/* Header */
header.site { background: var(--accent); position: sticky; top: 0; z-index: 50; }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 72px; padding-top: 10px; padding-bottom: 10px; gap: 8px 24px; }
.logo { display: block; line-height: 0; }
.logo img { width: 200px; height: auto; }
.nav { display: flex; gap: 22px; order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; }
.nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: 0.98rem; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--accent-light); }
.nav a[aria-current="page"] { border-bottom-color: #fff; }
header.site .btn { display: none; }

/* Buttons: square-ish, teal, white text */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px; border-radius: var(--radius); background: var(--accent); color: #fff; font-family: var(--body); font-weight: 600; font-size: 1.02rem; text-decoration: none; border: 0; }
.btn:hover { background: var(--accent-strong); }
.btn.sm { min-height: 44px; padding: 8px 18px; font-size: 0.95rem; }
header.site .btn .long { display: none; }

/* Hero */
.hero { padding: 36px 0 48px; }
.hero .wrap { display: grid; gap: 32px; }
.hero h1 { font-size: 2.8rem; max-width: 14ch; }
.hero .tagline { font-family: var(--display); font-weight: 500; font-size: 1.3rem; color: var(--accent); margin: 0 0 18px; }
.hero .sub { font-size: 1.15rem; max-width: 44ch; }
.hero .proof { margin: 18px 0 0; color: var(--muted); font-size: 0.98rem; border-top: 1px solid var(--line); padding-top: 14px; max-width: 44ch; }
.hero .cta { margin-top: 24px; }
.hero-visual { justify-self: start; }
.phone { width: min(300px, 80vw); }
.phone img { width: 100%; border: 1px solid var(--rule); border-radius: var(--radius); }

/* Steps */
.steps { display: grid; gap: 36px; margin-top: 28px; }
.step { display: grid; gap: 14px; align-content: start; }
.step img { border: 1px solid var(--rule); border-radius: var(--radius); width: 100%; aspect-ratio: 1000 / 640; object-fit: cover; }
.step .num { display: block; font-family: var(--display); font-weight: 500; font-size: 1rem; color: var(--accent); border-top: 3px solid var(--accent); padding-top: 8px; margin-bottom: 8px; width: 56px; }
.step p { color: var(--muted); margin: 0; }

/* Benefits: ruled list */
.benefits { list-style: none; padding: 0; margin: 20px 0 0; }
.benefits li { padding: 18px 0; border-top: 1px solid var(--line); }
.benefits li:first-child { border-top: 0; padding-top: 0; }
.benefits h3 { margin-bottom: 4px; }
.benefits p { margin: 0; color: var(--muted); max-width: 52ch; }

/* Plans */
.plans { display: grid; gap: 0; margin: 28px 0 28px; border: 1px solid var(--rule); }
.plan { padding: 24px 22px 22px; position: relative; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.plan:first-child { border-top: 0; }
.plan.top { box-shadow: inset 0 4px 0 var(--accent); }
.plan .tag { font-family: var(--display); font-weight: 700; font-size: 0.9rem; color: var(--accent); margin-bottom: 6px; }
.plan h3 { margin-bottom: 4px; }
.plan .for { color: var(--muted); margin-bottom: 14px; }
.plan .price { font-family: var(--display); font-weight: 700; font-size: 3.2rem; line-height: 1; letter-spacing: -0.03em; color: var(--ink); margin: auto 0 0; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); font-family: var(--body); letter-spacing: 0; }
.plan .setup { font-size: 0.92rem; color: var(--muted); margin: 8px 0 0; }
.fine { max-width: 80ch; }
.bullets { margin: 0 0 12px; padding-left: 1.2em; }
.bullets li { font-size: 0.97rem; color: var(--muted); margin-bottom: 8px; padding-left: 4px; }
.bullets li::marker { color: var(--accent); }
.fine p { font-size: 0.97rem; color: var(--muted); }
.fine p:last-child { margin: 0; }
.fine .quote-note { color: var(--ink); font-weight: 600; }

/* Gallery: snap scroll on phones, grid on desktop */
.gallery { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 14px; margin: 24px calc(var(--gutter) * -1) 0; -webkit-overflow-scrolling: touch; }
.gallery figure { margin: 0; flex: 0 0 86%; scroll-snap-align: center; }
.gallery img { width: 100%; border: 1px solid var(--rule); border-radius: var(--radius); }
.gallery figcaption { padding: 10px 0 0; font-size: 0.95rem; color: var(--ink); }
.hint { font-size: 0.9rem; color: var(--muted); }

/* FAQ */
.faq { margin-top: 12px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 56px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.6rem; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 18px; color: var(--muted); max-width: 70ch; }
.faq .answer p:last-child { margin: 0; }

/* Demo: white, big type, left aligned */
.demo h2 { font-size: 2.2rem; max-width: 18ch; }
.demo .lead { margin: 0 0 22px; }

/* Equipo probado */
.gear { list-style: none; margin: 8px 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.gear li { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid var(--line); }
.gear .kind { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.gear h3 { font-size: 1.5rem; margin: 0; }
.gear p { margin: 0; color: var(--muted); max-width: 60ch; }
.gear-note { margin: 28px 0 20px; font-family: var(--display); font-weight: 500; font-size: 1.35rem; line-height: 1.25; max-width: 34ch; color: var(--ink); }

/* Footer: white, ruled */
footer.site { background: var(--accent); color: #fff; padding: 32px 0; font-size: 0.97rem; }
footer.site p { margin: 0 0 8px; }
footer.site a { color: #fff; }
.foot-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.foot-brand img { width: 40px; height: 40px; flex: none; }
.foot-brand .name { font-weight: 600; font-size: 1.05rem; margin: 0; }
.foot-brand .tag { margin: 0; color: #fff; font-size: 0.95rem; }
.foot-note { color: #fff; max-width: 70ch; }

/* Sticky WhatsApp bar, phones only */
.wa-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--rule); }
.wa-bar .btn { width: 100%; }

/* Privacy page */
.legal section { padding: 36px 0 48px; border-top: 0; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 26px; }
.legal .wrap { max-width: 820px; margin: 0; }
.draft-note { border-left: 3px solid var(--warn); padding: 8px 0 8px 14px; color: var(--ink); }
.btn.back { background: var(--accent); }
body.page-legal { padding-bottom: 0; }

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .wa-bar { display: none; }
  header.site .btn { display: inline-flex; }
  header.site .btn .long { display: inline; }
  .logo img { width: 240px; }
  .nav { order: 0; width: auto; margin-left: auto; overflow: visible; }
  section { padding: 56px 0 80px; }
  .hero { padding: 56px 0 72px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .step { grid-template-rows: auto auto; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan { border-top: 0; border-left: 1px solid var(--line); }
  .plan:first-child { border-left: 0; }
  .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; overflow: visible; padding: 0; margin: 28px 0 0; }
  .gallery figure { flex: none; }
  .hint { display: none; }
  .gear li { grid-template-columns: 1fr 2fr; gap: 24px; align-items: start; }
  .gear .kind { grid-column: 1; }
  .gear h3 { grid-column: 1; }
  .gear p { grid-column: 2; grid-row: 1 / span 2; }
}

@media (min-width: 1000px) {
  h1 { font-size: 4.4rem; }
  h2 { font-size: 2.6rem; }
  .hero h1 { font-size: 5rem; max-width: 12ch; }
  .hero .wrap { grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
  .hero-visual { justify-self: end; }
  .phone { width: min(340px, 100%); }
  .legal h1 { font-size: 2.6rem; }
  .legal h2 { font-size: 1.4rem; }
  .demo h2 { font-size: 3.2rem; }
  /* Split sections: heading in the left column, content in the wide right column */
  section:not(.full):not(.hero):not(.legal-s) > .wrap { display: grid; grid-template-columns: 4fr 8fr; column-gap: 64px; align-items: start; }
  section:not(.full):not(.hero):not(.legal-s) > .wrap > h2,
  section:not(.full):not(.hero):not(.legal-s) > .wrap > h1 { grid-column: 1; grid-row: 1 / span 6; position: sticky; top: 100px; }
  section:not(.full):not(.hero):not(.legal-s) > .wrap > :not(h1):not(h2) { grid-column: 2; }
  .legal section > .wrap { display: block; }
  .benefits li { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
}

@media (min-width: 1440px) {
  body { font-size: 18px; }
}

/* v3 fixes: buttons keep their own width inside grids; hero aligned to center */
section > .wrap > .btn { justify-self: start; }
@media (min-width: 1000px) {
  .hero .wrap { align-items: center; }
  .gear li { align-content: start; }
  .gear h3 { margin-top: -2px; }
}

/* Phone nav: wraps, never scrolls sideways */
.nav { flex-wrap: wrap; gap: 2px 16px; overflow: visible; }
@media (min-width: 720px) { .nav { flex-wrap: nowrap; gap: 22px; } }

/* v3b: white button on the teal header, focus ring on teal, teal phone bar */
header.site .btn, .wa-bar .btn { background: #fff; color: var(--accent); }
header.site .btn:hover, .wa-bar .btn:hover { background: var(--accent-light); color: var(--accent-strong); }
header.site :focus-visible, footer.site :focus-visible, .wa-bar :focus-visible { outline-color: #fff; }
.wa-bar { background: var(--accent); border-top: 0; }
