/* Found Home NL — diseño basado en los principios de Emil Kowalski (emil-design-eng):
   curvas de easing propias, solo animar transform/opacity, feedback al pulsar,
   hover solo con ratón y respeto a "reducir movimiento". */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap");

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #0a0a0a;
  --text-2: #404040;
  --muted: #737373;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --red: #d12c2f;        /* 5.1:1 con texto blanco (WCAG AA) */
  --red-press: #b02225;
  --green-text: #15803d;
  --green: #16a34a;
  --soft: #f4f4f5;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --radius: 16px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.04), 0 24px 48px -24px rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
::selection { background: rgba(209, 44, 47, 0.16); color: var(--text); }
html { scrollbar-color: rgba(0, 0, 0, 0.22) transparent; caret-color: var(--red); }
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { outline-color: var(--red); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

/* ---------- Cabecera ---------- */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; }
.logo .mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--text);
  display: grid; place-items: center;
}
.logo .mark svg { width: 16px; height: 16px; fill: #fff; }

/* Selector de idioma: la "pastilla" activa se mueve con clip-path (técnica de tabs de Emil) */
.langs {
  position: relative; display: inline-flex; padding: 3px; gap: 0;
  background: rgba(0, 0, 0, 0.05); border-radius: 10px;
}
.langs button {
  position: relative; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--muted); padding: 5px 11px; border-radius: 7px;
  transition: color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.langs .langs-active {
  position: absolute; inset: 3px; display: flex; pointer-events: none;
  background: var(--surface); border-radius: 7px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
  clip-path: inset(0 100% 0 0 round 7px);
  transition: clip-path 260ms var(--ease-out);
}
.langs .langs-active span {
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--text);
  padding: 5px 11px; line-height: inherit;
}
@media (hover: hover) and (pointer: fine) {
  .langs button:hover { color: var(--text-2); }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--red); color: #fff; text-decoration: none;
  font: inherit; font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  padding: 14px 22px; border-radius: 12px; border: 0; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 6px 16px -6px rgba(209, 44, 47, 0.55);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); background: var(--red-press); }
.btn .arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
.btn.block { width: 100%; }
.btn.secondary { background: var(--text); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.4); }
.btn.secondary:active { background: #262626; }
.btn.small { padding: 10px 16px; font-size: 14px; border-radius: 10px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--red-press); }
  .btn:hover .arrow { transform: translateX(3px); }
  .btn.secondary:hover { background: #262626; }
}

/* ---------- Portada ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
  padding-top: 88px; padding-bottom: 72px;
}
.hero h1 {
  font-size: clamp(36px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -0.035em;
  font-weight: 600; margin: 0 0 20px; text-wrap: balance;
}
.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 0 32px; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.price-note { color: var(--muted); font-size: 14px; }
.price-note strong { color: var(--text); font-weight: 600; }

/* Tarjeta "dossier" de la portada */
.dossier {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 22px; max-width: 380px; justify-self: end; width: 100%;
}
.dossier-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dossier-title { font-weight: 600; font-size: 15px; }
.chip {
  font-size: 12px; font-weight: 600; color: var(--green-text); background: rgba(22, 163, 74, 0.1);
  padding: 3px 9px; border-radius: 99px;
  opacity: 0; transform: scale(0.95);
  animation: pop 400ms var(--ease-out) 1250ms forwards;
}
.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; font-size: 14px; color: var(--text-2);
  border-top: 1px solid var(--line);
}
.tick {
  width: 20px; height: 20px; flex: none; border-radius: 6px;
  border: 1.5px solid var(--line-strong); position: relative;
}
.tick::after {
  content: ""; position: absolute; inset: -1.5px; border-radius: 6px;
  background: var(--text) 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.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
  opacity: 0; transform: scale(0.6);
  animation: pop 320ms var(--ease-out) forwards;
  animation-delay: calc(500ms + var(--d) * 140ms);
}
.checks li:nth-child(1) .tick::after { --d: 0; }
.checks li:nth-child(2) .tick::after { --d: 1; }
.checks li:nth-child(3) .tick::after { --d: 2; }
.checks li:nth-child(4) .tick::after { --d: 3; }
.checks li:nth-child(5) .tick::after { --d: 4; }
.dossier-foot { border-top: 1px solid var(--line); padding-top: 14px; font-size: 13px; color: var(--muted); }
.bar { height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; margin-bottom: 10px; }
.bar span {
  display: block; height: 100%; background: var(--green); border-radius: 99px;
  transform-origin: left; transform: scaleX(0.04);
  animation: fill 900ms var(--ease-in-out) 500ms forwards;
}

/* Entrada escalonada de la portada (se ve una vez: puede tener algo de encanto) */
.stagger { opacity: 0; transform: translateY(10px); animation: rise 700ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 70ms); }

@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes pop  { to { opacity: 1; transform: scale(1); } }
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- Secciones ---------- */
section { padding: 72px 0; }
section h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 12px; text-wrap: balance; }
.sub { color: var(--muted); margin: 0 0 36px; max-width: 560px; font-size: 17px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  transition: border-color 200ms ease;
}
.card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico {
  width: 38px; height: 38px; border-radius: 10px; background: var(--soft);
  display: grid; place-items: center; margin-bottom: 18px;
}
.ico svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: var(--line-strong); }
}

/* Pasos */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.steps h3 { margin: 2px 0 4px; font-size: 16px; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.num {
  flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--text); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}

/* Precio */
.pricing { text-align: center; }
.pricing h2 { text-align: center; }
.price-card {
  max-width: 420px; margin: 32px auto 0; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 32px 28px; box-shadow: var(--shadow-lg);
}
.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 22px; }
.amount { font-size: 52px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.per { color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; }
.price-card li { position: relative; padding: 9px 0 9px 28px; font-size: 15px; color: var(--text-2); border-top: 1px solid var(--line); }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: rgba(22, 163, 74, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.fine { font-size: 13px; color: var(--muted); margin: 14px 0 0; text-align: center; }

/* Aviso de transparencia */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 22px; font-size: 15px; color: var(--text-2);
}
.notice-ico { width: 22px; height: 22px; flex: none; margin-top: 1px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; }
.notice-title { margin: 0 0 6px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.notice p { margin: 0; max-width: 68ch; }

/* Preguntas frecuentes */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
details summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 2px; font-weight: 500; font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}
details summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 14px; height: 14px; flex: none; transition: transform 220ms var(--ease-out); }
.plus::before, .plus::after { content: ""; position: absolute; background: var(--muted); border-radius: 2px; }
.plus::before { left: 0; right: 0; top: 6px; height: 2px; }
.plus::after { top: 0; bottom: 0; left: 6px; width: 2px; }
details[open] .plus { transform: rotate(45deg); }
details p { margin: 0 2px 18px; color: var(--muted); font-size: 15px; max-width: 620px; }
details[open] p { animation: rise 260ms var(--ease-out); }

/* Aparición al hacer scroll (solo si hay JS) */

/* Cambio de idioma: fundido con un poco de desenfoque para que no "salte" */
.i18n, main { transition: filter 160ms ease, opacity 160ms ease; }
.swapping { filter: blur(2px); opacity: 0.4; }

/* ---------- Pie ---------- */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--text-2); text-underline-offset: 3px; }

/* ---------- Zona de socios ---------- */
.site-card { display: flex; flex-direction: column; gap: 10px; }
.site-card .btn { margin-top: auto; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--text-2); padding: 3px 10px; border-radius: 99px; align-self: flex-start; }
.city-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 24px; color: var(--text-2); font-weight: 500; }
.city-bar select {
  font: inherit; padding: 9px 36px 9px 12px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") right 10px center / 16px no-repeat;
  -webkit-appearance: none; appearance: none; color: var(--text); cursor: pointer;
}
.guide h3 { margin-top: 0; }
.guide ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.guide li { margin-bottom: 6px; }
.guide p { margin-top: 10px; }
pre.template {
  white-space: pre-wrap; background: var(--soft); border-radius: 10px; padding: 16px;
  font-family: inherit; font-size: 14px; color: var(--text-2); margin: 12px 0;
}
.copy-label { display: inline-block; transition: filter 200ms ease, opacity 200ms ease; }
.copy-label.swap { filter: blur(2px); opacity: 0; }

/* ---------- Legal ---------- */
.legal h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.03em; font-weight: 600; }
.legal h2 { font-size: 20px; margin-top: 36px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--text-2); }

/* ---------- Móvil ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
  .dossier { justify-self: stretch; max-width: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  section { padding: 52px 0; }
  .lead { font-size: 17px; }
  .cta-row .btn { width: 100%; }
  .cta-row { gap: 12px; }
  .price-note { width: 100%; text-align: center; }
  .logo { font-size: 15px; }
}

/* ---------- Reducir movimiento: menos y más suave, no cero ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stagger, .chip, .tick::after { animation: fadein 200ms ease forwards; transform: none; animation-delay: 0ms; }
  .bar span { animation: none; transform: none; }
  details[open] p { animation: none; }
  .btn:active { transform: none; }
  .swapping { filter: none; }
}
@keyframes fadein { to { opacity: 1; } }

/* ---------- Entrar (acceso de socios) ---------- */
.header-right { display: flex; align-items: center; gap: 12px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none; padding: 6px 4px; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav-link:hover { color: var(--text); } }
.login { padding-top: 72px; padding-bottom: 72px; }
.login-card {
  max-width: 440px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 32px 28px; box-shadow: var(--shadow-lg);
}
.login-card h1 { font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 10px; }
.login-card .lead { font-size: 15px; margin-bottom: 22px; }
.login-card label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.login-card input {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); margin-bottom: 14px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.login-card input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08); }
.btn:disabled { opacity: 0.6; cursor: default; }
.form-msg { font-size: 14px; border-radius: 10px; padding: 12px 14px; margin: 14px 0 0; }
.form-msg.ok { background: rgba(22, 163, 74, 0.08); color: #14532d; }
.form-msg.bad { background: rgba(209, 44, 47, 0.08); color: #8a1c1e; }
.form-msg.bad { background: rgba(229, 56, 59, 0.08); color: #8a1c1e; }
.form-msg.warn { background: #fff7e6; color: #7a4a00; margin: 0 0 16px; }
.login-alt { font-size: 14px; color: var(--muted); margin: 20px 0 0; text-align: center; }
.login-alt a { color: var(--text); font-weight: 500; text-underline-offset: 3px; }
@media (max-width: 560px) { .nav-link { font-size: 13px; } .login { padding-top: 40px; } }

/* ---------- Pase Impeccable ---------- */
/* Acción del hero: elegir ciudad y suscribirse, en un solo bloque */
.hero-action {
  display: flex; align-items: stretch; gap: 8px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); max-width: 560px;
}
.hero-action .field { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 4px 10px; min-width: 0; }
.hero-action label { font-size: 12px; font-weight: 500; color: var(--muted); }
.hero-action select {
  font: inherit; font-size: 16px; font-weight: 600; color: var(--text); border: 0; background: transparent;
  padding: 2px 22px 2px 0; margin-left: -1px; cursor: pointer; -webkit-appearance: none; appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") right 0 center / 16px no-repeat;
}
.hero-action select:focus-visible { outline-offset: 4px; }
.hero-action .btn { flex: none; }
.price-note { margin: 14px 0 0 4px; }

/* "Qué incluye": título a un lado, filas al otro (no tarjetas iguales) */
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.split-head { position: sticky; top: 96px; }
.split-head .sub { margin-bottom: 0; }
.features { border-top: 1px solid var(--line); }
.feature { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.feature .ico { margin: 2px 0 0; flex: none; }
.feature h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; max-width: 60ch; }

/* Objetivos táctiles más cómodos */
.langs button { min-height: 32px; }
.nav-link { min-height: 32px; display: inline-flex; align-items: center; }
.amount, .num, .price-note strong { font-variant-numeric: tabular-nums; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split-head { position: static; }
}
@media (max-width: 560px) {
  .hero-action { flex-direction: column; padding: 8px; }
  .hero-action .field { padding: 8px 10px 10px; }
  .hero-action .btn { width: 100%; }
  .price-note { text-align: center; margin-left: 0; }
  .langs button { min-height: 36px; padding: 6px 10px; }
  .langs .langs-active span { padding: 6px 10px; line-height: 24px; }
  .nav-link { min-height: 36px; }
}
.langs .langs-active span { display: flex; align-items: center; justify-content: center; }
.hero-action select { min-height: 40px; }
.logo { min-height: 40px; }

/* ---------- Pase Taste ---------- */
/* El hero ocupa la primera pantalla él solo */
.hero-screen { padding: 0; }
.hero-screen .hero {
  min-height: calc(100svh - 61px); padding-top: 48px; padding-bottom: 48px;
  grid-template-columns: 1fr 1fr; gap: 64px;
}
.hero h1 { font-size: clamp(36px, 4.6vw, 58px); }
.hero-visual { position: relative; align-self: stretch; display: flex; align-items: center; }
.photo { display: block; width: 100%; object-fit: cover; border-radius: 20px; background: var(--soft); }
.hero-visual .photo { height: min(72svh, 640px); }
.hero-visual .dossier {
  position: absolute; left: -40px; bottom: 28px; width: 300px; max-width: none; padding: 18px;
  justify-self: auto;
}
.hero-visual .checks li { padding: 8px 0; font-size: 13px; }
.price-note { font-size: 14px; color: var(--muted); }

/* Secciones de una o dos pantallas, con aire */
section.screen { min-height: min(100svh, 900px); display: flex; align-items: center; padding: 88px 0; }
section.screen > .wrap { width: 100%; }
.band { background: #f2f1ee; }
.side-photo { margin-top: 28px; aspect-ratio: 4 / 3; height: auto; }
.split.reverse { grid-template-columns: 1fr 1fr; align-items: center; }
.steps-photo { aspect-ratio: 4 / 5; height: auto; max-height: 640px; }
.split.reverse .steps { grid-template-columns: 1fr; }
.split.reverse .steps li { box-shadow: none; }

/* Precio y transparencia lado a lado */
.price-grid { display: grid; grid-template-columns: 420px 1fr; gap: 28px; align-items: start; margin-top: 32px; text-align: left; }
.price-grid .price-card { margin: 0; max-width: none; }
.pricing h2 { text-align: left; }

/* Cierre: foto a todo lo ancho con la acción principal */
.close { position: relative; min-height: min(80svh, 720px); display: flex; align-items: flex-end; padding: 0; overflow: hidden; color: #fff; }
.close-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.close::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.62), rgba(0,0,0,0.08) 60%); }
.close-inner { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.close h2 { color: #fff; margin: 0; max-width: 14ch; font-size: clamp(32px, 4.4vw, 56px); }
.close .btn { box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); }

/* Pie: créditos de las fotos en una línea */
.credits a { color: var(--muted); }

/* Micro-interacciones: el botón sube al pasar y se hunde al pulsar; los enlaces dibujan su subrayado */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .btn:hover:active { transform: translateY(0) scale(0.97); }
  footer a, .login-alt a {
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat;
    transition: background-size 220ms var(--ease-out), color 200ms ease;
  }
  footer a:hover, .login-alt a:hover { background-size: 100% 1px; }
}

@media (max-width: 1080px) {
  .hero-visual .dossier { left: 16px; }
}
@media (max-width: 820px) {
  .hero-screen .hero { grid-template-columns: 1fr; min-height: 0; gap: 32px; padding-top: 40px; }
  .hero-visual { display: block; padding-bottom: 150px; }
  .hero-visual .photo { height: 360px; }
  .hero-visual .dossier { left: 16px; right: 16px; bottom: 0; width: auto; }
  section.screen { min-height: 0; padding: 64px 0; }
  .split.reverse { grid-template-columns: 1fr; }
  .steps-photo { aspect-ratio: 4 / 3; }
  .price-grid { grid-template-columns: 1fr; }
  .close-inner { padding-bottom: 48px; }
}
@media (max-width: 560px) {
  .hero-visual .photo { height: 280px; border-radius: 16px; }
  .close .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

/* Botón "i" de transparencia: el texto solo aparece al pulsarlo */
.price-grid { grid-template-columns: 420px auto; }
.info { position: relative; align-self: end; }
.info-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--muted);
  transition: transform 160ms var(--ease-out), color 200ms ease, border-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.info-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.info-btn:active { transform: scale(0.95); }
.info-btn[aria-expanded="true"] { color: var(--text); border-color: var(--text); }
@media (hover: hover) and (pointer: fine) { .info-btn:hover { color: var(--text); border-color: var(--text); } }
.info-panel {
  position: absolute; left: 0; bottom: calc(100% + 10px); width: min(420px, calc(100vw - 32px)); z-index: 5;
  box-shadow: var(--shadow-lg);
  transform-origin: bottom left; opacity: 0; transform: scale(0.97) translateY(4px);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.info-panel.open { opacity: 1; transform: none; }
@media (max-width: 820px) {
  .price-grid { grid-template-columns: 1fr; }
  .info { align-self: start; }
  .info-panel { position: static; width: auto; margin-top: 10px; transform-origin: top left; }
}
@media (prefers-reduced-motion: reduce) { .info-panel { transform: none; } }
.info-panel[hidden] { display: none; }
