@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --bg: #ffffff;
  --bg-elev: #f6f7f9;
  --bg-soft: #eef1f5;
  --line: rgba(18, 20, 23, 0.1);
  --line-strong: rgba(18, 20, 23, 0.16);
  --text: #1a1d1c;
  --muted: #5c6570;
  --faint: #8b939c;
  --accent: #e30613;
  --accent-hover: #c10510;
  --accent-dim: rgba(227, 6, 19, 0.08);
  --wa: #1f9e4b;
  --danger: #c24141;
  --radius: 14px;
  --max: 1120px;
  --header: 92px;
  --font-serif: "Poppins", system-ui, sans-serif;
  --font-sans: "Poppins", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  padding-top: var(--header);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

ul {
  list-style: none;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 14px;
  z-index: 100;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  padding-inline: 24px;
  margin-inline: auto;
  box-sizing: border-box;
}

.wrap-wide {
  width: 100%;
  max-width: 1280px;
  padding-inline: 24px;
  margin-inline: auto;
  box-sizing: border-box;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 80;
  height: var(--header);
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1280px;
  padding-inline: 24px;
  margin-inline: auto;
  box-sizing: border-box;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
  padding-right: 8px;
}

.brand-mark {
  height: 62px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.brand-name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.brand-logo,
.mark,
.brand-text {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 26px;
  min-width: 0;
}

.nav a {
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.25s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-gold {
  background: var(--accent);
  color: #fff;
}

.btn-gold:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-line {
  padding: 0;
  min-height: 0;
  letter-spacing: 0.12em;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.btn-line:hover {
  border-bottom-color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header));
  display: grid;
  align-items: center;
  padding: 72px 0 80px;
  overflow: visible;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 85% 0%, rgba(227, 6, 19, 0.08), transparent 55%),
    linear-gradient(180deg, #f7f9fc 0%, var(--bg) 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -4px;
  background: url("../img/sello-ramallo.png") center / contain no-repeat;
}

.hero h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 16ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-lead {
  margin-top: 28px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 17px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-aside {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: grid;
  gap: 22px;
}

.stat {
  display: grid;
  gap: 4px;
}

.stat b {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
}

.stat span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Trust */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--bg-elev);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-item {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.trust-item strong {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 4px;
}

/* Sections */
section {
  padding: 96px 0;
}

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 48px;
  max-width: 640px;
}

.section-head h2,
.page-hero h1,
.tool-hero h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.lede {
  color: var(--muted);
  font-size: 17px;
  font-weight: 300;
  max-width: 54ch;
}

.split-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 48px;
}

.split-head .section-head {
  margin: 0;
}

/* Cards / doors */
.doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.doors-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
  .doors-4 {
    grid-template-columns: 1fr 1fr;
  }
}

.door {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 8px 24px rgba(18, 20, 23, 0.04);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.door:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.door-num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.door h3 {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: auto 0 10px;
}

.door p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.door span {
  margin-top: auto;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Isologo e iconos de trámite */
.door::before,
.guide-card::before,
.tool-card::before,
.step::before,
.trust-item::before,
div.door::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  background: url("../img/sello-ramallo.png") center / contain no-repeat;
  flex-shrink: 0;
}

.trust-item::before {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
}

.step::before {
  width: 44px;
  height: 44px;
}

.tool-card.featured::before {
  width: 64px;
  height: 64px;
}

.trust-item:nth-child(1)::before,
.step:nth-child(4)::before {
  background-image: url("../img/ico-check.svg");
}

.trust-item:nth-child(2)::before,
div.door:nth-child(1)::before {
  background-image: url("../img/ico-user.svg");
}

.trust-item:nth-child(3)::before,
.step:nth-child(2)::before,
div.door:nth-child(2)::before {
  background-image: url("../img/ico-tag.svg");
}

.trust-item:nth-child(4)::before,
div.door:nth-child(3)::before {
  background-image: url("../img/ico-lock.svg");
}

.step:nth-child(1)::before {
  background-image: url("../img/ico-chat.svg");
}

.step:nth-child(3)::before {
  background-image: url("../img/ico-file.svg");
}

.door[href*="sucesion"]::before,
.guide-card[href*="sucesion"]::before,
.guide-card[href*="testamento"]::before,
.guide-card[href*="declaratoria"]::before,
.tool-card[href*="sucesion"]::before {
  background-image: url("../img/ico-sucesion.svg");
}

.door[href*="divorcio"]::before,
.guide-card[href*="divorcio"]::before,
.guide-card[href*="ganancial"]::before,
.guide-card[href*="compensacion"]::before,
.guide-card[href*="prenupcial"]::before,
.guide-card[href*="comunicacion"]::before,
.guide-card[href*="visitas"]::before,
.tool-card[href*="divorcio"]::before {
  background-image: url("../img/ico-divorcio.svg");
}

.door[href*="alimento"]::before,
.guide-card[href*="alimento"]::before,
.guide-card[href*="canasta"]::before,
.guide-card[href*="cuota"]::before,
.tool-card[href*="alimento"]::before {
  background-image: url("../img/ico-alimentos.svg");
}

.door[href*="reajuste"]::before,
.door[href*="jubilatorio"]::before,
.guide-card[href*="reajuste"]::before,
.guide-card[href*="jubilatorio"]::before,
.guide-card[href*="retroactivo"]::before,
.tool-card[href*="reajuste"]::before {
  background-image: url("../img/ico-reajuste.svg");
}

.door[href*="civil"]::before,
.guide-card[href*="civil"]::before,
.tool-card[href*="civil"]::before {
  background-image: url("../img/ico-civil.svg");
}

.guide-card[href="index.html"]::before,
.guide-card[href*="guias/index"]::before {
  background-image: url("../img/ico-guias.svg");
}

/* Hero con foto */
.hero-visual {
  position: relative;
}

.hero-photo {
  width: 100%;
  height: min(560px, 70svh);
  object-fit: cover;
  object-position: center 18%;
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(18, 20, 23, 0.12);
  background: var(--bg-elev);
}

.hero-mark {
  position: absolute;
  left: 16px;
  bottom: 96px;
  width: 84px;
  height: 84px;
  filter: drop-shadow(0 10px 24px rgba(227, 6, 19, 0.28));
  pointer-events: none;
}

.hero-visual .hero-aside {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: auto;
  border: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(18, 20, 23, 0.1);
  display: flex;
  gap: 18px;
  backdrop-filter: blur(10px);
}

.hero-visual .stat b {
  font-size: 22px;
}

.hero-visual .stat span {
  letter-spacing: 0.06em;
  font-size: 11px;
}

/* Marca de agua del isologo en landings */
.page-hero,
.tool-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::after,
.tool-hero::after,
.cta-band::after {
  content: "";
  position: absolute;
  right: -32px;
  top: -24px;
  width: 260px;
  height: 260px;
  background: url("../img/sello-ramallo.png") center / contain no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  top: auto;
  bottom: -40px;
  right: 8%;
  width: 180px;
  height: 180px;
  opacity: 0.1;
}

.page-hero .wrap,
.tool-hero {
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand::before {
  content: "";
  width: 40px;
  height: 40px;
  background: url("../img/sello-ramallo.png") center / contain no-repeat;
  flex-shrink: 0;
}

.portrait::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 64px;
  height: 64px;
  background: url("../img/sello-ramallo.png") center / contain no-repeat;
  filter: drop-shadow(0 8px 16px rgba(18, 20, 23, 0.2));
}

.side-card::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  background: url("../img/sello-ramallo.png") center / contain no-repeat;
}

/* Tools */
.tools {
  background: var(--bg-elev);
}

.tool-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.tool-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(18, 20, 23, 0.04);
}

.tool-card.featured {
  min-height: 100%;
  justify-content: space-between;
}

.tool-card h3 {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.tool-stack {
  display: grid;
  gap: 18px;
}

.chip {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  padding: 32px 24px 8px 0;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
  padding-right: 0;
}

.step b {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 10px;
}

.step p {
  color: var(--muted);
  font-size: 14px;
}

/* About teaser */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.portrait {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-elev);
  position: relative;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.portrait-mono {
  font-family: var(--font-serif);
  font-size: 92px;
  letter-spacing: 0.08em;
  color: var(--accent);
  opacity: 0.9;
}

.portrait-cap {
  position: absolute;
  left: 20px;
  bottom: 18px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-copy h2 {
  margin-bottom: 18px;
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 16px;
}

.creds {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}

.creds li {
  padding-left: 16px;
  position: relative;
  color: var(--text);
  font-size: 14px;
}

.creds li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

/* FAQ */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item button {
  width: 100%;
  text-align: left;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 17px;
  font-family: var(--font-sans);
  font-weight: 500;
}

.faq-item button span {
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1;
}

.faq-item .faq-a {
  display: none;
  padding: 0 0 22px;
  color: var(--muted);
  max-width: 70ch;
}

.faq-item.open .faq-a {
  display: block;
}

/* CTA band */
.cta-band {
  padding: 88px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  background: var(--bg-elev);
}

.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 400;
  margin: 12px 0 16px;
}

.cta-band p {
  color: var(--muted);
  margin-bottom: 28px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 120px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
}

.footer-grid h3 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-grid a:hover {
  color: var(--text);
}

.legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--faint);
  font-size: 12px;
}

/* Page hero */
.page-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  margin-top: 18px;
  color: var(--muted);
  max-width: 58ch;
  font-size: 18px;
  font-weight: 300;
}

.prose {
  display: grid;
  gap: 18px;
  max-width: 72ch;
}

.prose h2 {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 18px;
}

.prose h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  margin-top: 8px;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul,
.prose ol {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg-elev);
  position: sticky;
  top: calc(var(--header) + 20px);
}

.side-card h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 10px;
}

.side-card p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* Forms */
.form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  min-height: 48px;
  padding: 12px 14px;
  outline: none;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field select option {
  background: #fff;
  color: #121417;
}

code {
  font-size: 0.92em;
  color: var(--accent);
}

.wizard-step h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 8px;
}

.wizard-step > .btn,
.wizard-step > .hero-actions {
  margin-top: 18px;
}

.form-note {
  font-size: 12px;
  color: var(--faint);
}

/* Tools UI */
.tool-hero {
  padding: 64px 0 24px;
}

.tool-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 32px;
  padding-bottom: 80px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg);
  box-shadow: 0 8px 24px rgba(18, 20, 23, 0.04);
}

.panel h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 20px;
}

.result {
  display: none;
}

.result.show {
  display: grid;
  gap: 12px;
}

.result-value {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1.1;
  color: var(--accent);
}

.result-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px 0 4px;
}

.result-metric {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.result-metric span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.result-metric b {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}

.result-verdict {
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.45;
}

.result-verdict.ok {
  background: #eef8f1;
  color: #146c36;
}

.result-verdict.warn {
  background: #f7f4ee;
  color: #6b5420;
}

.result-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 16px;
}

.result-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.result-list b {
  color: var(--text);
  font-weight: 500;
}

.disclaimer {
  font-size: 12px;
  color: var(--faint);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 8px;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  min-height: 72px;
  background: #fff;
}

.choice.active,
.choice:hover {
  border-color: var(--accent);
}

.choice small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.wizard-step {
  display: none;
  gap: 16px;
}

.wizard-step.active {
  display: grid;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.check-list li::before {
  content: "–";
  color: var(--accent);
}

/* Float + mobile bar */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(31, 158, 75, 0.35);
}

.wa-float:hover {
  background: #188c42;
}

.panel .lede {
  color: var(--muted);
  margin-bottom: 16px;
}

.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  gap: 8px;
}

.mobile-bar .btn {
  flex: 1;
}

/* Mobile nav */
.nav-overlay {
  display: none;
}

@media (max-width: 1480px) {
  .header-cta .btn-ghost {
    display: none;
  }
}

@media (max-width: 1280px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .nav.open {
    --nav-row: 56px;
    display: flex;
    position: fixed;
    top: var(--header);
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    height: calc(var(--nav-row) * 3.5);
    max-height: calc(var(--nav-row) * 3.5);
    background: #e8ebf0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex: none;
    padding: 0 16px;
    gap: 0;
    z-index: 70;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 18px 32px rgba(18, 20, 23, 0.12);
  }

  .nav.open a {
    flex: 0 0 var(--nav-row);
    min-height: var(--nav-row);
    display: flex;
    align-items: center;
    font-size: 18px;
    white-space: nowrap;
    padding: 0 8px;
    border-bottom: 1px solid rgba(18, 20, 23, 0.1);
    color: var(--text);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .tool-grid,
  .about-grid,
  .two-col,
  .tool-layout,
  .split-head,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .doors,
  .doors-4,
  .steps,
  .trust-row {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .header-cta .btn-ghost {
    display: none;
  }

  .nav.open {
    --nav-row: 56px;
    display: flex;
    position: fixed;
    top: var(--header);
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    height: calc(var(--nav-row) * 3.5);
    max-height: calc(var(--nav-row) * 3.5);
    background: #e8ebf0;
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px;
    gap: 0;
    z-index: 70;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 18px 32px rgba(18, 20, 23, 0.12);
  }

  .nav.open a {
    flex: 0 0 var(--nav-row);
    min-height: var(--nav-row);
    display: flex;
    align-items: center;
    font-size: 18px;
    white-space: nowrap;
    padding: 0 8px;
    border-bottom: 1px solid rgba(18, 20, 23, 0.1);
    color: var(--text);
  }

  .side-card {
    position: static;
  }

  .hero {
    min-height: auto;
    padding: 48px 0 56px;
  }

  .hero-photo {
    height: 420px;
  }

  .hero-visual .hero-aside {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand-mark {
    height: 52px;
  }
}

@media (max-width: 700px) {
  :root {
    --header: 64px;
  }

  .wrap,
  .wrap-wide,
  .header-inner {
    width: 100%;
    padding-inline: 16px;
  }

  .header-cta .btn-gold {
    display: none;
  }

  .header-inner {
    gap: 10px;
  }

  .brand {
    gap: 10px;
  }

  .doors,
  .doors-4,
  .steps,
  .trust-row,
  .choice-row {
    grid-template-columns: 1fr;
  }

  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
  }

  .hero-photo {
    height: 340px;
  }

  .hero-mark {
    width: 64px;
    height: 64px;
    bottom: auto;
    top: 12px;
    left: 12px;
  }

  .hero-visual .hero-aside {
    position: static;
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .brand-sub {
    display: none;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-mark {
    height: 42px;
  }

  .wa-float {
    display: none;
  }

  .mobile-bar {
    display: flex;
  }

  .site-footer {
    padding-bottom: 140px;
  }

  .legal {
    flex-direction: column;
  }

  section {
    padding: 72px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

/* Guías / artículos SEO */
.crumbs {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}

.crumbs a {
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--accent);
}

.article-meta {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.answer {
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 12px 12px 0;
  padding: 20px 22px;
}

.answer strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0;
  text-transform: none;
}

.answer p {
  color: var(--text);
  margin: 0;
}

.toc {
  border: 1px solid var(--line);
  padding: 18px 22px;
}

.toc p {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.toc a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 7px;
}

.toc a:hover {
  color: var(--text);
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 6px 0 10px;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--line);
  padding: 11px 8px;
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--accent);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.guide-card {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  box-shadow: 0 8px 24px rgba(18, 20, 23, 0.04);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.guide-card:hover {
  border-color: var(--accent);
}

.guide-card small {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.guide-card h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  margin: 12px 0 8px;
}

.guide-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.guide-card span {
  margin-top: auto;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.related {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.related a {
  display: block;
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-size: 14px;
}

.related a:hover {
  border-color: var(--accent);
}

.related small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

@media (max-width: 980px) {
  .guide-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .result-metrics {
    grid-template-columns: 1fr;
  }

  .prose {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .prose table {
    font-size: 13px;
  }

  .hero-actions,
  .cta-actions {
    flex-wrap: wrap;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }
}

.search-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-cloud a,
.search-cloud span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.search-cloud a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.facts {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.facts div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.facts div:last-child {
  border-bottom: 0;
}

.facts dt,
.facts b {
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 700px) {
  .facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
