/* UI kit · dpmcyber-site / site styles
   Layout-specific styles only. All tokens come from colors_and_type.css.
   Component-level visual rules also live here to keep JSX clean. */

/* ----------------------- layout root ----------------------- */
.site { position: relative; overflow-x: hidden; }
.site section { padding: 96px 0; position: relative; }
.site section.tight { padding: 56px 0; }
.site .container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.site .narrow { max-width: 680px; margin: 0 auto; padding: 0 32px; }
.site .prose { max-width: 620px; }

/* split layout: image on one side, text on the other */
.act-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.act-split.reverse .act-split-text  { order: 2; }
.act-split.reverse .act-split-figure { order: 1; }
.act-split-figure {
  margin: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
}
.act-split-figure img {
  width: 100%; max-width: 340px; height: auto; display: block;
  filter: drop-shadow(0 20px 40px rgba(10,20,16,0.18));
  transition: transform 300ms var(--ease);
}
.act-split-figure a { display: block; line-height: 0; }
.act-split-figure a:hover img { transform: scale(1.03); }
.act-split-figure .caption {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-4); letter-spacing: 0.1em;
  text-transform: uppercase; text-align: center;
}
.act-split-text h2 { max-width: 460px; }
.act-split-text .act-body p { max-width: 480px; }

/* services list (acto 03) — compact chips, no left-bar accent */
.services {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px;
  max-width: 480px;
}
.services li {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--green-deep);
  background: var(--green-soft);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .act-split { grid-template-columns: 1fr; gap: 32px; }
  .act-split.reverse .act-split-text  { order: 0; }
  .act-split.reverse .act-split-figure { order: 0; }
}

/* generous prose */
.act-body p { font-size: 19px; line-height: 1.85; color: var(--ink-2); margin: 0 0 24px; max-width: 620px; }
.act-body p strong { color: var(--ink-1); font-weight: 600; }
.act-body p em { font-style: normal; color: var(--green-deep); font-weight: 600; }

/* big visual block between paragraphs */
.visual {
  display: block;
  margin: 56px auto;
  text-align: center;
}
.visual img { max-width: 100%; max-height: 480px; display: block; margin: 0 auto; }
.visual .caption {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--ink-4);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-top: 18px;
}

/* pull-quote between acts */
.pullquote {
  font-family: var(--font-sans);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.3; font-weight: 500;
  color: var(--ink-1);
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 720px; margin: 0 auto;
  text-align: center;
}
.pullquote .spot { color: var(--green); }
.pullquote::before { content: ""; display: none; }

/* ----------------------- sticky nav ------------------------ */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: 56px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(248, 250, 249, 0.78);
  border-bottom: 1px solid var(--paper-3);
}
.nav-inner {
  height: 100%;
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; gap: 28px;
}
.nav-mark {
  font-family: var(--font-mono);
  font-weight: 600; font-size: 16px;
  color: var(--ink-1); letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-mark .cursor {
  display: inline-block;
  width: 2px; height: 14px;
  background: var(--green); margin-left: 2px;
  transform: translateY(2px);
  animation: blink 0.9s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 200ms var(--ease);
}
.nav-links a:hover { color: var(--green-deep); }
.nav-links a.active { color: var(--green-deep); }
.nav-links a.active::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px; background: var(--green);
  border-radius: 50%; margin-right: 8px;
  transform: translateY(-2px);
}
.nav-cta {
  margin-left: auto;
  padding: 9px 18px;
  background: var(--green-deep); color: #f8faf9;
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 200ms var(--ease);
}
.nav-cta:hover { background: var(--green); color: #f8faf9; }
@media (max-width: 780px) {
  .nav-links { display: none; }
}

/* ----------------------- hero ------------------------------ */
.hero {
  padding-top: 32px; padding-bottom: 48px;
  min-height: auto;
  display: flex; align-items: flex-start;
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
  width: 100%;
}
.hero-text { padding-bottom: 0; padding-top: 32px; }
.hero h1 {
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--ink-2);
  margin: 24px 0 24px;
  text-wrap: balance;
  max-width: 480px;
}
.hero h1 .spot { color: var(--green); }
.hero-name {
  font-family: var(--font-sans);
  font-size: clamp(36px, 4.8vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink-1);
  margin: 0 0 8px;
}
.hero-name .spot { color: var(--green); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 20px;
}
.hero-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(46,204,113,0.5);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46,204,113,0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}
.hero-tagline {
  font-family: var(--font-mono);
  font-size: 18px; color: var(--ink-2);
  margin: 0 0 24px; min-height: 28px;
}
.hero-tagline .cursor {
  display: inline-block; width: 8px; height: 16px;
  background: var(--neon); vertical-align: -2px;
  margin-left: 4px;
  animation: blink 0.8s steps(2) infinite;
}
.hero-lead {
  font-size: 19px; line-height: 1.6; color: var(--ink-3);
  margin: 0 0 32px; max-width: 520px;
}
.hero-lead strong { color: var(--ink-1); font-weight: 600; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-image {
  position: relative; display: flex;
  justify-content: center; align-items: flex-start;
  min-height: 0;
}
.hero-image > img.portrait {
  position: relative; z-index: 2;
  width: auto; max-height: 560px;
  max-width: 100%;
  object-fit: contain; object-position: top;
  filter: drop-shadow(0 30px 60px rgba(10, 20, 16, 0.18));
}
.hero-watermark {
  position: absolute;
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130%; max-width: 720px;
  z-index: 1; pointer-events: none;
  opacity: 0.55;
  filter: saturate(0.7);
}
.hero-meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  margin-top: 36px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-4); letter-spacing: 0.05em;
}
.hero-meta .dot { color: var(--green); margin: 0 4px; }
.hero-scroll {
  position: absolute; bottom: 24px; left: 32px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-4); letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.hero-scroll .arrow {
  display: inline-block;
  animation: bob 1.6s var(--ease) infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-image { min-height: 320px; order: -1; }
  .hero-image > img.portrait { max-height: 320px; }
  .hero-scroll { left: 24px; }
}

/* ----------------------- act section ------------------------ */
.act { background: var(--paper-1); }
.act.alt { background: var(--paper-2); }
.act.dark-frame { background: var(--paper-0); border-top: 1px solid var(--paper-3); border-bottom: 1px solid var(--paper-3); }
.act-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}
.act-grid.single { grid-template-columns: 1fr; max-width: 820px; }
.act-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 16px;
}
.act-eyebrow .num { color: var(--green); margin-right: 4px; }
.act h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05; letter-spacing: -0.02em;
  font-weight: 700; color: var(--ink-1);
  margin: 0 0 24px; text-wrap: balance;
}
.act h2 .spot { color: var(--green); }
.act-body p {
  font-size: 17px; line-height: 1.75;
  color: var(--ink-3); margin: 0 0 16px;
  max-width: 600px;
}
.act-body p strong { color: var(--ink-1); font-weight: 600; }

.act-figure {
  position: relative;
  background: var(--paper-0);
  border: 1px solid var(--paper-3);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  gap: 12px;
}
.act-figure.bare { background: transparent; border: 0; box-shadow: none; padding: 0; }
.act-figure img { width: 100%; max-height: 360px; object-fit: contain; }
.act-figure .caption {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--ink-4);
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .act-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ----------------------- buttons (kit) ---------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: all 200ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--green-deep); color: #f8faf9; }
.btn-primary:hover { background: var(--green); color: #f8faf9; }
.btn-secondary { background: transparent; color: var(--ink-1); border-color: var(--paper-3); }
.btn-secondary:hover { border-color: var(--green); color: var(--green-deep); }
.btn-ghost { background: transparent; color: var(--ink-2); padding: 14px 12px; }
.btn-ghost:hover { color: var(--green-deep); }

/* ----------------------- timeline --------------------------- */
.tl { position: relative; padding-left: 38px; max-width: 540px; margin-top: 24px; }
.tl-line { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--paper-3); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -36px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper-1);
  border: 2px solid var(--green-deep);
}
.tl-item.active .tl-dot {
  background: var(--green); border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-tint);
}
.tl-item.future .tl-dot { border-style: dashed; border-color: var(--ink-4); }
.tl-year {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-deep); margin: 0 0 4px;
}
.tl-title { font-size: 17px; font-weight: 600; color: var(--ink-1); margin: 0 0 4px; }
.tl-desc { font-size: 14px; color: var(--ink-3); margin: 0; line-height: 1.55; }

/* ----------------------- cards grid ------------------------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper-0);
  border: 1px solid var(--paper-3);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-1);
  transition: all 200ms var(--ease);
  display: flex; flex-direction: column; gap: 8px;
}
.card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-2);
}
.card .tag {
  display: inline-block; align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-deep);
  padding: 4px 8px;
  background: var(--green-soft);
  border-radius: 4px;
  margin-bottom: 4px;
}
.card h3 { font-size: 19px; font-weight: 600; color: var(--ink-1); margin: 0; line-height: 1.25; }
.card p { font-size: 14px; line-height: 1.6; color: var(--ink-3); margin: 0; }
.card .meta {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-4);
  margin-top: 8px; letter-spacing: 0.05em;
}
.card-link {
  margin-top: auto;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-deep); text-decoration: none;
  padding-top: 8px;
}
.card-link:hover { color: var(--green); }

@media (max-width: 780px) {
  .cards, .cards.three { grid-template-columns: 1fr; }
}

/* ----------------------- terminal block ---------------------- */
.terminal {
  background: #0a1410;
  border-radius: 12px;
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #d6dad8;
  border: 1px solid #1f2b25;
  box-shadow: var(--shadow-2);
  overflow-x: auto;
}
.terminal .dim { color: #7a8b82; }
.terminal .prompt { color: var(--green); }
.terminal .neon { color: var(--neon); }
.terminal .cursor { display: inline-block; width: 8px; height: 14px; background: var(--neon); vertical-align: -2px; margin-left: 4px; animation: blink 0.8s steps(2) infinite; }
.terminal-head {
  display: flex; gap: 6px; padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid #1f2b25;
}
.terminal-head .lt { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }

/* ----------------------- connect ---------------------------- */
.connect { background: var(--paper-2); }
.connect-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 48px; align-items: center;
}
.connect-email {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 18px;
  color: var(--green-deep); text-decoration: none;
  padding: 14px 20px;
  background: var(--paper-0);
  border: 1px solid var(--paper-3);
  border-radius: 12px;
  margin: 16px 0 28px;
  transition: all 200ms var(--ease);
}
.connect-email:hover { border-color: var(--green); color: var(--green); }
.connect-social { display: flex; gap: 12px; flex-wrap: wrap; }
.connect-social a {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--paper-0);
  border: 1px solid var(--paper-3);
  color: var(--ink-3);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 200ms var(--ease);
}
.connect-social a:hover { border-color: var(--green); color: var(--green-deep); }
.connect-aside {
  background: var(--paper-0);
  border: 1px solid var(--paper-3);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
}
.connect-aside img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; display: block; }
.connect-aside .who { font-weight: 600; color: var(--ink-1); margin: 0 0 4px; }
.connect-aside .where { font-family: var(--font-mono); font-size: 12px; color: var(--ink-4); margin: 0; letter-spacing: 0.05em; }

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

/* ----------------------- footer ----------------------------- */
.footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--paper-3);
  background: var(--paper-1);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-4); letter-spacing: 0.05em;
}
.footer a { color: var(--ink-3); text-decoration: none; }
.footer a:hover { color: var(--green-deep); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* tighter HOY → Connect bridge: HOY's bottom + Connect's top collapse */
#hoy { padding-bottom: 64px; }
#conecta { padding-top: 64px; }

/* ----------------------- proyectos row (hoy) ---------------- */
.proyectos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  align-items: end;
}
.proyecto {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 12px;
  transition: transform 300ms var(--ease), background 300ms var(--ease);
}
a.proyecto { cursor: pointer; }
a.proyecto:hover { background: rgba(46, 204, 113, 0.06); transform: translateY(-4px); }
.proyecto-fig {
  height: 180px;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.proyecto-fig img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  opacity: 0.92;
  filter: grayscale(0%);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
/* silhouettes (b/w pngs and svgs) — render flat black, slightly muted */
.proyecto:not(:has(.proyecto-fig-color)) .proyecto-fig img {
  opacity: 0.85;
}
.proyecto-fig-color img {
  opacity: 1;
}
.proyecto:hover .proyecto-fig img { opacity: 1; transform: scale(1.04); }
.proyecto-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  transition: color 300ms var(--ease);
}
a.proyecto:hover .proyecto-label { color: var(--green-deep); }
@media (max-width: 720px) {
  .proyectos { grid-template-columns: 1fr; gap: 24px; }
  .proyecto-fig { height: 140px; }
}
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* scene = stagger container. children animate in sequence as the scene enters. */
.scene > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.scene.in > *               { opacity: 1; transform: none; }
.scene.in > *:nth-child(1)  { transition-delay: 0ms; }
.scene.in > *:nth-child(2)  { transition-delay: 120ms; }
.scene.in > *:nth-child(3)  { transition-delay: 240ms; }
.scene.in > *:nth-child(4)  { transition-delay: 360ms; }
.scene.in > *:nth-child(5)  { transition-delay: 480ms; }
.scene.in > *:nth-child(6)  { transition-delay: 600ms; }
.scene.in > *:nth-child(n+7){ transition-delay: 720ms; }

/* the visual (figure) gets a slightly more dramatic entrance — scale up + fade */
.scene .visual {
  transform: translateY(36px) scale(0.96);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.scene.in .visual { transform: none; }

/* horizontal slide for the hero portrait */
.hero-image > .portrait {
  opacity: 0; transform: translateX(40px);
  transition: opacity 900ms var(--ease) 200ms, transform 900ms var(--ease) 200ms;
}
.hero-image > .portrait.in { opacity: 1; transform: none; }
.hero-watermark {
  opacity: 0;
  transition: opacity 1200ms var(--ease) 400ms;
}
.hero-watermark.in { opacity: 0.55; }

/* ----------------------- transition (between intro & acto-01) --- */
.transition {
  padding: 64px 0 !important;
  background: var(--paper-1);
  text-align: center;
  position: relative;
}
.transition::before {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, transparent, var(--green-deep));
}
.transition-line {
  font-family: var(--font-sans);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink-1);
  margin: 0 0 12px;
  text-wrap: balance;
}
.transition-line .spot { color: var(--green); }
.transition-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0;
}
.transition-arrow {
  display: inline-block;
  margin-top: 24px;
  font-size: 22px;
  color: var(--green);
  animation: bob 1.8s var(--ease) infinite;
}

/* ----------------------- cookie banner ---------------------- */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  z-index: 200;
  background: var(--paper-0);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto;
  animation: cookieIn 400ms var(--ease);
}
@keyframes cookieIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.cookie-banner-text {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 14px; color: var(--ink-3); line-height: 1.55;
  flex: 1 1 320px; min-width: 280px;
}
.cookie-banner-text strong { color: var(--ink-1); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.cookie-banner-text a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner-text a:hover { color: var(--green); }

.cookie-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.cookie-btn {
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 600;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 200ms var(--ease);
}
.cookie-btn.primary { background: var(--green-deep); color: #f8faf9; }
.cookie-btn.primary:hover { background: var(--green); }
.cookie-btn.outline { background: transparent; border-color: var(--paper-3); color: var(--ink-2); }
.cookie-btn.outline:hover { border-color: var(--green); color: var(--green-deep); }
.cookie-btn.ghost { background: transparent; color: var(--ink-3); padding: 10px 12px; }
.cookie-btn.ghost:hover { color: var(--green-deep); }

.cookie-overlay {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(10, 20, 16, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: cookieOverlayIn 250ms var(--ease);
}
@keyframes cookieOverlayIn { from { opacity: 0; } to { opacity: 1; } }
.cookie-panel {
  background: var(--paper-0);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow-3);
  overflow: hidden;
  animation: cookiePanelIn 350ms var(--ease);
}
@keyframes cookiePanelIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.cookie-panel-head { padding: 24px 24px 16px; border-bottom: 1px solid var(--paper-3); }
.cookie-panel-head h3 { font-size: 18px; font-weight: 600; color: var(--ink-1); margin: 0 0 6px; }
.cookie-panel-head p  { font-size: 13px; color: var(--ink-3); margin: 0; line-height: 1.55; }
.cookie-panel-body { padding: 8px 24px; }
.cookie-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--paper-3);
}
.cookie-row:last-child { border-bottom: 0; }
.cookie-row-title { font-size: 14px; font-weight: 600; color: var(--ink-1); margin-bottom: 4px; }
.cookie-row-desc  { font-size: 12px; color: var(--ink-3); line-height: 1.55; max-width: 320px; }
.cookie-panel-foot {
  padding: 16px 24px;
  display: flex; gap: 10px; justify-content: flex-end;
  border-top: 1px solid var(--paper-3);
}

.cookie-toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider {
  position: absolute; cursor: pointer;
  inset: 0; background: var(--paper-3);
  border-radius: 22px; transition: 200ms var(--ease);
}
.cookie-toggle-slider::before {
  content: ""; position: absolute;
  width: 16px; height: 16px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%;
  transition: 200ms var(--ease);
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--green); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(18px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { background: var(--green-deep); opacity: 0.55; cursor: not-allowed; }

@media (max-width: 600px) {
  .cookie-banner { padding: 14px 16px; gap: 14px; bottom: 8px; left: 8px; right: 8px; }
  .cookie-banner-actions { width: 100%; justify-content: flex-end; }
}
