/* ==========================================================================
   Marca 2026 — Colaboremos, tu equipo digital de barrio
   Capa final: redefine colores, tipografía, header, pie y botones, y estiliza
   las secciones nuevas de la portada. Se carga después de todo lo demás.

   Ritmo de la página: escenario oscuro (portada, celular, contacto, pie)
   alternado con secciones claras (o grafito en modo oscuro). El botón
   principal es girasol en todo el sitio.
   ========================================================================== */

:root {
  --paper: #f5f2ea;
  --surface: #fffdf8;
  --surface-2: #efeadf;
  --surface-3: #e6e0d2;
  --ink: #0f1a16;
  --ink-2: #2b3933;
  --muted: #55625c;
  --subtle: #66726c;
  --line: #e2dbcc;
  --line-strong: #cbc1ad;

  --btn-primary-bg: #f5b83d;
  --btn-primary-fg: #1a1200;
  --btn-primary-hover: #ffc95c;
  --focus: #0f6b4f;

  --night: #08100d;
  --night-2: #0d1814;

  --shadow-1: 0 1px 2px rgb(15 26 22 / .06), 0 0 0 1px rgb(15 26 22 / .03);
  --shadow-2: 0 14px 34px -16px rgb(15 26 22 / .28);
  --shadow-3: 0 34px 80px -30px rgb(15 26 22 / .42);
  --r-l: 22px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a1210;
    --surface: #111d18;
    --surface-2: #172620;
    --surface-3: #1e3029;
    --line: #22332c;
    --line-strong: #34483f;
    --btn-primary-bg: #f5b83d;
    --btn-primary-fg: #1a1200;
    --btn-primary-hover: #ffc95c;
    --focus: #f5b83d;
  }
}
:root[data-theme="dark"] {
  --paper: #0a1210;
  --surface: #111d18;
  --surface-2: #172620;
  --surface-3: #1e3029;
  --line: #22332c;
  --line-strong: #34483f;
  --btn-primary-bg: #f5b83d;
  --btn-primary-fg: #1a1200;
  --btn-primary-hover: #ffc95c;
  --focus: #f5b83d;
}

/* El escenario oscuro (portada, celular, cabeceras, contacto) usa el mismo botón girasol. */
.hero-stage,
.stage-band,
.page-head-stage,
.site-header,
.site-footer {
  --negocio: #5cc59c;
  --negocio-ink: #82d8b5;
  --negocio-soft: rgb(92 197 156 / .14);
  --creador: #ef8d73;
  --btn-primary-bg: #f5b83d;
  --btn-primary-fg: #1a1200;
  --btn-primary-hover: #ffc95c;
  --focus: #f5b83d;
}

/* ---------- Tipografía ---------- */
.h1-xl { font-size: clamp(2.3rem, 5vw, 3.9rem); letter-spacing: -.04em; line-height: 1; }
.h2-xl { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -.038em; line-height: 1.02; }
.grad {
  background: linear-gradient(95deg, #0f6b4f 0%, #1f9a73 45%, #c98a12 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
:root[data-theme="dark"] .grad { background-image: linear-gradient(95deg, #5cc59c, #9be0c2 45%, #f5b83d); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grad { background-image: linear-gradient(95deg, #5cc59c, #9be0c2 45%, #f5b83d); } }

.eyebrow {
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--ink-2);
  font-size: .74rem;
  letter-spacing: .08em;
}
.hero-stage .eyebrow, .stage-band .eyebrow { background: rgb(255 255 255 / .05); }
.section-sub { font-size: 1.06rem; }

/* ---------- Botones ---------- */
.btn { font-weight: 700; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.02rem; }
.btn-primary { box-shadow: 0 12px 26px -14px rgb(245 184 61 / .9), inset 0 -2px 0 rgb(0 0 0 / .08); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); }
.btn-outline:hover:not(:disabled) { border-color: var(--ink); }
.link-plain { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
.link-plain:hover { color: #fff; text-decoration: underline; }

/* ---------- Header: barra oscura de vidrio ---------- */
.site-header {
  --ink: #f2f7f3;
  --ink-2: #cfdcd5;
  --muted: #a9b9b0;
  --surface: rgb(255 255 255 / .06);
  --surface-2: rgb(255 255 255 / .1);
  --line: rgb(255 255 255 / .1);
  --line-strong: rgb(255 255 255 / .22);
  --paper: #08110d;
  height: 70px;
  border-bottom: 1px solid rgb(255 255 255 / .08);
  background: rgb(8 16 13 / .84);
  color: var(--ink);
}
:root { --header-h: 70px; }
.site-header .brand { color: #fff; }
.site-nav { margin-inline: auto; gap: 4px; }
.site-nav a { padding: 8px 12px; border-radius: var(--r-full); font-size: .92rem; font-weight: 600; }
.site-nav a[aria-current="page"], .site-nav.has-mo-hl a[aria-current="page"] { color: #f5b83d; background: transparent; }
.site-nav .mo-hl { border-radius: var(--r-full); background: rgb(255 255 255 / .1); }
.header-cta { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.text-size-btn[aria-pressed="true"] { border-color: var(--btn-primary-bg); color: #1a1200; background: var(--btn-primary-bg); }
.icon-btn[aria-pressed="true"] { border-color: var(--btn-primary-bg); }

/* Con cinco enlaces y menos botones, el menú cabe en una línea desde 1081px. */
@media (min-width: 1081px) {
  html:not(.text-lg) .menu-toggle { display: none; }
  html:not(.text-lg) .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }
  html:not(.text-lg) .site-nav a { padding: 8px 12px; }
  html:not(.text-lg) .site-nav.has-mo-hl { position: relative; }
  html:not(.text-lg) .header-actions { margin-left: 0; }
}
@media (max-width: 1240px) { .header-cta-long { display: none; } }
@media (max-width: 1080px) {
  .site-nav { margin-inline: 0; }
}
@media (max-width: 420px) {
  .header-cta { min-height: 36px; padding: 0 14px; }
}

/* ---------- Botón flotante: WhatsApp ---------- */
.help-fab-wa { color: #fff; background: #128c4f; text-decoration: none; }
.help-fab-wa:hover { background: #0f7a44; }
.help-fab-wa .help-fab-icon { color: #128c4f; background: #fff; }
.help-fab-wa .help-fab-icon::after { border-color: #25d366; }

/* ---------- Secciones ---------- */
.section { padding-top: 112px; }
.section-tight { padding-top: 64px; }
.section-head-wide { max-width: 900px; }

/* ---------- Cinta de servicios ---------- */
.ribbon-wrap {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding-block: 34px;
  background: var(--night);
}
.ribbon {
  position: relative;
  width: 106%;
  margin-left: -3%;
  padding-block: 14px;
  color: #1a1200;
  background: #f5b83d;
  transform: rotate(-2.2deg);
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / .6);
}
.ribbon-back {
  position: absolute;
  inset: 50% 0 auto;
  z-index: -1;
  padding-block: 10px;
  color: rgb(255 255 255 / .75);
  background: #0f6b4f;
  transform: translateY(-50%) rotate(2.4deg);
}
.ribbon .marquee { -webkit-mask-image: none; mask-image: none; }
.ribbon .marquee-track { --marquee-speed: 70s; }
.ribbon-back .marquee-track { --marquee-speed: 90s; }
.ribbon .marquee-track > * { margin-right: 0; }
.ribbon-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-inline: 20px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 780;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.ribbon-back .ribbon-item { font-size: 1rem; font-weight: 650; }
.ribbon-item svg { width: 22px; height: 22px; flex: none; }
.ribbon-item::after { content: "✦"; margin-left: 20px; font-size: .9em; opacity: .55; }
.ribbon-wrap + .stage-band { margin-top: 0; }
.hero-stage + .ribbon-wrap { margin-top: -1px; }

/* ---------- Los tres grupos ---------- */
.group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.group-card {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 28px 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .2s ease, border-color .2s ease;
}
.group-card.is-tilting { transition: transform .08s linear, box-shadow .2s ease; box-shadow: var(--shadow-3); }
.group-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--g); }
.group-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--gs), transparent);
  pointer-events: none;
}
.group-0 { --g: linear-gradient(90deg, #0f6b4f, #5cc59c); --gs: rgb(92 197 156 / .2); --gi: #0f6b4f; --gi-soft: #e2f0e9; }
.group-1 { --g: linear-gradient(90deg, #c4513a, #f5b83d); --gs: rgb(245 184 61 / .22); --gi: #a13f29; --gi-soft: #f9e5de; }
.group-2 { --g: linear-gradient(90deg, #f5b83d, #5cc59c); --gs: rgb(242 181 58 / .18); --gi: #6f4a00; --gi-soft: #fcefd0; }
.group-top { display: flex; align-items: center; justify-content: space-between; }
.group-num { color: var(--subtle); font-family: var(--font-display); font-size: .95rem; font-weight: 800; letter-spacing: .06em; }
.group-icons { display: flex; transform: translateZ(30px); }
.group-icons span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-left: -10px;
  border: 3px solid var(--surface);
  border-radius: 15px;
  color: var(--gi);
  background: var(--gi-soft);
}
.group-icons svg { width: 22px; height: 22px; }
.group-card h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 780; letter-spacing: -.025em; line-height: 1.1; transform: translateZ(20px); }
.group-card > p { color: var(--muted); font-size: .95rem; }
.group-list { display: grid; list-style: none; }
.group-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-2);
  font-size: .93rem;
  text-decoration: none;
}
.group-list a:hover { color: var(--ink); }
.group-list a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.group-list strong { flex: none; color: var(--negocio-ink); font-variant-numeric: tabular-nums; }
.group-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}
.group-link svg { width: 18px; height: 18px; transition: transform .2s ease; }
.group-link:hover svg { transform: translateX(4px); }

:root[data-theme="dark"] .group-card { --gi-soft: rgb(255 255 255 / .07); --gi: #f5cf7c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .group-card { --gi-soft: rgb(255 255 255 / .07); --gi: #f5cf7c; } }

/* ---------- Página web (tarjeta de la portada) ---------- */
.web-promo { border-radius: 32px; padding: 48px; box-shadow: var(--shadow-2); }

/* ---------- Cómo trabajamos ---------- */
.pasos { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; list-style: none; }
.pasos::before {
  content: "";
  position: absolute;
  top: 35px;
  left: 36px;
  right: calc((100% - 66px) / 4 - 36px);
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--negocio), #f5b83d, var(--creador));
  opacity: .55;
}
.paso { position: relative; display: grid; gap: 10px; align-content: start; }
.paso-num {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
}
.paso:nth-child(1) .paso-num { border-color: var(--negocio); }
.paso:nth-child(2) .paso-num { border-color: #f5b83d; }
.paso:nth-child(3) .paso-num { border-color: #e0775a; }
.paso:nth-child(4) .paso-num { border-color: var(--creador); color: var(--btn-primary-fg); background: #f5b83d; }
.paso-icon {
  position: absolute;
  z-index: 2;
  top: -4px;
  left: 54px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--night);
  box-shadow: 0 0 0 3px var(--paper);
}
.paso-icon svg { width: 15px; height: 15px; }
.paso h3 { font-size: 1.18rem; font-weight: 720; letter-spacing: -.015em; }
.paso p { color: var(--muted); font-size: .95rem; }

/* ---------- Compromisos ---------- */
.promise-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.promise-hero {
  --ink: #f2f7f3;
  --ink-2: #d6e2db;
  --muted: #b2c1b9;
  grid-row: span 3;
  align-content: center;
  gap: 18px;
  padding: 40px 36px;
  border: 0;
  color: var(--ink);
  background:
    radial-gradient(420px 300px at 100% 0%, rgb(245 184 61 / .25), transparent 70%),
    radial-gradient(420px 320px at 0% 100%, rgb(31 154 115 / .4), transparent 70%),
    var(--night);
}
.promise-hero .h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.promise-hero > p:not(.eyebrow) { color: var(--ink-2); font-size: 1.05rem; }
.promise-hero .eyebrow { justify-self: start; border-color: rgb(255 255 255 / .16); background: rgb(255 255 255 / .06); color: var(--ink-2); }
.promise-hero .btn { justify-self: start; }
.promise-cell { gap: 10px; padding: 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.promise-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.promise-cell .std-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--negocio-ink); background: var(--negocio-soft); }
.promise-cell .std-icon svg { width: 22px; height: 22px; }
.promise-cell strong { font-size: 1.05rem; }

/* ---------- Preguntas frecuentes ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-cards { display: grid; gap: 10px; border-top: 0; }
.faq-cards details {
  padding-inline: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-cards details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.faq-cards summary { font-size: 1.04rem; font-weight: 680; }
.faq-cards details p { font-size: .97rem; line-height: 1.6; }

/* ---------- Contacto ---------- */
.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 64px 56px;
  border-radius: 36px;
  box-shadow: var(--shadow-3);
}
.contact-card > :not(.aurora) { position: relative; z-index: 1; }
.contact-card .aurora { opacity: .45; }
.contact-copy .lede { margin-top: 16px; }
.contact-copy .h2 { color: #fff; }
.contact-options { display: grid; gap: 12px; }
.contact-option {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgb(255 255 255 / .14);
  border-radius: 20px;
  background: rgb(255 255 255 / .05);
  color: var(--ink-2);
  font-size: .9rem;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.contact-option:hover { border-color: #f5b83d; background: rgb(245 184 61 / .1); transform: translateX(4px); }
.contact-option strong { display: block; color: #fff; font-size: 1.05rem; }
.contact-option svg { width: 28px; height: 28px; flex: none; color: #f5b83d; }
.contact-wa { border-color: rgb(37 211 102 / .45); background: rgb(37 211 102 / .1); }
.contact-wa svg { color: #25d366; }

/* ---------- Cabeceras de página ---------- */
.page-head-stage { padding-block: 44px 52px; }
.page-head-stage .breadcrumb, .page-head-stage .breadcrumb a { color: var(--muted); }
.page-head-stage .hero-trust li { color: var(--ink-2); }
.jump-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.jump-chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  background: rgb(255 255 255 / .05);
  color: var(--ink-2);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}
.jump-chips a:hover { border-color: #f5b83d; color: #fff; }
.jump-chips svg { width: 18px; height: 18px; color: #f5b83d; }

/* Servicios: títulos de grupo grandes */
.servicios-mas { margin-top: 56px; }
.servicios-grupo { scroll-margin-top: calc(var(--header-h) + 24px); }
.servicios-grupo + .servicios-grupo { margin-top: 56px; }
.servicios-grupo-titulo {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 760;
  letter-spacing: -.025em;
  text-transform: none;
}
.servicios-grupo-titulo .group-num { font-size: 1rem; }
.servicio { border-radius: 24px; }
.servicio-icono { border-radius: 14px; }
.servicios .web-promo { margin-top: 40px; }

/* ---------- Pie: escenario oscuro ---------- */
.site-footer {
  --ink: #f2f7f3;
  --ink-2: #cfdcd5;
  --muted: #a9b9b0;
  --line: rgb(255 255 255 / .1);
  --surface: rgb(255 255 255 / .08);
  --surface-2: rgb(255 255 255 / .05);
  margin-top: 112px;
  padding-block: 64px 36px;
  border-top: 0;
  color: var(--muted);
  background:
    radial-gradient(700px 300px at 90% 0%, rgb(31 154 115 / .25), transparent 65%),
    var(--night);
}
.site-footer .brand { color: #fff; }
.footer-grid a:hover, .link-plain:hover { color: #fff; }
.footer-grid h2 { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .group-grid { grid-template-columns: 1fr; max-width: 640px; }
  .pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .pasos::before { display: none; }
  .promise-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise-hero { grid-column: 1 / -1; grid-row: auto; }
  .faq-layout { grid-template-columns: 1fr; gap: 8px; }
  .faq-layout .section-head { position: static; }
  .contact-card { grid-template-columns: 1fr; padding: 48px 36px; }
}

@media (max-width: 640px) {
  .section { padding-top: 76px; }
  .ribbon-item { font-size: 1.05rem; padding-inline: 14px; }
  .ribbon-item::after { margin-left: 14px; }
  .group-card { padding: 26px 22px 22px; }
  .pasos { grid-template-columns: 1fr; }
  .promise-bento { grid-template-columns: 1fr; }
  .promise-hero { padding: 32px 24px; }
  .web-promo { padding: 28px 22px; }
  .contact-card { padding: 36px 20px; border-radius: 28px; }
  .site-footer { margin-top: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  .group-card, .group-card.is-tilting { transform: none; }
  .ribbon .marquee-track { flex-wrap: nowrap; }
}
