/* ==========================================================================
   site.css — wpsmartcontracts.com. Sin frameworks.
   Identidad del sitio anterior: navy #001730, rosa #e42e6b, azul #15569c,
   Montserrat.
   ========================================================================== */

:root {
  --navy: #001730;
  --navy-2: #0a2547;
  --ink: #151515;
  --text: #2b3445;
  --muted: #5d677a;
  --line: #e3e7ef;
  --tint: #f5f7fc;
  --white: #fff;
  --pink: #e42e6b;
  --pink-2: #ee4a83;
  --pink-soft: #ffebf2;
  --blue: #15569c;
  --cyan: #38d6ff;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 23, 48, .08);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
  --header-h: 72px;
}

/* ---------- Base ---------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 17px/1.65 "Montserrat", system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pink);
}

/* ---------- Botones y links ---------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 28px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--pink); color: var(--white); }
.btn--primary:hover { background: var(--pink-2); }
.btn--ghost { border-color: var(--pink); color: var(--ink); }
.btn--ghost:hover { background: var(--pink); color: var(--white); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .9rem; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.actions--center { justify-content: center; }

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

.pill {
  display: inline-block; padding: 2px 10px; margin-right: 8px; border-radius: 999px;
  background: var(--pink-soft); color: var(--pink); font-size: .75rem; font-weight: 700;
}

/* ---------- Header --------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: var(--white);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.brand img { width: 176px; }

.nav { display: flex; align-items: center; gap: 18px; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--white); font-size: .9rem; font-weight: 500; text-decoration: none; cursor: pointer;
}
.nav__link:hover, .nav__link[aria-current] { color: var(--pink-2); }
.nav__group { position: relative; }
.nav__group summary { list-style: none; }
.nav__group summary::-webkit-details-marker { display: none; }
.nav__group summary::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.nav__menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; padding: 8px;
  background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.nav__menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: .9rem; text-decoration: none; }
.nav__menu a:hover { background: var(--pink-soft); color: var(--pink); }

.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px;
    background: none; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--white); position: relative; transition: transform .2s;
  }
  .nav-toggle__bars::before { position: absolute; top: -6px; }
  .nav-toggle__bars::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px var(--gutter) 24px; background: var(--navy);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { padding: 12px 4px; font-size: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav__menu { position: static; box-shadow: none; background: transparent; padding: 0 0 8px 12px; }
  .nav__menu a { color: rgba(255, 255, 255, .85); }
  .nav__menu a:hover { background: transparent; color: var(--pink-2); }
}

/* ---------- Secciones ------------------------------------------------------ */

.section { padding: var(--section) 0; }
.section--tint { background: var(--tint); }
.section--flush { padding-bottom: 0; }
.section--flush .suika-cta { margin-top: 0; }
.section--dark { background: var(--navy); color: rgba(255, 255, 255, .82); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section__head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section__head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section--dark .section__head p { color: rgba(255, 255, 255, .7); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* ---------- Hero ----------------------------------------------------------- */

.hero {
  position: relative; overflow-x: clip; padding: clamp(40px, 6vw, 72px) 0 0;
  /* Degradado e ilustración a sangre del sitio anterior. */
  background: linear-gradient(to right, #fff 0, #dffffe 43%, #e5e9fd 83%, #ffe4f0 127%);
}
/* Sin position en .hero__grid: la ilustración se ancla al borde de .hero, no al .wrap. */
.hero__grid { display: grid; align-items: center; min-height: clamp(460px, 44vw, 640px); }
.hero__copy { position: relative; z-index: 1; max-width: min(560px, 48%); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 560px; }
.hero__networks { margin: 22px 0 0; font-size: .85rem; color: var(--muted); }
.hero__art { position: absolute; top: 0; right: 0; bottom: 0; width: 56vw; max-width: 1137px; pointer-events: none; }
.hero__art img { width: 100%; height: 100%; object-fit: contain; object-position: right top; }

.stats {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin: clamp(32px, 5vw, 56px) 0 0; transform: translateY(50%);
  background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.stats li { display: flex; flex-direction: column; gap: 2px; padding: 22px 24px; background: var(--white); text-align: center; }
.stats strong { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; color: var(--blue); line-height: 1.1; }
.stats span { font-size: .85rem; color: var(--muted); }
.hero + .section { padding-top: calc(var(--section) + 60px); }

@media (max-width: 860px) {
  /* Móvil: recorte circular del hero, como en el sitio anterior. */
  .hero__grid { min-height: 0; gap: 32px; }
  .hero__copy { max-width: none; }
  .hero__art { position: static; width: 100%; max-width: 360px; justify-self: center; }
  .hero__art img { height: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Audiencias ----------------------------------------------------- */

.audience { display: flex; flex-direction: column; box-shadow: var(--shadow); }
.audience__img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.audience__body { padding: 28px clamp(22px, 3vw, 36px) 32px; }
.checks { margin: 16px 0 22px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--pink-soft); color: var(--pink); font-size: .7rem; font-weight: 800;
}

/* ---------- Pasos ---------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 28px 24px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 12px; background: var(--navy); color: var(--white); font-weight: 800;
}
.steps p { margin: 0; color: var(--muted); }

/* ---------- Roadmap -------------------------------------------------------- */

.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 28px; }
.roadmap__item img { width: 100%; aspect-ratio: 800 / 549; object-fit: contain; margin-bottom: 12px; }
.roadmap__item p { color: var(--muted); margin: 0; }

/* ---------- Flavors -------------------------------------------------------- */

.flavor-group { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.flavor-group__head h3 { color: var(--cyan); font-size: 1.4rem; }
.flavor-group__head p { font-size: .95rem; margin: 0; }
.flavors { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.flavor {
  display: flex; flex-direction: column; align-items: center; gap: 2px; height: 100%;
  padding: 18px 10px; border-radius: var(--radius-sm); text-align: center; text-decoration: none;
  color: rgba(255, 255, 255, .7); font-size: .8rem;
  transition: background-color .2s, transform .2s;
}
.flavor:hover { background: var(--navy-2); transform: translateY(-3px); }
.flavor img { width: 64px; margin-bottom: 10px; }
.flavor strong { color: var(--white); font-size: 1rem; }

@media (max-width: 860px) {
  .flavor-group { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Features ------------------------------------------------------- */

.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature__body { padding: 24px; }
.feature__body p { color: var(--muted); }

/* ---------- Carriles horizontales (casos y testimonios) -------------------- */

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 360px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 20px; margin: 0 -4px;
  scrollbar-width: thin; scrollbar-color: var(--pink) transparent;
}
.rail > li { scroll-snap-align: start; }
.case img { width: 100%; aspect-ratio: 600 / 319; object-fit: cover; }
.case__body { padding: 20px 22px 24px; }
.case__body p { color: var(--muted); font-size: .95rem; }
.case__meta { font-size: .8rem !important; }
.fineprint { margin: 16px 0 0; font-size: .8rem; color: var(--muted); }

.quote { display: flex; flex-direction: column; padding: 24px; }
.quote__stars { margin: 0 0 8px; color: #f5b301; letter-spacing: 2px; }
.quote blockquote { margin: 0; flex: 1; color: var(--muted); }
.quote__who { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-weight: 600; color: var(--pink); }
.quote__who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

/* ---------- Split (auditorías) --------------------------------------------- */

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.split__img { max-width: 300px; justify-self: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- FAQ ------------------------------------------------------------ */

.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary {
  position: relative; padding: 18px 56px 18px 22px; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--pink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- CTA final ------------------------------------------------------ */

.cta-band {
  padding: clamp(40px, 6vw, 72px) var(--gutter); border-radius: calc(var(--radius) * 1.5); text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, #2c2459 60%, #6c2e7e 100%); color: rgba(255, 255, 255, .8);
}
.cta-band h2 { color: var(--white); }

.redirect { text-align: center; }
.redirect h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ---------- Páginas internas (catálogo) ----------------------------------- */

.page-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
  background: url("../img/ui/internal-hero-bg.png") center bottom / cover no-repeat,
              linear-gradient(to right, #fff 0, #dffffe 43%, #e5e9fd 83%, #ffe4f0 127%);
}
.page-hero__label { margin: 0 0 10px; font-size: .9rem; color: #636363; }
.page-hero h1 { font-weight: 900; }
.page-hero__card {
  justify-self: end; display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 635px; aspect-ratio: 635 / 423; margin: 0; padding: 24px;
  border-radius: 30px; background-color: #f8f9fb; background-repeat: no-repeat; background-position: center; background-size: cover;
}
.page-hero__card img { max-height: 100%; width: auto; }
.page-hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.page-hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 620px; }
.page-hero__img { max-height: 340px; width: auto; justify-self: end; border-radius: 30px; }
@media (max-width: 860px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__img { max-height: 220px; }
}

.prose-page { padding-top: clamp(40px, 6vw, 72px); padding-bottom: var(--section); }
.prose-page > h2, .prose-page .block > h2 { margin-top: clamp(40px, 6vw, 64px); }
.prose-page > h2:first-child { margin-top: 0; }
.prose-page h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); color: var(--blue); }
.page-bg .prose-page h2:not(.showcase__body h2, .dark-band h2, .suika-cta h2)::before {
  content: ""; display: inline-block; width: 30px; height: 33px; margin-right: 14px; vertical-align: -5px;
  background: url("../img/ui/heading-cube.png") center / contain no-repeat;
}
.prose-page h3 { margin-top: 1.4em; }
.prose-page p, .prose-page li { max-width: 78ch; }
.prose-page ul:not([class]), .prose-page ol:not([class]) { margin: 0 0 1.2em; padding-left: 1.3em; list-style: disc; }
.prose-page ol:not([class]) { list-style: decimal; }
.prose-page ul:not([class]) li { margin-bottom: .45em; }
.prose-page > img, .prose-page > p > img:only-child { max-height: 120px; width: auto; margin: 32px 0 8px; }
.prose-page .btn { margin: 8px 0 16px; }

.feature-row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: center;
  padding: clamp(32px, 5vw, 56px) 0;
  margin-inline: calc(50% - 50vw); padding-inline: max(var(--gutter), calc(50vw - var(--wrap) / 2 + var(--gutter)));
  background: url("../img/ui/blue-yello-purple-bg.png") center bottom / 100% auto no-repeat;
}
.feature-row--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-row--reverse figure { order: 2; }
.feature-row figure { margin: 0; padding: 8% 6%; background: url("../img/ui/drop-deature-bg.png") center / contain no-repeat; }
.feature-row figure img { margin: auto; max-height: 360px; width: auto; }
/* Fotos (jpg, sin transparencia): tarjeta redondeada en lugar del blob. */
.feature-row figure:has(img[src$=".jpg"]) { padding: 0; background: none; }
.feature-row figure img[src$=".jpg"] { width: 100%; max-height: none; border-radius: 30px; box-shadow: var(--shadow); }
.feature-row__body h2 { margin-top: 0 !important; }
.feature-row__body > :last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .feature-row, .feature-row--reverse { grid-template-columns: 1fr; }
  .feature-row--reverse figure { order: 0; }
  .feature-row figure img { max-height: 200px; }
}

.panel { margin: clamp(32px, 5vw, 56px) 0; padding: clamp(20px, 3vw, 36px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel > img:first-child { width: 56px; margin-bottom: 12px; }
.panel h3 { margin-top: 0; color: var(--blue); font-size: 1.35rem; }

.table-wrap { overflow-x: auto; margin: 16px 0 24px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--white); }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table-wrap tr:first-child th, .table-wrap thead th { background: var(--pink); color: var(--white); font-weight: 700; }
.table-wrap tr:first-child th a, .table-wrap thead th a { color: var(--white); }
.table-wrap th img { width: 44px; margin: 0 auto 6px; }
.table-wrap tbody tr:nth-child(even) td { background: var(--pink-soft); }
.table-wrap .num { text-align: right; white-space: nowrap; }
.table-wrap--compact { max-width: 520px; }
/* Tablas comparativas: columnas de flavors centradas (checks y cabeceras). */
.panel .table-wrap th:not(:first-child), .panel .table-wrap td:not(:first-child) { text-align: center; }
.panel .table-wrap th img { margin-inline: auto; }
.block--center { text-align: center; }
.block--center p { margin-inline: auto; }
.block--center .table-wrap { margin-inline: auto; text-align: left; }

.prose-page .rail { margin: 16px -4px 8px; }
.prose-page .rail .case__body p { font-size: .92rem; }

.fee { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.fee--free { color: #0a8a55; }
.fee--na { color: #aab2c0; font-weight: 400; }

.flavor-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; margin: 20px 0; }
.flavor-card { display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.flavor-card:hover { border-color: var(--pink); transform: translateY(-2px); }
.flavor-card img { width: 40px; flex: none; }
.flavor-card span { display: flex; flex-direction: column; line-height: 1.35; }
.flavor-card small { color: var(--muted); font-size: .8rem; }
.flavor-card .fee { font-size: .85rem; margin-top: 2px; }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-top: clamp(48px, 7vw, 80px); }
.related__item { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border-radius: var(--radius); background: var(--navy); color: rgba(255, 255, 255, .75); text-decoration: none; font-size: .92rem; transition: transform .2s; }
.related__item strong { color: var(--white); font-size: 1.05rem; }
.related__item strong::after { content: " →"; color: var(--pink-2); }
.related__item:hover { transform: translateY(-3px); }

.suika-cta {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: center;
  margin-top: clamp(48px, 7vw, 80px); padding: clamp(24px, 4vw, 44px);
  border: 2px solid var(--pink); border-radius: calc(var(--radius) * 1.3);
  background: linear-gradient(135deg, var(--white) 0%, var(--pink-soft) 100%);
  color: var(--text); text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.suika-cta:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.suika-cta h2 { margin-top: 0 !important; color: var(--ink) !important; }
.suika-cta .checks { margin: 12px 0 20px; }
.suika-cta__logo { width: 100%; max-width: 320px; justify-self: center; }
@media (max-width: 860px) {
  .suika-cta { grid-template-columns: 1fr; }
  .suika-cta__logo { order: -1; max-width: 220px; justify-self: start; }
}

.step-num { display: inline-grid; place-items: center; min-width: 34px; height: 34px; margin-right: 8px; padding: 0 6px; border-radius: 10px; background: var(--navy); color: var(--white); font-size: .95rem; vertical-align: middle; }
.prose-page--tutorial > img { max-height: none; width: auto; max-width: 100%; margin: 16px auto 28px; border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow); }
.prose-page code { padding: 2px 6px; border-radius: 6px; background: var(--tint); font-size: .88em; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(40px, 6vw, 64px); }
.pager a { display: flex; flex-direction: column; padding: 16px 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; color: var(--ink); }
.pager a:hover { border-color: var(--pink); }
.pager small { color: var(--muted); font-weight: 400; }
.pager__next { text-align: right; margin-left: auto; }

.pricing th[scope="row"] { background: var(--white) !important; color: var(--ink) !important; }
.pricing thead th small { display: block; font-weight: 400; opacity: .7; }
.pricing__group th { background: var(--tint) !important; color: var(--blue) !important; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.pricing__flavor { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 200px; }
.pricing__flavor img { width: 32px !important; margin: 0 !important; }
.pricing__flavor span { display: flex; flex-direction: column; line-height: 1.3; }
.pricing__flavor small { color: var(--muted); font-weight: 400; }

.page-bg { background: linear-gradient(to right, #fff 0, #dffffe 43%, #e5e9fd 83%, #ffe4f0 127%); }
.page-bg .table-wrap, .page-bg .panel { background: var(--white); }

.dark-band {
  position: relative; margin: clamp(48px, 7vw, 96px) calc(50% - 50vw) 0;
  padding: 200px max(var(--gutter), calc(50vw - var(--wrap) / 2 + var(--gutter))) 100px;
  /* Forma superior (206px) + relleno oscuro continuo hasta las olas inferiores (50px), sin huecos. */
  background: url("../img/ui/section-top-shape-2.png") center top / auto 206px no-repeat,
              url("../img/ui/bootom-black-waves.png") center bottom / auto 50px no-repeat,
              linear-gradient(#141414, #141414) left 0 top 200px / 100% calc(100% - 249px) no-repeat;
  color: rgba(255, 255, 255, .8);
}
.dark-band h2 { color: var(--white) !important; }
.dark-band h2 + h2 { color: var(--cyan) !important; font-size: 1.5rem; margin-top: 0 !important; }
.dark-band .fineprint, .dark-band p i { color: rgba(255, 255, 255, .6); }
.dark-band .case { color: var(--text); }

/* Showcase: tarjeta navy sobre imagen violeta (diseño del sitio anterior). */
.showcase { display: flex; flex-direction: column-reverse; margin: clamp(32px, 6vw, 72px) 0; }
.showcase__img { display: flex; align-items: center; justify-content: center; margin: 0 auto; width: calc(100% - 40px); padding: 24px; background: radial-gradient(50% 50% at 50% 50%, #6c2e7e 0%, #2c2459 100%); border-radius: 0 0 20px 20px; }
.showcase__img img { max-height: 400px; width: auto; }
.showcase__body { display: flex; flex-direction: column; justify-content: center; padding: 28px; background: var(--navy); border-radius: 20px; color: rgba(255, 255, 255, .82); }
.showcase__body h2 { margin-top: 0 !important; color: var(--white) !important; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.showcase__body p { max-width: none; }
.showcase__body .btn { align-self: flex-start; margin: 20px 0 0; }
@media (min-width: 768px) {
  .showcase { flex-direction: row; }
  .showcase--reverse { flex-direction: row-reverse; }
  .showcase__img { width: 60%; margin: 60px 0; border-radius: 20px 0 0 20px; }
  .showcase--reverse .showcase__img { border-radius: 0 20px 20px 0; }
  .showcase__body { width: 40%; padding: clamp(32px, 4.5vw, 60px); }
}

/* ---------- Docs ----------------------------------------------------------- */

.docs-hero { background: linear-gradient(to right, #fff 0, #dffffe 43%, #e5e9fd 83%, #ffe4f0 127%); padding: clamp(28px, 4vw, 48px) 0; }
.docs-hero h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.docs { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.docs-nav { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding: clamp(24px, 4vw, 40px) 0; font-size: .9rem; }
.docs-nav > details > summary { display: none; }
.docs-nav ul ul { margin: 4px 0 8px 12px; border-left: 2px solid var(--line); }
.docs-nav li { margin: 0; }
.docs-nav a, .docs-nav ul details > summary { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text); text-decoration: none; cursor: pointer; }
.docs-nav ul details > summary { font-weight: 600; color: var(--ink); }
.docs-nav a:hover { background: var(--pink-soft); color: var(--pink); }
.docs-nav a[aria-current] { background: var(--pink); color: var(--white); }
.docs__content { padding-top: clamp(24px, 4vw, 40px); min-width: 0; }
.prose-page--docs img { max-height: none; height: auto; width: auto; max-width: 100%; margin: 16px 0 24px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.prose-page--docs blockquote { margin: 20px 0; padding: 16px 20px; border-left: 4px solid var(--cyan); background: var(--tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose-page--docs blockquote p:last-child { margin-bottom: 0; }
.prose-page--docs pre { overflow-x: auto; padding: 18px; border-radius: var(--radius-sm); background: #0f1b2d; color: #e6edf6; font-size: .85rem; line-height: 1.55; }
.prose-page--docs pre code { background: none; padding: 0; color: inherit; }
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 0; }
  .docs-nav { position: static; max-height: none; padding-bottom: 0; }
  .docs-nav > details > summary { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; }
  .docs-nav > details > ul { margin-top: 8px; }
}

/* ---------- Blog ----------------------------------------------------------- */

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; margin: 24px 0; }
.post-card { display: flex; flex-direction: column; height: 100%; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__body { padding: 18px 20px 22px; }
.post-card__meta { margin: 0 0 6px; font-size: .8rem; color: var(--muted); }
.post-card__meta a { font-weight: 600; text-decoration: none; }
.post-card h3 { margin: 0; font-size: 1.08rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--pink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--text); text-decoration: none; }
.chips a:hover, .chips a[aria-current] { border-color: var(--pink); background: var(--pink); color: var(--white); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination a, .pagination span { min-width: 42px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; text-align: center; text-decoration: none; color: var(--text); }
.pagination [aria-current] { background: var(--navy); border-color: var(--navy); color: var(--white); }

.post-hero { padding: clamp(36px, 6vw, 64px) 0 0; background: linear-gradient(to right, #fff 0, #dffffe 43%, #e5e9fd 83%, #ffe4f0 127%); }
.post-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.post-hero__meta { color: var(--muted); font-size: .9rem; }
.post-hero__img { width: 100%; margin: 28px 0 -40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.prose-page--post { padding-top: 72px; }
.prose-page--post h2 { color: var(--ink); }
.prose-page--post blockquote.update { margin: 0 0 28px; padding: 16px 20px; border-left: 4px solid var(--pink); background: var(--pink-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose-page--post blockquote.update p { margin: 0; }
.prose-page--post img { max-height: none; height: auto; width: auto; max-width: 100%; margin: 20px auto; border-radius: var(--radius-sm); }
.eyebrow a { color: inherit; text-decoration: none; }

/* ---------- Footer --------------------------------------------------------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); font-size: .92rem; border-top: 3px solid var(--pink); }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; padding: 56px var(--gutter) 40px; }
.footer__brand img { width: 176px; margin-bottom: 16px; }
.footer__title { color: var(--white); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.site-footer a:hover { color: var(--pink-2); }
.footer__mail { color: var(--white) !important; }
.footer__social { background: #202020; }
.footer__social ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; padding-top: 14px; padding-bottom: 14px; }
.footer__social li { margin: 0; }
.footer__social img { width: 24px; height: 24px; object-fit: contain; opacity: .8; transition: opacity .2s; }
.footer__social a:hover img { opacity: 1; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 28px; font-size: .82rem; }
.footer__legal p { margin: 0; }
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__legal li { margin: 0; }

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
