/* Lovanify — hoja de estilos del sitio.
   Paleta tomada del logo: verde pino, crema y arena. */

:root {
  --pine: #1f5c47;
  --pine-600: #194c3b;
  --pine-800: #123a2d;
  --pine-50: #e8f0eb;
  --cream: #fbf7ef;
  --cream-200: #f3ecdf;
  --sand: #c9b38a;
  --sand-600: #8f7a52;
  --clay: #c1603c;
  --ink: #1f2420;
  --muted: #5d625c;
  --line: #e6dfd1;
  --white: #ffffff;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 1px 2px rgba(31, 36, 32, .04), 0 12px 32px rgba(31, 36, 32, .07);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--pine); }
a:hover { color: var(--pine-800); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--pine); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-800); color: #fff; }
.btn-ghost { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn-ghost:hover { background: var(--pine); color: #fff; }
.btn-light { background: var(--cream); color: var(--pine-800); }
.btn-light:hover { background: #fff; color: var(--pine-800); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; color: var(--pine);
}
.link-arrow:hover { gap: 12px; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 239, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand span { font: 700 22px/1 var(--sans); letter-spacing: -0.03em; color: var(--pine-800); }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 10px 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px;
}
.nav-links a:hover { background: var(--cream-200); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--pine); background: var(--pine-50); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 12px;
  background: transparent; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: transform .25s, background .25s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 20px 24px; background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(31, 36, 32, .08);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s;
  }
  .nav-links a { padding: 14px 16px; font-size: 17px; border-radius: 12px; }
  .menu-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: clamp(48px, 7vw, 80px) 0; }
.section-alt { background: var(--cream-200); }
.section-dark { background: var(--pine-800); color: #e9efe9; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #c5d3cb; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--pine); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.section-dark .eyebrow { color: var(--sand); }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40ch; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 104px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--pine); }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 28px; font-size: 15px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.hero-note svg { flex: none; color: var(--pine); }

.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.page-hero .lead { max-width: 52ch; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- Visual: teléfono con ficha ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .blob {
  position: absolute; inset: 6% 4% 0; border-radius: 48% 52% 44% 56% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 30% 30%, #dfe9e2, #cfdcd3 60%, #c3d3c9);
}
.phone {
  position: relative; width: 290px; padding: 10px; border-radius: 48px;
  background: #18211c; box-shadow: 0 40px 80px rgba(18, 58, 45, .28);
}
.phone img { width: 100%; height: auto; aspect-ratio: 588 / 1280; object-fit: cover; border-radius: 39px; background: var(--cream); }
.phone-sm { width: 100%; max-width: 250px; padding: 8px; border-radius: 40px; box-shadow: 0 24px 48px rgba(18, 58, 45, .18); }
.phone-sm img { border-radius: 33px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.shot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.shot figcaption { font-size: 15px; color: var(--muted); max-width: 22ch; }
@media (max-width: 900px) {
  .gallery {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 220px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin: 0 -4px;
  }
  .shot { scroll-snap-align: center; }
}

.float-card {
  position: absolute; background: #fff; border-radius: 18px; padding: 12px 14px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px;
  font-size: 13px; line-height: 1.3; max-width: 210px;
}
.float-card strong { display: block; font-size: 14px; }
.float-card small { color: var(--muted); }
.float-card .icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.float-a { left: -24px; top: 60%; }
.float-b { right: -18px; top: 16%; }
.icon-pine { background: var(--pine-50); color: var(--pine); }
.icon-clay { background: #f6e3da; color: var(--clay); }
.icon-sand { background: #f1e8d6; color: var(--sand-600); }

@media (max-width: 520px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .phone { width: 250px; }
  .float-card { max-width: 170px; font-size: 12px; }
  .float-a { left: -8px; }
  .float-b { right: -8px; }
}

/* ---------- Tarjetas de roles ---------- */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; text-decoration: none; color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.role:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.role .role-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 24px; }
.role .tag { font-size: 13px; font-weight: 600; color: var(--sand-600); margin-bottom: 6px; }
.role h3 { font-size: 1.7rem; margin-bottom: 10px; }
.role p { color: var(--muted); flex: 1; }
.role .where {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; margin-top: 8px; border-top: 1px solid var(--line);
  font-weight: 600; color: var(--pine); font-size: 15px;
}
@media (max-width: 900px) { .roles { grid-template-columns: 1fr; } }

/* ---------- Bloques de texto + visual ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  background: var(--pine-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5c47' 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;
}
.section-dark .checklist li::before { background-color: rgba(255,255,255,.1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9b38a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }

/* Panel visual genérico */
.panel {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow);
}
.panel-sand { background: linear-gradient(160deg, #f6eedd, #efe3c9); border-color: transparent; }
.panel-pine { background: linear-gradient(160deg, var(--pine), var(--pine-800)); border-color: transparent; color: #fff; }
.panel-title { font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sand-600); margin-bottom: 18px; }
.panel-pine .panel-title { color: var(--sand); }

.list-rows { display: grid; gap: 10px; }
.list-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
}
.panel-pine .list-row { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.list-row .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.panel-pine .list-row .icon { background: rgba(255,255,255,.12); color: var(--sand); }
.list-row strong { display: block; font-size: 15px; }
.list-row small { color: var(--muted); font-size: 13.5px; }
.panel-pine .list-row small { color: #c5d3cb; }
.list-row .pill { margin-left: auto; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--pine-50); color: var(--pine); white-space: nowrap; }
.list-row .pill.clay { background: #f6e3da; color: var(--clay); }


/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font: 600 15px/1 var(--sans); color: var(--sand); margin-bottom: 28px;
}
.step h3 { font-size: 1.3rem; }
.step p { margin: 0; font-size: 16px; }
.steps-light .step { background: #fff; border-color: var(--line); }
.steps-light .step::before { color: var(--sand-600); }
.steps-light .step p { color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Funciones (grid de iconos) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; font-family: var(--sans); font-weight: 650; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---------- Cita / franja ---------- */
.quote {
  font: 500 clamp(1.5rem, 3vw, 2.2rem)/1.3 var(--serif); letter-spacing: -0.01em;
  max-width: 30ch; margin: 0 auto; text-align: center; color: var(--ink);
}
.quote em { color: var(--pine); }

/* ---------- Precios ---------- */
.plan-country { width: min(320px, 100%); margin: 0 auto 28px; text-align: left; }
.billing-toggle {
  display: inline-flex; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  margin-bottom: 40px;
}
.billing-toggle[hidden] { display: none; }
.billing-toggle button {
  border: 0; background: transparent; padding: 10px 20px; border-radius: 999px;
  font: 600 15px/1 var(--sans); color: var(--muted); cursor: pointer;
}
.billing-toggle button[aria-pressed="true"] { background: var(--pine); color: #fff; }
.billing-toggle .save { font-size: 12px; color: var(--clay); margin-left: 6px; }
.billing-toggle button[aria-pressed="true"] .save { color: var(--sand); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 20px; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 36px;
  border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); text-align: left;
}
.plan.featured { background: var(--pine-800); color: #fff; border-color: transparent; }
.plan.featured h3, .plan.featured .amount { color: #fff; }
.plan .badge {
  position: absolute; top: 24px; right: 24px; font-size: 12px; font-weight: 600;
  padding: 6px 10px; border-radius: 999px; background: var(--sand); color: var(--pine-800);
}
.plan h3 { font-size: 1.6rem; margin-bottom: 4px; }
.plan .plan-desc { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.plan.featured .plan-desc, .plan.featured .per { color: #c5d3cb; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px; }
.plan .amount { font: 600 3.2rem/1 var(--serif); letter-spacing: -0.02em; }
.plan .per { color: var(--muted); font-size: 15px; }
.plan .checklist { margin: 0 0 32px; flex: 1; }
.plan.featured .checklist li::before { background-color: rgba(255,255,255,.1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9b38a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.plan .btn { width: 100%; }
.pricing-note { max-width: 620px; margin: 32px auto 0; text-align: center; font-size: 15px; color: var(--muted); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--pine);
  padding: clamp(40px, 7vw, 80px); color: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.cta h2 { color: #fff; margin: 0 0 8px; }
.cta p { color: #cfe0d6; margin: 0; max-width: 46ch; }
.cta .paw-bg { position: absolute; right: -40px; bottom: -60px; width: 280px; opacity: .08; color: #fff; pointer-events: none; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-paths { position: relative; grid-column: 1 / -1; display: grid; gap: 12px; }
.cta-paths .btn { width: 100%; white-space: normal; text-align: center; }
.join-note { margin: 20px 0 0; text-align: center; color: var(--muted); }
@media (min-width: 760px) { .cta-paths { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.site-footer { padding: 72px 0 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sand-600); margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--muted); text-decoration: none; font-size: 15.5px; }
.footer-grid a:hover { color: var(--pine); }
.footer-about p { color: var(--muted); font-size: 15.5px; max-width: 32ch; margin-top: 16px; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Formularios ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field label .req { color: var(--clay); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--cream);
  font: 400 16px/1.4 var(--sans); color: var(--ink);
  transition: border-color .2s, background-color .2s;
}
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2420' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px 16px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pine); background: #fff; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--clay); }
.field select:focus { outline: none; border-color: var(--pine); background-color: #fff; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.captcha { position: relative; }
.form-msg { margin-top: 18px; padding: 14px 16px; border-radius: 14px; font-size: 15px; display: none; }
.form-msg.ok { display: block; background: var(--pine-50); color: var(--pine-800); }
.form-msg.err { display: block; background: #f8e5dd; color: #8a3a1e; }

.contact-side { display: grid; gap: 16px; align-content: start; }
.contact-side .list-row a { font-weight: 600; text-decoration: none; }

.account-wrap { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 64px 0; }
.account-card { max-width: 560px; margin: 0 auto; text-align: center; }
.account-card .icon-lg { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 22px; display: grid; place-items: center; background: var(--pine-50); color: var(--pine); }
.account-card .captcha { display: flex; justify-content: center; margin: 24px 0 8px; }
.account-card .form-actions { justify-content: center; }

/* ---------- Texto legal ---------- */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
.legal-nav { position: sticky; top: 100px; }
.legal-nav p { font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sand-600); margin-bottom: 14px; }
.legal-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.legal-nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 15px; }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { background: #fff; color: var(--pine); }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 .6em; }
.prose h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 650; letter-spacing: -0.005em; margin: 1.8em 0 .4em; }
.prose p, .prose li { color: #3c413c; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.updated { display: inline-block; font-size: 14px; color: var(--muted); padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); margin-bottom: 8px; }
@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; gap: 24px; }
  .legal-nav { position: static; }
  .legal-nav ul { display: flex; flex-wrap: wrap; }
}

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Lo que está arriba del pliegue se muestra de inmediato. */
.js .hero .reveal, .js .page-hero .reveal, .js .account-wrap .reveal { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .role, .btn .arrow { transition: none; }
  .btn:hover, .role:hover { transform: none; }
}
body.menu-open { overflow: hidden; }

/* reCAPTCHA mide 304px fijos: se escala en pantallas angostas. */
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .form-card { padding: 20px 16px; }
  .g-recaptcha { transform: scale(.86); transform-origin: 0 0; height: 68px; }
  .account-card .g-recaptcha { transform-origin: 50% 0; }
}

/* ---------- Capturas del portal (marco de navegador) ---------- */
.hero-stack { padding-bottom: clamp(56px, 7vw, 96px); }
.hero-stack-text { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.hero-stack-text .lead { margin-left: auto; margin-right: auto; max-width: 54ch; }
.hero-stack-text .hero-actions { justify-content: center; }
.hero-stack-text .hero-note { justify-content: center; }

.browser {
  border-radius: 18px; overflow: hidden; background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(31, 36, 32, .04), 0 30px 70px rgba(18, 58, 45, .16);
}
.hero-stack .browser { max-width: 1080px; margin: 0 auto; }
.browser-bar {
  display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px;
  background: var(--cream-200); border-bottom: 1px solid var(--line);
}
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #d9cfbd; }
.browser-bar em {
  margin: 0 auto; transform: translateX(-24px);
  font: 500 12.5px/1 var(--sans); font-style: normal; color: var(--muted);
  padding: 6px 14px; border-radius: 8px; background: rgba(255, 255, 255, .7);
}
.browser img { width: 100%; height: auto; }

.browser-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pair-item { margin: 0; display: grid; gap: 16px; }
.pair-item figcaption { text-align: center; font-size: 15px; color: var(--muted); }
.pair-item figcaption a { font-weight: 600; text-decoration: none; }
@media (max-width: 900px) { .browser-pair { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .browser { border-radius: 12px; }
  .browser-bar { height: 28px; padding: 0 10px; gap: 5px; }
  .browser-bar span { width: 8px; height: 8px; }
  .browser-bar em { font-size: 10.5px; padding: 4px 10px; transform: translateX(-12px); }
}

/* ---------- Ruta (Inicio / Página) ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--pine); }
.hero-stack-text .crumbs { justify-content: center; }

/* ---------- Pie de captura ---------- */
.hero-shot { margin: 0; display: grid; gap: 18px; justify-items: center; }
.hero-shot figcaption { font-size: 15px; color: var(--muted); text-align: center; max-width: 52ch; }
.hero-stack .hero-shot .browser { width: 100%; }

/* ---------- Lista numerada (la placa) ---------- */
.numbered { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.numbered li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.numbered .num { font: 600 14px/1.9 var(--sans); color: var(--sand-600); flex: none; }
.numbered h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 650; letter-spacing: -0.005em; margin: 0 0 4px; }
.numbered p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Tarjetas cortas (sin descripción) ---------- */
.feature-short { display: flex; align-items: center; gap: 16px; padding: 22px 24px; }
.feature-short .icon { margin: 0; flex: none; }
.feature-short h3 { margin: 0; font-size: 1.05rem; }
.features-4 { grid-template-columns: repeat(4, 1fr); }
.features-5 { grid-template-columns: repeat(5, 1fr); }
.features-5 .feature-short { flex-direction: column; align-items: flex-start; }
@media (max-width: 1000px) { .features-4, .features-5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .features-4, .features-5 { grid-template-columns: 1fr; } .features-5 .feature-short { flex-direction: row; align-items: center; } }

/* ---------- Vitrina: la app y los dos portales ---------- */
.showcase { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.showcase-app { margin: 0; display: grid; gap: 18px; justify-items: center; }
.showcase-app figcaption { font-size: 15px; color: var(--muted); text-align: center; max-width: 30ch; }
.showcase-portals { display: grid; gap: 32px; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } }

@media (max-width: 420px) { .nav-cta .btn-sm { padding: 0 14px; font-size: 14px; min-height: 44px; } .brand span { font-size: 20px; } }

.note {
  max-width: 62ch; margin: 36px auto 0; padding: 16px 18px;
  border-radius: 16px; background: #fff; border: 1px solid var(--line);
  color: var(--muted); font-size: 15.5px; text-align: center;
}
.faq { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px 0; }
.faq summary {
  cursor: pointer; font-weight: 600; min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pine); font: 500 1.5rem/1 var(--serif); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }
