/* Propuesta New Red: web version of Propuesta_New_Red_TG_Visuals_v3.pdf, same layout and palette. */
:root {
  --black: #0c0c10;
  --ink: #16161c;
  --muted: #5b5f6b;
  --violet: #7c3aed;
  --violet-2: #5b21b6;
  --violet-soft: #c4b5fd;
  --lav: #f2eefd;
  --lav-line: #c9b8f7;
  --line: #e6e2f0;
  --white: #fff;
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: 16px;
  --tabs: 60px;
  color-scheme: light;
}
@media (min-width: 600px) { :root { --gutter: 28px; } }
@media (min-width: 960px) { :root { --gutter: 40px; --tabs: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--tabs) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1rem/1.55 var(--font); overflow-x: clip; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
strong { font-weight: 700; }
::selection { background: var(--violet); color: var(--white); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--violet); color: var(--white); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- hero (page 1 header) ---------- */
.hero {
  color: var(--white);
  background:
    repeating-radial-gradient(circle at 100% 0%, rgb(124 58 237 / 0) 0 38px, rgb(124 58 237 / 0.07) 39px 40px),
    radial-gradient(ellipse 70% 90% at 100% 0%, rgb(91 33 182 / 0.75), transparent 70%),
    var(--black);
  border-bottom: 6px solid var(--violet);
  padding: 28px 0 40px;
}
.hero__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.02em; }
.badge { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--violet); font-size: 0.6875rem; font-weight: 700; }
.hero__date { color: var(--violet-soft); font-size: 0.875rem; }
.eyebrow { margin-top: 56px; color: var(--violet-soft); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.hero__title { margin-top: 12px; max-width: 17ch; font-size: clamp(2rem, 8vw, 3.25rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }
.hero__title em { font-style: normal; color: var(--violet-soft); }
.hero__meta { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 0.12); display: grid; gap: 16px; }
.hero__meta dt { color: var(--violet-soft); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.hero__meta dd { margin-top: 4px; font-weight: 700; }
.hero__meta a { text-decoration: underline; text-decoration-color: rgb(196 181 253 / 0.6); text-underline-offset: 4px; display: inline-block; padding: 4px 0; }
.hero__cta { margin-top: 32px; display: grid; gap: 10px; }
@media (min-width: 600px) {
  .hero { padding: 40px 0 44px; }
  .hero__meta { grid-template-columns: 1.5fr 1fr; }
  .hero__cta { display: flex; flex-wrap: wrap; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px;
  background: var(--violet); color: var(--white);
  font: 700 1rem/1.2 var(--font); text-decoration: none;
  transition: background-color 180ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:hover { background: var(--violet-2); }
.btn:active { transform: scale(0.97); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35); }
.btn--ghost:hover { background: rgb(255 255 255 / 0.08); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 0.875rem; }
.wa-ico { width: 20px; height: 20px; flex: none; }
.btn--sm .wa-ico { width: 18px; height: 18px; }

.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--violet); color: var(--white);
  box-shadow: 0 8px 24px rgb(91 33 182 / 0.45);
  transition: transform 160ms var(--ease-out);
}
.fab svg { width: 30px; height: 30px; }
.fab:active { transform: scale(0.94); }
@media (min-width: 960px) { .fab { display: none; } }

/* ---------- "Saltar a" tabs (sticky menu) ---------- */
.tabs-wrap { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tabs-in { display: flex; align-items: center; gap: 12px; height: var(--tabs); }
.tabs__k { flex: none; display: none; color: var(--muted); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.tabs {
  flex: 1; display: flex; gap: 8px; min-width: 0; height: 100%; align-items: center;
  overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; display: grid; place-items: center; min-height: 42px; padding: 0 16px;
  background: var(--lav); color: var(--violet); border-bottom: 2px solid var(--violet);
  font-size: 0.875rem; font-weight: 700; text-decoration: none;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.tabs a:hover { background: #e6dcfc; }
.tabs a.is-active { background: var(--violet); color: var(--white); }
.tabs__wa { display: none; }
@media (min-width: 600px) { .tabs__k { display: block; } }
@media (min-width: 960px) {
  .tabs { margin-right: 0; padding-right: 0; overflow: visible; }
  .tabs a { flex: 1; }
  .tabs-in .tabs__wa { display: inline-flex; flex: none; }
}

/* ---------- sections ---------- */
.sec { padding-top: 48px; }
@media (min-width: 960px) { .sec { padding-top: 64px; } }
.sec__h { display: flex; align-items: center; gap: 16px; font-size: clamp(1.375rem, 5.4vw, 1.75rem); font-weight: 700; line-height: 1.2; }
.num { flex: none; display: grid; place-items: center; width: 42px; height: 42px; background: var(--violet); color: var(--white); font-size: 0.75rem; font-weight: 700; }
.lead { margin-top: 12px; color: var(--muted); }
.prose { margin-top: 18px; display: grid; gap: 10px; }
.fine { margin-top: 12px; color: var(--muted); font-size: 0.875rem; }

/* 01 stat cards */
.stats { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat, .price { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 18px 16px; background: var(--lav); border-top: 5px solid var(--violet); }
.stat__n, .price__n { font-size: clamp(1.4rem, 6.6vw, 1.9rem); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat__l, .price__l { color: var(--muted); font-size: 0.8125rem; }
.stat--violet { background: var(--violet); border-top-color: var(--violet-2); color: var(--white); }
.stat--black { background: var(--black); border-top-color: var(--violet); color: var(--white); }
.stat--violet .stat__l, .stat--black .stat__l { color: rgb(255 255 255 / 0.82); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 12px; } }

/* 02 includes */
.checks { margin-top: 22px; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--lav); }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--violet); }
@media (min-width: 760px) { .checks { grid-template-columns: 1fr 1fr; gap: 10px 12px; } }
.out { margin-top: 14px; padding: 20px; background: var(--black); color: var(--white); border-left: 5px solid var(--violet); display: grid; gap: 8px; }
.out h3 { font-size: 1rem; font-weight: 700; }
.out p { color: rgb(255 255 255 / 0.85); }
@media (min-width: 760px) { .out { grid-template-columns: 170px 1fr; gap: 20px; } }

/* 03 investment */
.prices { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.price__k { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; line-height: 1.3; margin-bottom: 6px; color: var(--muted); }
.price--ref { border-top-color: var(--lav-line); }
.price--ref .price__n { text-decoration-thickness: 3px; }
.price--black { background: var(--black); color: var(--white); }
.price--violet { background: var(--violet); border-top-color: var(--violet-2); color: var(--white); }
.price--black .price__k, .price--black .price__l { color: var(--violet-soft); }
.price--violet .price__k, .price--violet .price__l { color: rgb(255 255 255 / 0.85); }
.price--pct { border-top-color: var(--violet); }
.price--pct .price__n { color: var(--violet); }
@media (min-width: 760px) { .prices { grid-template-columns: repeat(4, 1fr); gap: 12px; } }

.split { margin-top: 16px; }
.split__total { color: var(--muted); font-size: 0.875rem; }
.split__total span { font-variant-numeric: tabular-nums; }
.split__bar { margin-top: 10px; display: flex; height: 10px; background: var(--lav); }
.split__seg { display: block; height: 100%; transform-origin: left center; }
.split__seg--a { width: 57.14%; background: var(--black); }
.split__seg--b { width: 42.86%; background: var(--violet); }
.split__boxes { margin-top: 10px; display: grid; }
.split__box { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; color: var(--white); min-width: 0; }
.split__box--a { background: var(--black); }
.split__box--b { background: var(--violet); }
.split__k { color: var(--violet-soft); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; }
.split__box--b .split__k { color: rgb(255 255 255 / 0.85); }
.split__n { font-size: clamp(1.5rem, 7vw, 1.9rem); font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.split__n small { font-size: 0.8125rem; font-weight: 700; }
@media (min-width: 600px) {
  .split__bar { display: none; }
  .split__boxes { grid-template-columns: 57.14% 42.86%; }
}

/* 04 guidelines table */
.rows { margin-top: 18px; border-left: 5px solid var(--violet); }
.rows > div { display: grid; gap: 4px; padding: 14px 16px; }
.rows > div:nth-child(odd) { background: var(--lav); }
.rows dt { font-weight: 700; }
@media (min-width: 760px) { .rows > div { grid-template-columns: 220px 1fr; gap: 20px; } }

/* 05 week */
.week { margin-top: 22px; display: grid; gap: 10px; }
.day { padding: 18px; background: var(--lav); border-top: 5px solid var(--violet); }
.day__k { color: var(--violet); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; }
.day h3 { margin-top: 6px; font-size: 1.1875rem; font-weight: 700; }
.day p { margin-top: 4px; }
.day--off { background: var(--black); color: var(--white); border-top-color: var(--lav-line); }
.day--off .day__k { color: var(--white); }
@media (min-width: 760px) { .week { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.pace { margin-top: 10px; padding: 16px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; background: linear-gradient(90deg, var(--violet-2), var(--violet)); color: var(--white); }
.pace strong { font-size: 1.1875rem; }

/* 06-07 spec cards */
.specs { margin-top: 18px; display: grid; gap: 8px; }
.specs > div { padding: 14px 16px; background: var(--lav); border-left: 5px solid var(--violet); }
.specs dt { color: var(--violet); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; }
.specs dd { margin-top: 2px; }
@media (min-width: 760px) { .specs { grid-template-columns: 1fr 1fr; gap: 8px 12px; } }

/* 08 next steps */
.steps { margin-top: 18px; display: grid; gap: 6px; border-left: 5px solid var(--violet); counter-reset: step; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: var(--lav); }
.steps li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--black); color: var(--white); font-weight: 700; font-size: 0.875rem; }

/* closing */
.close { margin-top: 22px; display: grid; background: var(--black); color: var(--white); border-bottom: 5px solid var(--violet); }
.close__h { padding: 24px 22px 0; font-size: 1.625rem; font-weight: 700; }
.close__who { padding: 8px 22px 22px; color: var(--violet-soft); font-weight: 700; }
.close__who a { display: inline-block; padding: 4px 0; text-underline-offset: 4px; }
.close__btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 16px 24px; background: var(--violet); color: var(--white); font-weight: 700; text-decoration: none; transition: background-color 180ms var(--ease-out); }
.close__btn:hover { background: var(--violet-2); }
@media (min-width: 760px) {
  .close { grid-template-columns: auto 1fr 30%; align-items: center; }
  .close__h { padding: 28px 16px 28px 28px; }
  .close__who { padding: 0 16px; }
  .close__btn { align-self: stretch; }
}

.foot { margin-top: 48px; padding-top: 16px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; }
@media (min-width: 960px) { .foot { padding-bottom: 32px; } }

/* ---------- motion (only with JS and without reduced motion) ---------- */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
  .split__seg, .split__box { transform: scaleX(0); transform-origin: left center; transition: transform 900ms var(--ease-out) 200ms; }
  .split__seg--b, .split__box--b { transition-delay: 900ms; }
  .split__box > * { opacity: 0; transition: opacity 400ms var(--ease-out) 1300ms; }
  .split.in .split__seg, .split.in .split__box { transform: none; }
  .split.in .split__box > * { opacity: 1; }
}
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) and (max-width: 599px) {
  /* stacked boxes on phones: the thin bar carries the proportion, boxes just fade */
  .split__box { transform: none; }
}

/* ---------- print: black and white ---------- */
@media print {
  @page { margin: 14mm; }
  :root { --violet: #000; --violet-2: #000; --violet-soft: #333; --lav: #fff; --lav-line: #999; --muted: #333; }
  body { font-size: 10.5pt; }
  .tabs-wrap, .fab, .skip, .hero__cta, .close__btn { display: none !important; }
  .reveal, .split__box > * { opacity: 1 !important; transform: none !important; }
  .split__seg, .split__box { transform: none !important; }
  .hero { background: none; color: #000; border-bottom: 3px solid #000; padding: 0 0 14pt; }
  .hero__meta { border-top-color: #999; }
  .eyebrow, .hero__date, .hero__meta dt, .hero__title em { color: #000; }
  .badge, .num, .steps li::before { background: #000; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .stat, .price, .checks li, .day, .specs > div, .rows > div, .steps li, .split__box, .out, .pace, .close {
    background: #fff !important; color: #000 !important; border: 1px solid #999; break-inside: avoid;
  }
  .stat, .price, .day { border-top: 4px solid #000; }
  .specs > div, .out { border-left: 4px solid #000; }
  .stat__l, .price__k, .price__l, .split__k, .out p, .close__who { color: #333 !important; }
  .checks svg { color: #000; }
  .split__boxes { grid-template-columns: 57.14% 42.86%; }
  .split__bar { display: none; }
  .close__h, .close__who { padding: 10pt; }
  .sec { padding-top: 18pt; }
  .sec__h { break-after: avoid; }
  a { text-decoration: none; }
  .foot { padding-bottom: 0; }
}
