:root {
  --brand: #0e8a6a;
  --brand-ink: #0a6b52;
  --brand-soft: #e8f5f0;
  --brand-line: #c8e9dd;
  --ink: #12211c;
  --ink-2: #3d4f48;
  --muted: #5f6f69;
  --line: #e3e8e6;
  --bg: #fbfcfb;
  --surface: #ffffff;
  --tint: #f3f7f5;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-1: 0 1px 2px rgba(18, 33, 28, .05), 0 6px 20px rgba(18, 33, 28, .06);
  --shadow-2: 0 2px 4px rgba(18, 33, 28, .05), 0 22px 48px rgba(18, 33, 28, .12);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --display: "Bricolage Grotesque", "Figtree", sans-serif;
  --text: "Figtree", sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: #b9cfc6 var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
::selection { background: #cdebe0; color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }

/* Encabezado */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(251, 252, 251, .86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 2px 6px rgba(10, 107, 82, .25); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .16s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 8px 20px rgba(14, 138, 106, .28); }
.btn-primary:hover { background: var(--brand-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 12px 26px rgba(14, 138, 106, .34); text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-1); }
.btn-ghost:hover { border-color: #cfd9d5; text-decoration: none; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn[aria-disabled="true"] { cursor: default; }

/* Secciones */
section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.12rem; }

/* Hero */
.hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: 0; overflow: hidden; }
.hero-copy { max-width: 820px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { margin-top: 22px; font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-2); max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: .92rem; }
.hero-shot { position: relative; margin-top: clamp(40px, 6vw, 72px); }
.hero-shot::before { content: ""; position: absolute; inset: -12% -6% auto; height: 70%; background: radial-gradient(60% 60% at 50% 40%, rgba(14, 138, 106, .14), transparent 70%); z-index: -1; }
.frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.frame img { width: 100%; height: auto; }
.hero .frame { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; max-height: 560px; }
.hero .frame img { object-fit: cover; object-position: top; }
@media (prefers-reduced-motion: no-preference) {
  .hero-shot .frame { animation: rise 1.1s var(--ease-out) .15s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(28px) scale(.985); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
}

/* Problema */
.pain { background: var(--surface); border-block: 1px solid var(--line); }
.pain-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.pain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pain-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; color: var(--ink-2); }
.pain-list svg { color: #b4533f; margin-top: 3px; }
.pain-list strong { color: var(--ink); display: block; }
@media (max-width: 860px) { .pain-grid { grid-template-columns: 1fr; } }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-family: var(--display); margin-bottom: 18px; }
.step h3 { font-size: 1.25rem; }
.step p { margin-top: 8px; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Funciones */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 104px); }
.feature:nth-child(even) .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.feature-copy p { margin-top: 14px; color: var(--ink-2); font-size: 1.06rem; }
.feature-copy ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature-copy li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); }
.feature-copy li svg { color: var(--brand); margin-top: 4px; }
.feature .frame { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.feature .frame:hover { transform: translateY(-4px); box-shadow: 0 4px 8px rgba(18, 33, 28, .05), 0 30px 60px rgba(18, 33, 28, .14); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature:nth-child(even) .feature-copy { order: 0; } }

/* Contador y seguridad */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.panel h3 { font-size: 1.6rem; }
.panel p { margin-top: 12px; color: var(--ink-2); }
.panel.soft { background: var(--tint); box-shadow: none; }
.panel .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 20px; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* Precios */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { display: flex; flex-direction: column; padding: 26px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.plan.featured { border-color: var(--brand-line); box-shadow: 0 2px 4px rgba(14, 138, 106, .06), 0 20px 44px rgba(14, 138, 106, .14); }
.plan h3 { font-size: 1.2rem; }
.plan .badge { align-self: flex-start; margin-top: -6px; margin-bottom: 10px; font-size: .78rem; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; }
.price { margin-top: 14px; font-family: var(--display); font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price small { font-family: var(--text); font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .quota { margin-top: 12px; color: var(--ink-2); font-weight: 600; }
.plan .extra { margin-top: 6px; color: var(--muted); font-size: .92rem; }
.plans-note { margin-top: 24px; color: var(--muted); max-width: 760px; }
@media (max-width: 980px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }

/* Preguntas */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--muted); transition: transform .3s var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 70ch; }

/* Cierre */
.closing { padding-top: 0; }
.closing .panel { text-align: center; padding: clamp(40px, 7vw, 80px) 24px; background: linear-gradient(180deg, #ffffff, var(--tint)); }
.closing h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.closing p { margin: 16px auto 0; max-width: 560px; color: var(--ink-2); }
.closing .hero-cta { justify-content: center; }

/* Pie */
footer { border-top: 1px solid var(--line); padding-block: 40px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* Páginas de texto (legales y soporte) */
.doc { padding-block: clamp(48px, 7vw, 88px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.doc h2 { font-size: 1.4rem; margin-top: 40px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p { margin-top: 14px; }
.doc ol, .doc ul { padding-left: 1.2em; }
.doc li { margin-top: 10px; }
.doc .updated { margin-top: 12px; color: var(--muted); }
.contact-card { margin-top: 28px; padding: 28px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.contact-card a.mail { font-family: var(--display); font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.doc h3 { font-size: 1.1rem; margin-top: 28px; }
.doc strong { color: var(--ink); }
.table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.doc th { font-weight: 600; color: var(--ink); background: var(--bg); }
.doc tr:last-child td { border-bottom: 0; }

/* Hero visual: laptop + tarjetas flotantes */
.hero { padding-bottom: clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(48px, 6vw, 64px); align-items: center; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
  .hero h1 { font-size: clamp(2.8rem, 4.6vw, 4.2rem); }
}
.hero-visual { position: relative; padding: 24px 0 40px; }
.hero-visual::before { content: ""; position: absolute; inset: -10% -10% 0; background: radial-gradient(55% 55% at 55% 45%, rgba(14, 138, 106, .16), transparent 70%); z-index: -1; }
.laptop { width: 100%; }
.laptop-screen { position: relative; background: #1b2a25; border-radius: 18px 18px 6px 6px; padding: 14px 12px 12px; box-shadow: 0 2px 4px rgba(18, 33, 28, .08), 0 30px 60px rgba(18, 33, 28, .22); }
.laptop-screen img { display: block; width: 100%; height: auto; border-radius: 6px; background: #fff; }
.laptop-screen .cam { position: absolute; top: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #3c4f48; }
.laptop-base { position: relative; height: 14px; margin: 0 -7%; background: linear-gradient(#e4e9e7, #c9d2ce); border-radius: 2px 2px 14px 14px; box-shadow: 0 14px 24px rgba(18, 33, 28, .14); }
.laptop-base::before { content: ""; position: absolute; top: 0; left: 50%; width: 16%; height: 5px; transform: translateX(-50%); background: #b7c2bd; border-radius: 0 0 8px 8px; }
.float-card { position: absolute; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-2); font-size: .88rem; line-height: 1.35; }
.float-card strong { display: block; color: var(--ink); font-weight: 600; }
.float-card span { color: var(--muted); }
.fc-ready { left: -4%; bottom: 0; }
.fc-global { right: -3%; top: 0; align-items: center; }
.fc-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand) !important; }
.fc-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.fc-actions { display: flex; gap: 6px; margin-top: 10px; }
.fc-actions span { padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.chip-dark { background: var(--ink); color: #fff !important; }
.chip-light { border: 1px solid var(--line); color: var(--ink) !important; }
@media (max-width: 560px) {
  .float-card { font-size: .8rem; padding: 10px 12px; }
  .fc-ready { left: 0; } .fc-global { right: 0; }
  .fc-actions { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .laptop { animation: rise 1.1s var(--ease-out) .15s both; }
  .fc-global { animation: rise .8s var(--ease-out) .7s both; }
  .fc-ready { animation: rise .8s var(--ease-out) .9s both; }
}
@media (max-width: 560px) { .laptop-base { margin: 0 -2%; } .laptop-screen { padding: 9px 8px 8px; border-radius: 12px 12px 4px 4px; } }
