/* =========================================================
   Qué cambiar para empezar distinto — propuesta para la Cámara de Comercio e Industria de Berisso
   Oscuro cálido de cierre de año: noche tibia, texto crema y un acento ámbar (el año que cambia).
   EDICIÓN RÁPIDA: colores acá; textos en index.html.
   ========================================================= */
@property --glow-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:root {
  --bg: #120f0c;
  --bg-2: #1a1611;
  --card: #211c16;
  --cream: #f1e9da;
  --cream-2: #d9cfbd;
  --mute: #a39883;
  --amber: #e9a23b;            /* el acento: lo que cambia */
  --amber-2: #f4c26f;
  --line: rgba(241, 233, 218, .14);
  --wrap: 1120px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--cream); font: 400 17px/1.62 var(--sans); }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; border-radius: 6px; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }

/* ---------- cabecera ---------- */
.mast { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; padding: max(20px, env(safe-area-inset-top)) 0 0; }
.mast-name { font-family: var(--serif); font-size: 1.3rem; }
.mast-for { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }

/* ---------- portada ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(44px, 8vw, 104px) 0 clamp(56px, 8vw, 110px); margin-top: -64px; padding-top: calc(clamp(44px, 8vw, 104px) + 64px); }
.hero-glow { position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background:
    radial-gradient(40% 50% at 78% 38%, rgba(233, 162, 59, .34), transparent 70%),
    radial-gradient(35% 40% at 20% 80%, rgba(180, 90, 40, .22), transparent 70%),
    conic-gradient(from var(--glow-a) at 70% 45%, rgba(233, 162, 59, .10), rgba(18, 15, 12, 0) 30%, rgba(244, 194, 111, .10) 60%, rgba(18, 15, 12, 0) 85%, rgba(233, 162, 59, .10));
  filter: blur(50px); animation: glow 18s linear infinite;
  -webkit-mask-image: linear-gradient(#000 55%, transparent 92%); mask-image: linear-gradient(#000 55%, transparent 92%); }
@keyframes glow { to { --glow-a: 360deg; } }
.hero-in { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "k k" "t y" "l y" "f f" "a a"; column-gap: 40px; }
.kicker { grid-area: k; }
.kicker, .label { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.hero-title { grid-area: t; font-family: var(--serif); font-weight: 400; font-size: clamp(3.1rem, 8.8vw, 7rem); line-height: .94; letter-spacing: -.02em; margin: 18px 0 22px; text-wrap: balance; }
.hero-title em { display: block; color: var(--amber-2); }
.hero-lead { grid-area: l; max-width: 40ch; font-size: clamp(1.06rem, 1.9vw, 1.26rem); line-height: 1.55; color: var(--cream-2); }

/* el año que cambia: el último dígito gira de 6 a 7 */
.year { grid-area: y; align-self: center; display: flex; font-family: var(--serif); font-size: clamp(5rem, 15vw, 13rem); line-height: 1; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.2px rgba(241, 233, 218, .38); user-select: none; }
.year-roll { position: relative; display: inline-block; height: 1em; overflow: hidden; }
.year-roll span { display: block; height: 1em; }
.y-new { color: var(--amber); -webkit-text-stroke: 0; }
html.js .year-roll span { transform: translateY(0); animation: roll 1.4s var(--ease) 1.6s forwards; }
@keyframes roll { to { transform: translateY(-100%); } }
html:not(.js) .y-old { display: none; }

.facts { grid-area: f; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.facts li { font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(241, 233, 218, .04); }
.facts .fact-main { background: var(--amber); color: #1b1309; border-color: var(--amber); }
.hero-actions { grid-area: a; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: transform .25s var(--ease), background .25s, box-shadow .25s; }
.btn-primary { background: var(--amber); color: #1b1309; box-shadow: 0 10px 30px -12px rgba(233, 162, 59, .7); }
.btn-primary:hover { transform: translateY(-2px); background: var(--amber-2); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(241, 233, 218, .06); }
.btn[hidden] { display: none; }

/* ---------- bloques ---------- */
.block { padding-top: clamp(64px, 10vw, 120px); }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -.015em; margin: 14px 0 26px; max-width: 22ch; text-wrap: balance; }
.body { max-width: 56ch; font-size: clamp(1.04rem, 1.6vw, 1.18rem); color: var(--cream-2); }

.repeats { display: grid; gap: 0; margin-bottom: 26px; border-top: 1px solid var(--line); }
.repeats li { padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(1.5rem, 3.6vw, 2.4rem); line-height: 1.15; color: var(--cream-2); }
.repeats span { font-style: italic; color: var(--amber-2); }

/* línea del año: tres estaciones */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 34px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 54px; height: 1px; background: linear-gradient(90deg, var(--line), var(--amber)); transform-origin: left; }
html.js .timeline::before { transform: scaleX(0); transition: transform 1.4s var(--ease) .2s; }
html.js .timeline.in::before { transform: none; }
.timeline li { position: relative; }
.tl-n { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); font-weight: 700; margin-bottom: 18px; }
.timeline li:last-child .tl-n { background: var(--amber); color: #1b1309; border-color: var(--amber); box-shadow: 0 0 0 6px rgba(233, 162, 59, .15); }
.timeline h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.1; margin-bottom: 8px; }
.timeline p { color: var(--cream-2); max-width: 30ch; }
.aside { display: flex; align-items: center; gap: 10px; margin-top: 30px; font-weight: 600; }
.aside-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); flex: none; }

.gains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gains li { display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: 20px; background: linear-gradient(180deg, var(--card), var(--bg-2)); border: 1px solid var(--line); }
.gains b { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--amber-2); }
.gains span { color: var(--cream-2); }

.who h2 { max-width: 20ch; }

/* ---------- próximo paso ---------- */
.next { margin-top: clamp(64px, 10vw, 120px); padding: clamp(32px, 6vw, 64px); border-radius: 28px; background: radial-gradient(60% 80% at 100% 0%, rgba(233, 162, 59, .16), transparent 70%), var(--card); border: 1px solid var(--line); }
.next h2 { margin-bottom: 22px; }
.next-list { counter-reset: n; display: grid; gap: 12px; max-width: 62ch; }
.next-list li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; font-size: 1.08rem; color: var(--cream-2); }
.next-list li::before { content: counter(n, decimal-leading-zero); font-weight: 700; color: var(--amber); font-size: .86rem; padding-top: 4px; }
.next-date { margin-top: 22px; max-width: 56ch; font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.3; color: var(--cream); }
.next-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.btn-big { min-height: 56px; padding: 0 34px; font-size: 1.08rem; }
.next-note { max-width: 46ch; color: var(--mute); font-size: .96rem; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 36px 0 max(36px, env(safe-area-inset-bottom)); color: var(--mute); font-size: .86rem; }

/* ---------- entrada al hacer scroll (el contenido se lee igual sin JS) ---------- */
html.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
html.js .rv.in { opacity: 1; transform: none; }
html.js .repeats .rv:nth-child(2), html.js .gains .rv:nth-child(2) { transition-delay: .1s; }
html.js .repeats .rv:nth-child(3), html.js .gains .rv:nth-child(3) { transition-delay: .2s; }

/* ---------- celular ---------- */
@media (max-width: 820px) {
  .wrap { width: calc(100% - 36px); }
  .mast { flex-direction: column; gap: 2px; }
  .hero-in { grid-template-columns: 1fr; grid-template-areas: "k" "y" "t" "l" "f" "a"; }
  .year { font-size: clamp(4.4rem, 26vw, 7rem); margin-top: 10px; }
  .hero-title { margin-top: 6px; }
  .timeline { grid-template-columns: 1fr; gap: 26px; padding: 0 0 0 58px; }
  .timeline::before { left: 20px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; background: linear-gradient(180deg, var(--line), var(--amber)); transform-origin: top; }
  html.js .timeline::before { transform: scaleY(0); }
  .tl-n { position: absolute; left: -58px; top: -6px; margin: 0; }
  .gains { grid-template-columns: 1fr; }
  .gains li { padding: 22px; }
  .next { border-radius: 22px; padding: 28px 22px; }
  .next-cta .btn-big { width: 100%; }
}
@media (max-width: 380px) { .hero-title { font-size: 2.8rem; } }

/* movimiento reducido: se apaga solo el resplandor que gira (lo intrusivo) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-glow { animation: none; }
}
