/* Portada: hero, beneficios, cómo funciona. Los precios usan subscription.css vía planCards() */
.skip-link{position:absolute;left:12px;top:-60px;background:#fff;color:var(--navy);padding:10px 16px;border-radius:10px;font-weight:700;z-index:99;transition:top .15s;border:1px solid var(--border)}
.skip-link:focus{top:10px;outline:2px solid var(--teal);outline-offset:2px}

.landing{display:grid;gap:56px;max-width:1100px}
@media(min-width:900px){.landing{gap:88px}}

/* —— Hero —— */
.landing-hero{
  position:relative;display:grid;gap:28px;align-items:center;
  padding:28px 0 8px;margin:0 -8px;padding-left:8px;padding-right:8px;
  background:linear-gradient(165deg,#e7f5f2 0%,#f3f8fa 42%,#fff 100%);
  border-radius:20px;overflow:hidden;
}
.landing-hero-copy{display:grid;gap:16px;position:relative;z-index:1;min-width:0}
.landing-hero .eyebrow{margin:0;color:var(--teal);font-size:12px;font-weight:700;letter-spacing:1.2px;text-transform:none}
.landing-hero h1{
  font-size:clamp(32px,6.5vw,40px);letter-spacing:-1.2px;line-height:1.15;margin:0;
  color:var(--navy);max-width:18ch;
}
.landing-lead{font-size:17px;line-height:1.65;color:var(--muted);margin:0;max-width:38ch}
.landing-cta{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-top:4px}
.landing-cta .button{min-height:48px;padding:12px 20px;font-size:15px}
.landing-cta-ghost{
  display:inline-flex;align-items:center;min-height:48px;padding:10px 4px;
  font-size:15px;font-weight:700;color:var(--teal);text-decoration:underline;text-underline-offset:3px;
  background:transparent;border:0;
}
.landing-cta-ghost:hover{color:#056357}
.landing-trust{margin:0;font-size:14px;color:#4a5d72;font-weight:600}
.landing-trust::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--teal);margin-right:8px;vertical-align:middle}

/* Hero visual / product mockup */
.landing-hero-visual{
  position:relative;min-height:260px;display:grid;place-items:center;z-index:1;min-width:0;
}
.hero-blob{
  position:absolute;width:min(340px,90%);height:min(340px,90%);border-radius:50%;
  background:radial-gradient(circle at 40% 35%,rgba(92,224,207,.35),rgba(9,119,107,.12) 55%,transparent 70%);
  filter:blur(2px);pointer-events:none;
}
.hero-spain{
  position:absolute;width:min(280px,85%);height:auto;color:var(--navy);pointer-events:none;
}
.hero-mock{
  position:relative;width:min(340px,100%);display:grid;gap:10px;padding:8px;
}
.hero-mock-card,.hero-mock-row{
  background:#fff;border:1px solid var(--border);border-radius:14px;
  box-shadow:0 8px 28px rgba(17,34,60,.08);
}
.hero-mock-profile{
  display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;gap:8px 12px;
  padding:16px 16px 14px;align-items:center;
  transition:transform .2s ease,box-shadow .2s ease;
}
.hero-mock-profile:hover{transform:translateY(-3px);box-shadow:0 12px 32px rgba(17,34,60,.12)}
.hero-mock-avatar{
  grid-row:1 / span 2;width:48px;height:48px;border-radius:50%;
  display:grid;place-items:center;font-family:Manrope,system-ui,Arial,sans-serif;
  font-weight:700;font-size:15px;background:#d9e9ed;color:#23516a;
}
.hero-mock-meta{display:grid;gap:2px;min-width:0}
.hero-mock-meta strong{font-size:15px;color:var(--navy);letter-spacing:-.2px}
.hero-mock-meta span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-mock-chips{grid-column:2;display:flex;flex-wrap:wrap;gap:6px}
.hero-mock-chips span{
  font-size:11px;padding:4px 8px;border-radius:999px;background:#e7f6f0;color:#277761;font-weight:600;
}
.hero-mock-row{
  display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;
  padding:12px 14px;
}
.hero-mock-row strong{display:block;font-size:13px;color:var(--ink)}
.hero-mock-row span{font-size:11px;color:var(--muted)}
.hero-mock-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}
.hero-mock-dot.is-in{background:var(--teal)}
.hero-mock-dot.is-out{background:#5b7aa0}
.hero-mock-status{
  font-style:normal;font-size:11px;font-weight:700;padding:4px 8px;border-radius:6px;white-space:nowrap;
}
.hero-mock-status.is-wait{background:#fff3d8;color:#8b640b}
.hero-mock-status.is-ok{background:#e6f6ee;color:#267a55}

@media(min-width:900px){
  .landing-hero{
    grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:36px;
    padding:36px 28px 28px;
  }
  .landing-hero h1{font-size:clamp(48px,4.2vw,56px);max-width:14ch}
  .landing-lead{font-size:18px}
  .landing-hero-visual{min-height:320px}
}

/* Entrance motion */
@keyframes landing-rise{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:translateY(0)}
}
.landing-hero-copy,.landing-hero-visual,.landing-benefits > li,.landing-steps > li{
  animation:landing-rise .55s ease both;
}
.landing-hero-visual{animation-delay:.08s}
.landing-benefits > li:nth-child(1){animation-delay:.1s}
.landing-benefits > li:nth-child(2){animation-delay:.16s}
.landing-benefits > li:nth-child(3){animation-delay:.22s}
.landing-steps > li:nth-child(1){animation-delay:.12s}
.landing-steps > li:nth-child(2){animation-delay:.18s}
.landing-steps > li:nth-child(3){animation-delay:.24s}

@media(prefers-reduced-motion:reduce){
  .landing-hero-copy,.landing-hero-visual,.landing-benefits > li,.landing-steps > li{animation:none}
  .hero-mock-profile{transition:none}
  .hero-mock-profile:hover{transform:none}
  .landing-benefits > li:hover{transform:none}
}

/* —— Benefits —— */
.landing-benefits{
  display:grid;grid-template-columns:1fr;gap:16px;margin:0;padding:0;list-style:none;
}
.landing-benefits li{
  background:#fff;border:1px solid var(--border);border-radius:16px;
  padding:24px 22px;display:grid;gap:10px;align-content:start;
  box-shadow:0 4px 18px rgba(17,34,60,.04);
  transition:transform .18s ease,box-shadow .18s ease;
  min-height:100%;
}
.landing-benefits li:hover{
  transform:translateY(-2px);box-shadow:0 8px 24px rgba(17,34,60,.08);
}
.landing-benefit-icon{
  width:40px;height:40px;border-radius:12px;display:grid;place-items:center;
  background:#e7f5f2;color:var(--teal);
}
.landing-benefit-icon svg{width:22px;height:22px}
.landing-benefits strong{font-size:19px;letter-spacing:-.3px;color:var(--navy);font-family:Manrope,Arial,sans-serif}
.landing-benefits p{margin:0;font-size:15px;line-height:1.65;color:#5b6b7c}
@media(min-width:720px){
  .landing-benefits{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
  .landing-benefits strong{font-size:18px}
  .landing-benefits p{font-size:14px}
}
@media(max-width:719px){
  .landing-benefits p{font-size:16px}
}

/* —— Cómo funciona —— */
.landing-how{display:grid;gap:28px;scroll-margin-top:88px}
.landing-how > h2{font-size:clamp(24px,3vw,30px);margin:0;letter-spacing:-.6px;color:var(--navy)}
.landing-steps{
  list-style:none;margin:0;padding:0;display:grid;gap:0;
  position:relative;
}
/* Mobile: vertical timeline */
.landing-steps > li{
  display:grid;grid-template-columns:auto 1fr;gap:14px 16px;
  position:relative;padding:0 0 28px;
}
.landing-steps > li:last-child{padding-bottom:0}
.landing-steps > li:not(:last-child)::before{
  content:"";position:absolute;left:19px;top:42px;bottom:0;width:0;
  border-left:2px dashed #c5d5e0;
}
.landing-step-num{
  width:40px;height:40px;border-radius:50%;display:grid;place-items:center;
  background:var(--teal);color:#fff;font-family:Manrope,Arial,sans-serif;
  font-size:20px;font-weight:800;position:relative;z-index:1;flex-shrink:0;
}
.landing-step-body{display:grid;gap:6px;padding-top:4px;min-width:0}
.landing-step-body strong{font-size:18px;color:var(--navy);font-family:Manrope,Arial,sans-serif;letter-spacing:-.2px}
.landing-step-body p{margin:0;font-size:16px;line-height:1.65;color:#5b6b7c}
.landing-step-icon{color:var(--teal);margin-top:2px}
.landing-step-icon svg{width:18px;height:18px}

.landing-how-cta{
  display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:center;
  padding-top:8px;
}
.landing-how-cta .button{min-height:48px;padding:12px 22px;font-size:15px}
.landing-how-link{
  font-size:15px;font-weight:700;color:var(--teal);
  text-decoration:underline;text-underline-offset:3px;padding:8px 0;
}
.landing-how-link:hover{color:#056357}

@media(min-width:900px){
  .landing-steps{
    grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;
  }
  .landing-steps > li{
    grid-template-columns:1fr;justify-items:start;padding:0;gap:14px;
  }
  .landing-steps > li:not(:last-child)::before{
    left:56px;right:-24px;top:23px;bottom:auto;width:auto;
    height:0;border-left:0;border-top:2px dashed #c5d5e0;
    transform:none;z-index:0;
  }
  .landing-step-num{font-size:24px;width:48px;height:48px}
  .landing-step-body p{font-size:15px}
  .landing-step-body strong{font-size:18px}
}

/* Prices wrap + wait (unchanged behaviour) */
.landing-section{display:grid;gap:18px;scroll-margin-top:88px}
.landing-section h2{font-size:24px;margin:0;letter-spacing:-.6px}
.landing-section > p{margin:0;color:var(--muted);font-size:14px;line-height:1.7;max-width:62ch}
.landing-prices-wrap{gap:14px}
.landing-prices-note{background:#fff8ec;border:1px solid #f0d7a6;border-radius:12px;padding:14px 16px;font-size:13px;line-height:1.6;color:#6b4c12;margin:0}
.landing-prices-wrap .plans-section{scroll-margin-top:88px}
.plans-inactive-note{background:#fff8ec;border:1px solid #f0d7a6;border-radius:12px;padding:12px 14px;font-size:13px;line-height:1.6;color:#6b4c12;margin:0 0 14px}
.landing-wait{background:var(--navy);color:#e8eef5;border-radius:18px;padding:28px 24px;display:grid;gap:14px;scroll-margin-top:88px}
.landing-wait h2{color:#fff;margin:0;font-size:22px}
.landing-wait p{margin:0;color:#c4d1df;font-size:14px;line-height:1.7;max-width:58ch}
.landing-wait .button.primary{background:var(--mint);border-color:var(--mint);color:#103b36;justify-self:start}

body.logged-out .sidebar .workspace,
body.logged-out .sidebar .nav-caption,
body.logged-out .sidebar-bottom{display:none}
body.logged-out .topbar .breadcrumb{display:none}
body.logged-out .topbar .demo-badge{margin-left:auto}
body.logged-out .app-shell{min-width:0}
body.logged-out main#content{outline:none}

@media(max-width:640px){
  .landing{gap:48px}
  .landing-hero{padding:22px 14px 18px;margin:0}
  .landing-cta .button,.landing-cta-ghost{width:100%;justify-content:center}
  .landing-cta-ghost{min-height:44px}
  .landing-wait{padding:22px 18px}
  .landing-wait .button.primary{width:100%;justify-self:stretch}
  .landing-how-cta .button{width:100%}
  .hero-mock-meta span{white-space:normal}
}
