/* =========================================================
   GRUPO D'SOCO — sistema de marca compartido
   Tipografía: Bricolage Grotesque + Outfit + IBM Plex Mono
   Paleta base D'SOCO + acentos por línea de negocio
   ========================================================= */

:root {
  /* Paleta D'SOCO */
  --yel: #FED628;
  --ora: #FBA933;
  --ora2: #E8841C;
  --crema: #FBF4E4;
  --crema2: #F3E8CC;
  --tinta: #2E2114;
  --tinta-soft: #3D2E1E;
  --gris: #8C7A5E;
  --gris-soft: #BFAE92;
  --white: #FFFFFF;

  /* Acento por línea (sobrescrito en cada página) */
  --acento: var(--ora);
  --acento-dark: var(--ora2);
  --acento-soft: var(--yel);

  /* Tipografía */
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body: 'Outfit', 'Inter', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --max: 1200px;
  --gut: clamp(20px, 4vw, 56px);
  --radius: 18px;
  --radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--crema);
  color: var(--tinta);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===================== NAV ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 244, 228, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  background: rgba(251, 244, 228, 0.96);
  border-bottom-color: rgba(46, 33, 20, 0.1);
  box-shadow: 0 6px 24px rgba(46, 33, 20, 0.06);
}
.page-dsol .nav { background: rgba(31, 58, 46, 0.86); }
.page-dsol .nav.scrolled { background: rgba(31, 58, 46, 0.98); border-bottom-color: rgba(212, 178, 122, 0.2); }
.page-dsoco .nav { background: rgba(46, 33, 20, 0.9); }
.page-dsoco .nav.scrolled { background: rgba(46, 33, 20, 0.98); border-bottom-color: rgba(254, 214, 40, 0.2); }
.nav-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding .3s ease;
}
.nav.scrolled .nav-in { padding-top: 12px; padding-bottom: 12px; }
/* Marca: logo real (nunca tipografía suelta — ver manual_marca_dsoco.pdf) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--tinta);
  text-decoration: none;
  /* Área de respeto: padding mínimo alrededor del logo */
  padding: 4px 8px 4px 0;
  transition: transform .25s ease;
}
.brand img {
  height: 52px;
  width: auto;
  display: block;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.nav.scrolled .brand img { height: 44px; }
.brand:hover img { transform: scale(1.04); }
.brand small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--gris);
  text-transform: uppercase;
  padding-left: 14px;
  border-left: 1px solid rgba(46, 33, 20, 0.18);
  line-height: 1.2;
  align-self: center;
}
/* Reverso del logo sobre fondos oscuros — técnica oficial del manual */
.page-dsol .nav .brand img,
.page-dsoco .nav .brand img,
.footer .brand img {
  filter: brightness(0) invert(1);
}
.page-dsol .nav .brand small,
.page-dsoco .nav .brand small,
.footer .brand small {
  color: var(--crema);
  opacity: 0.75;
  border-left-color: rgba(255, 255, 255, 0.25);
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
}
.nav-links a {
  position: relative;
  color: var(--tinta);
  opacity: 0.78;
  padding-bottom: 4px;
  transition: opacity .2s, color .2s;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--acento-dark);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover { opacity: 1; color: var(--acento-dark); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { opacity: 1; color: var(--acento-dark); font-weight: 600; }

.nav-cta {
  background: var(--tinta);
  color: var(--crema);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .15s, background .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-cta:hover { background: var(--acento-dark); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--tinta);
  cursor: pointer;
  padding: 4px 8px;
}

/* ===================== TIPOGRAFÍA ===================== */
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--acento-dark);
  font-weight: 500;
}
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--tinta);
}
.h-xl { font-size: clamp(44px, 8.4vw, 120px); letter-spacing: -0.035em; }
.h-lg { font-size: clamp(34px, 5.6vw, 72px); letter-spacing: -0.025em; }
.h-md { font-size: clamp(26px, 3.4vw, 44px); }
.h-sm { font-size: clamp(20px, 2.4vw, 26px); }

p { font-size: 17px; line-height: 1.6; }
.lead {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: var(--tinta-soft);
  font-weight: 400;
}

/* ===================== SECCIONES ===================== */
section { padding: clamp(60px, 9vw, 120px) 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--gut); }

.section-head {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head .kicker { display: inline-block; margin-bottom: 16px; }
.section-head h2 { margin-bottom: 18px; }
.section-head p { max-width: 640px; margin: 0 auto; color: var(--tinta-soft); }

/* ===================== HERO BASE ===================== */
.hero {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0 clamp(80px, 10vw, 140px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero h1 { margin: 18px 0 22px; }
.hero .lead { margin-bottom: 36px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===================== BOTONES ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--tinta);
  color: var(--crema);
}
.btn-primary:hover { background: var(--acento-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(46, 33, 20, 0.18); }
.btn-accent {
  background: var(--acento);
  color: var(--tinta);
}
.btn-accent:hover { background: var(--acento-dark); color: var(--crema); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(46, 33, 20, 0.18); }
.btn-ghost {
  background: transparent;
  color: var(--tinta);
  border: 1.5px solid var(--tinta);
}
.btn-ghost:hover { background: var(--tinta); color: var(--crema); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1ebc59; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(37, 211, 102, 0.32); }
.btn-ig {
  background: linear-gradient(135deg, #833AB4 0%, #E1306C 50%, #FCAF45 100%);
  color: #fff;
}
.btn-ig:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(225, 48, 108, 0.32); color: #fff; }

/* Social row para footer */
.social-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(254, 214, 40, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--crema);
  opacity: 0.82;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  transition: background .2s, color .2s, opacity .2s, border-color .2s;
}
.social-link:hover {
  background: var(--yel);
  color: var(--tinta);
  opacity: 1;
  border-color: var(--yel);
}
.social-link svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Iconos en botones */
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===================== TARJETAS DE LÍNEA (HOME) ===================== */
.lines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.line-card {
  position: relative;
  border-radius: var(--radius);
  padding: 40px 32px 36px;
  overflow: hidden;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  will-change: transform;
}
.line-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(46, 33, 20, 0.2); }
.line-card .ph {
  height: 180px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  overflow: hidden;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.line-card:hover .ph { transform: scale(1.04); }
.line-card:hover .line-arrow svg { transform: translateX(6px); }
.line-card .line-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.7;
}
.line-card h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  margin-bottom: 12px;
  line-height: 1.05;
}
.line-card p {
  font-size: 15.5px;
  line-height: 1.55;
  margin-bottom: 24px;
  opacity: 0.85;
  flex-grow: 1;
}
.line-card .line-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}
.line-card .line-arrow svg { transition: transform .2s; }
.line-card:hover .line-arrow svg { transform: translateX(4px); }

/* Variantes por línea en home */
.line-card.l-turnon {
  background: linear-gradient(160deg, var(--yel) 0%, var(--ora) 100%);
  color: var(--tinta);
}
.line-card.l-turnon .ph { background: rgba(46, 33, 20, 0.12); }
.line-card.l-dsol {
  background: linear-gradient(160deg, #1F3A2E 0%, #2D5544 100%);
  color: var(--crema);
}
.line-card.l-dsol .line-kicker { color: #D4B27A; opacity: 1; }
.line-card.l-dsol .ph { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(212, 178, 122, 0.2); }
.line-card.l-dsoco {
  background: var(--tinta);
  color: var(--crema);
}
.line-card.l-dsoco .line-kicker { color: var(--yel); opacity: 1; }
.line-card.l-dsoco .ph { background: rgba(254, 214, 40, 0.1); border: 1px solid rgba(254, 214, 40, 0.25); }
.line-card.l-dsoco h3 { color: var(--yel); }

/* ===================== PLACEHOLDER DE IMAGEN ===================== */
.ph {
  position: relative;
  background: var(--crema2);
  border: 1.5px dashed rgba(46, 33, 20, 0.18);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gris);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  overflow: hidden;
}
.ph-16x9 { aspect-ratio: 16 / 9; }
.ph-4x3 { aspect-ratio: 4 / 3; }
.ph-1x1 { aspect-ratio: 1 / 1; }
.ph-3x4 { aspect-ratio: 3 / 4; }

/* Numeración visible sobre cada placeholder */
.ph-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 14px;
  z-index: 2;
  pointer-events: none;
}
.ph-num .n {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.9;
  color: var(--tinta);
  opacity: 0.7;
}
.ph-num .info {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tinta);
  opacity: 0.6;
}
/* Inversión para fondos oscuros */
.hero-dsol .ph-num .n,
.hero-dsol .ph-num .info,
.hero-dsoco .ph-num .n,
.hero-dsoco .ph-num .info,
.line-card.l-dsol .ph-num .n,
.line-card.l-dsol .ph-num .info,
.line-card.l-dsoco .ph-num .n,
.line-card.l-dsoco .ph-num .info {
  color: var(--crema);
  opacity: 0.9;
}
/* Quitar el texto "IMG" residual de los hero-eye con ::after */
.hero-dsol .hero-eye::after,
.hero-dsoco .hero-eye::after { content: '' !important; }

/* ===================== FEATURES / DIFERENCIADORES ===================== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid rgba(46, 33, 20, 0.06);
}
.feature .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 36px;
  color: var(--acento-dark);
  line-height: 1;
  margin-bottom: 16px;
}
.feature h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  margin-bottom: 10px;
  line-height: 1.2;
}
.feature p {
  font-size: 15.5px;
  color: var(--tinta-soft);
  line-height: 1.55;
}

/* ===================== MENÚ TURN ON ===================== */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
}
.menu-col h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--tinta);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.menu-col h3::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--tinta);
  opacity: 0.15;
}
.dish {
  padding: 18px 0;
  border-bottom: 1px dashed rgba(46, 33, 20, 0.18);
}
.dish:last-child { border-bottom: none; }
.dish-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.dish-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.dish-price {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 16px;
  color: var(--ora2);
  white-space: nowrap;
}
.dish-desc {
  font-size: 14.5px;
  color: var(--tinta-soft);
  line-height: 1.5;
}
.dish-note {
  display: inline-block;
  font-size: 12px;
  color: var(--gris);
  font-style: italic;
  margin-top: 4px;
}

/* ===================== PROCESO (números grandes) ===================== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 18px;
}
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--acento-dark);
  margin-bottom: 12px;
}
.step h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 8px;
}
.step p {
  font-size: 14.5px;
  color: var(--tinta-soft);
  line-height: 1.5;
}
.step + .step { border-left: 1px solid rgba(46, 33, 20, 0.12); padding-left: 24px; }

/* ===================== STATS ===================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  background: var(--tinta);
  color: var(--crema);
  border-radius: var(--radius);
  padding: 48px 40px;
}
.stat .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 52px);
  color: var(--yel);
  line-height: 1;
  margin-bottom: 8px;
}
.stat .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--crema);
  opacity: 0.7;
}

/* ===================== CONTACTO ===================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-info h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 36px;
  margin-bottom: 18px;
}
.contact-info p { color: var(--tinta-soft); margin-bottom: 28px; max-width: 460px; }
.contact-list {
  list-style: none;
  margin-top: 28px;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(46, 33, 20, 0.1);
}
.contact-list .ic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--acento);
  color: var(--tinta);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}
.contact-list .l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gris);
  display: block;
  margin-bottom: 2px;
}
.contact-list b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
}

/* Formulario */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid rgba(46, 33, 20, 0.08);
  box-shadow: 0 10px 40px rgba(46, 33, 20, 0.06);
}
.form-card h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 24px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(46, 33, 20, 0.15);
  border-radius: 8px;
  background: var(--crema);
  font-family: var(--body);
  font-size: 16px;
  color: var(--tinta);
  transition: border-color .15s, background .15s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--acento-dark);
  background: var(--white);
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-card button {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--tinta);
  color: var(--crema);
  padding: 60px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer .brand {
  margin-bottom: 18px;
}
.footer .brand img { height: 64px; }
.footer p.sub {
  color: var(--crema);
  opacity: 0.7;
  font-size: 15px;
  max-width: 320px;
}
.footer h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--yel);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--crema);
  opacity: 0.78;
  font-size: 15px;
  transition: opacity .15s, color .15s;
}
.footer-col a:hover { opacity: 1; color: var(--yel); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(254, 214, 40, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--crema);
  opacity: 0.6;
  text-transform: uppercase;
}

/* ===================== WHATSAPP FLOATING ===================== */
.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  z-index: 40;
  transition: transform .15s;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 28px; height: 28px; }

/* ===================== HERO VARIANTES POR PÁGINA ===================== */

/* Home hero — caliente */
.hero-home {
  background:
    radial-gradient(circle at 80% 20%, rgba(254, 214, 40, 0.18), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(251, 169, 51, 0.14), transparent 55%),
    var(--crema);
}
.hero-home .hero-eye {
  background: linear-gradient(140deg, var(--yel), var(--ora));
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
}
.hero-home .hero-eye::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1.5px dashed rgba(46, 33, 20, 0.25);
  border-radius: calc(var(--radius) - 4px);
}
.hero-home .hero-eye .ph-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--tinta);
  opacity: 0.6;
  text-transform: uppercase;
}

/* Turn On hero — Antojo */
.page-turnon { --acento: var(--ora); --acento-dark: var(--ora2); --acento-soft: var(--yel); }
.hero-turnon {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(254, 214, 40, 0.35), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(251, 169, 51, 0.25), transparent 55%),
    var(--crema);
}
.hero-turnon h1 .accent { color: var(--ora2); display: inline-block; }
.hero-turnon .scribble {
  display: inline-block;
  position: relative;
}
.hero-turnon .scribble::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 14px;
  background: var(--yel);
  z-index: -1;
  transform: skewX(-8deg);
  border-radius: 4px;
}

/* DS Soluciones — Sello/Solera */
.page-dsol {
  --acento: #D4B27A;
  --acento-dark: #B8923D;
  --acento-soft: #EFD9A8;
  --dark-green: #1F3A2E;
  --dark-green-2: #2D5544;
}
.page-dsol body { background: var(--crema); }
.hero-dsol {
  background: var(--dark-green);
  color: var(--crema);
  position: relative;
}
.hero-dsol::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(212, 178, 122, 0.18), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(212, 178, 122, 0.08), transparent 55%);
  pointer-events: none;
}
.hero-dsol h1 { color: var(--crema); }
.hero-dsol h1 .accent { color: var(--acento); }
.hero-dsol .lead { color: var(--crema); opacity: 0.85; }
.hero-dsol .kicker { color: var(--acento); }
.hero-dsol .btn-primary { background: var(--acento); color: var(--dark-green); }
.hero-dsol .btn-primary:hover { background: var(--acento-soft); color: var(--dark-green); }
.hero-dsol .btn-ghost { color: var(--crema); border-color: var(--crema); }
.hero-dsol .btn-ghost:hover { background: var(--crema); color: var(--dark-green); }
.hero-dsol .hero-eye {
  aspect-ratio: 4/5;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 178, 122, 0.3);
  border-radius: var(--radius);
  position: relative;
}
.hero-dsol .hero-eye::after {
  content: 'IMG';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--acento);
  opacity: 0.55;
}
.page-dsol .nav { background: rgba(31, 58, 46, 0.94); border-bottom-color: rgba(212, 178, 122, 0.2); }
/* Brand styling para fondos oscuros se maneja arriba (filter invert + small reverso) */
.page-dsol .nav-links a { color: var(--crema); }
.page-dsol .nav-links a:hover, .page-dsol .nav-links a.active { color: var(--acento); }
.page-dsol .nav-cta { background: var(--acento); color: var(--dark-green); }
.page-dsol .nav-cta:hover { background: var(--acento-soft); color: var(--dark-green); }
.page-dsol .menu-toggle { color: var(--crema); }
.page-dsol .feature { border-color: rgba(46, 33, 20, 0.08); }
.page-dsol .feature .num { color: var(--acento-dark); }
.page-dsol .form-card { background: var(--white); }
.page-dsol .form-row input:focus,
.page-dsol .form-row select:focus,
.page-dsol .form-row textarea:focus { border-color: var(--acento-dark); }
.page-dsol .btn-accent { background: var(--acento); color: var(--dark-green); }
.page-dsol .btn-accent:hover { background: var(--dark-green); color: var(--crema); }

/* DS Soluciones — sub-secciones de servicio */
.svc-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  border: 1px solid rgba(46, 33, 20, 0.08);
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.svc-block:nth-child(even) { direction: rtl; }
.svc-block:nth-child(even) > * { direction: ltr; }
.svc-block .svc-img { aspect-ratio: 4 / 3; }
.svc-block h3 { margin: 14px 0 16px; }
.svc-block ul {
  list-style: none;
  margin-top: 20px;
}
.svc-block ul li {
  padding: 8px 0 8px 30px;
  position: relative;
  font-size: 15.5px;
}
.svc-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--acento);
}
.svc-block ul li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 18px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--dark-green, var(--tinta));
  border-bottom: 2px solid var(--dark-green, var(--tinta));
  transform: rotate(-45deg);
}

/* D'SOCO — Voz Alta */
.page-dsoco { --acento: var(--yel); --acento-dark: var(--ora2); --acento-soft: var(--ora); }
.hero-dsoco {
  background: var(--tinta);
  color: var(--crema);
  position: relative;
  overflow: hidden;
}
.hero-dsoco::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: var(--yel);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.95;
}
.hero-dsoco .hero-grid { position: relative; z-index: 2; }
.hero-dsoco h1 { color: var(--crema); }
.hero-dsoco h1 .accent { color: var(--yel); }
.hero-dsoco .lead { color: var(--crema); opacity: 0.85; max-width: 480px; }
.hero-dsoco .kicker { color: var(--yel); }
.hero-dsoco .btn-primary { background: var(--yel); color: var(--tinta); }
.hero-dsoco .btn-primary:hover { background: var(--ora); color: var(--tinta); }
.hero-dsoco .btn-ghost { color: var(--crema); border-color: var(--crema); }
.hero-dsoco .btn-ghost:hover { background: var(--crema); color: var(--tinta); }
.hero-dsoco .hero-eye {
  aspect-ratio: 4/5;
  background: rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  border: 2px solid var(--tinta);
  position: relative;
}
.hero-dsoco .hero-eye::after {
  content: 'IMG';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--tinta);
  opacity: 0.55;
}
.page-dsoco .nav { background: rgba(46, 33, 20, 0.95); border-bottom-color: rgba(254, 214, 40, 0.18); }
/* Brand styling para D'SOCO se maneja en la regla general */
.page-dsoco .nav-links a { color: var(--crema); }
.page-dsoco .nav-links a:hover, .page-dsoco .nav-links a.active { color: var(--yel); }
.page-dsoco .nav-cta { background: var(--yel); color: var(--tinta); }
.page-dsoco .nav-cta:hover { background: var(--ora); color: var(--tinta); }
.page-dsoco .menu-toggle { color: var(--crema); }

/* Categorías D'SOCO en bento asimétrico (estilo Voz Alta) */
.cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.cat {
  border-radius: var(--radius);
  padding: 32px 28px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform .2s;
}
/* Bento: 2 grandes arriba, 3 medianos al medio, 1 full-width destacado abajo */
.cat.c1 { grid-column: span 3; }
.cat.c2 { grid-column: span 3; }
.cat.c3 { grid-column: span 2; }
.cat.c4 { grid-column: span 2; }
.cat.c5 { grid-column: span 2; }
.cat.c6 { grid-column: span 6; min-height: 180px; }
.cat:hover { transform: translateY(-3px); }
.cat .cat-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  opacity: 0.6;
  margin-bottom: auto;
}
.cat h4 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 8px;
}
.cat p { font-size: 14.5px; opacity: 0.85; }
.cat.c1 { background: var(--yel); color: var(--tinta); }
.cat.c2 { background: var(--ora); color: var(--tinta); }
.cat.c3 { background: var(--tinta); color: var(--crema); }
.cat.c3 h4 { color: var(--yel); }
.cat.c4 { background: var(--crema2); color: var(--tinta); border: 1px solid rgba(46, 33, 20, 0.1); }
.cat.c5 { background: var(--ora2); color: var(--crema); }
.cat.c5 h4 { color: var(--yel); }
.cat.c6 { background: #FAEBC8; color: var(--tinta); border: 1px solid rgba(46, 33, 20, 0.08); }

/* ===================== HOURS RIBBON (Turn On) ===================== */
.hours-ribbon {
  background: var(--tinta);
  color: var(--crema);
  border-radius: var(--radius);
  padding: 28px 36px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hours-ribbon .h-item .l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yel);
  margin-bottom: 4px;
}
.hours-ribbon .h-item .v {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
}
.hours-ribbon .h-divider {
  width: 1px;
  height: 36px;
  background: rgba(254, 214, 40, 0.3);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .lines { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; gap: 18px; }
  .menu-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .step + .step { border-left: none; padding-left: 0; }
  .stats { grid-template-columns: 1fr 1fr; padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .svc-block { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
  .svc-block:nth-child(even) { direction: ltr; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cat.c1, .cat.c2, .cat.c3, .cat.c4, .cat.c5 { grid-column: span 1; }
  .cat.c6 { grid-column: span 2; }
}

/* ===================== ACCESIBILIDAD ===================== */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--acento-dark);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--tinta);
  color: var(--crema);
  padding: 12px 18px;
  border-radius: 0 0 8px 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  z-index: 200;
  text-decoration: none;
  transition: top .25s ease;
}
.skip-link:focus { top: 0; }

/* ===================== SCROLL PROGRESS ===================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--acento);
  transform: scaleX(0);
  transform-origin: 0 0;
  z-index: 100;
  pointer-events: none;
}

/* ===================== REVEAL INIT (GSAP) ===================== */
/* Elementos esperan a GSAP. Cuando JS añade .gsap-ready al body, se muestran. */
.js-reveal { opacity: 0; transform: translateY(40px); will-change: transform, opacity; }
.js-reveal-hero { opacity: 0; transform: translateY(30px); will-change: transform, opacity; }
.no-gsap .js-reveal,
.no-gsap .js-reveal-hero { opacity: 1; transform: none; }

/* ===================== MARQUEE (Voz Alta — D'SOCO) ===================== */
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--yel);
  color: var(--tinta);
  padding: 26px 0;
  border-top: 3px solid var(--tinta);
  border-bottom: 3px solid var(--tinta);
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--yel), rgba(254, 214, 40, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--yel), rgba(254, 214, 40, 0)); }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 3.4vw, 38px);
  letter-spacing: -0.015em;
  line-height: 1;
}
.marquee-item small {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-left: 8px;
  opacity: 0.65;
}
.marquee-dot {
  width: 10px; height: 10px;
  background: var(--tinta);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===================== SPLASH LOADER ===================== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--crema);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  transition: opacity .7s ease, visibility .7s;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader img {
  width: 130px;
  height: auto;
  animation: loader-pulse 1.4s ease-in-out infinite;
}
.loader-bar {
  width: 140px;
  height: 3px;
  background: rgba(46, 33, 20, 0.1);
  border-radius: 999px;
  overflow: hidden;
}
.loader-bar::before {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--ora);
  border-radius: 999px;
  animation: loader-slide 1.3s ease-in-out infinite;
}
@keyframes loader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.07); opacity: 0.85; }
}
@keyframes loader-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ===================== CURSOR FOLLOWER ===================== */
.cursor-follower {
  position: fixed;
  top: 0; left: 0;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--tinta);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9000;
  transform: translate(-50%, -50%);
  transition: width .25s cubic-bezier(.2,.7,.2,1), height .25s cubic-bezier(.2,.7,.2,1), border-color .25s, background-color .25s, opacity .25s;
  mix-blend-mode: difference;
  opacity: 0;
}
.cursor-follower.visible { opacity: 0.85; }
.cursor-follower.hover {
  width: 56px;
  height: 56px;
  background: var(--yel);
  border-color: var(--yel);
}
/* Cuando el cursor está sobre fondo oscuro, mix-blend-mode lo invierte */
.page-dsol .cursor-follower,
.page-dsoco .cursor-follower {
  border-color: var(--crema);
}
@media (hover: none), (pointer: coarse) {
  .cursor-follower { display: none; }
}

/* ===================== ANIMATED GRADIENT BLOBS ===================== */
.blob-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
  animation: blob-float 20s ease-in-out infinite;
}
.blob.b1 { width: 480px; height: 480px; top: -120px; right: -120px; }
.blob.b2 { width: 380px; height: 380px; bottom: -100px; left: -80px; animation-delay: -7s; }
.blob.b3 { width: 260px; height: 260px; top: 30%; left: 40%; opacity: 0.35; animation-delay: -13s; }

/* Variantes por hero */
.hero-home .blob.b1 { background: var(--yel); }
.hero-home .blob.b2 { background: var(--ora); }
.hero-home .blob.b3 { background: var(--ora2); }

.hero-turnon .blob.b1 { background: var(--yel); }
.hero-turnon .blob.b2 { background: var(--ora); }
.hero-turnon .blob.b3 { background: var(--ora2); opacity: 0.3; }

.hero-dsol .blob.b1 { background: #D4B27A; opacity: 0.25; }
.hero-dsol .blob.b2 { background: #2D5544; opacity: 0.5; }
.hero-dsol .blob.b3 { background: #EFD9A8; opacity: 0.18; }

.hero-dsoco .blob { display: none; } /* ya tiene su clip-path amarillo característico */

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(40px, -30px) scale(1.08); }
  50%      { transform: translate(-30px, 40px) scale(0.95); }
  75%      { transform: translate(30px, 30px) scale(1.04); }
}

/* Heroes deben permitir z-index al contenido */
.hero { position: relative; isolation: isolate; }
.hero .wrap { position: relative; z-index: 1; }

/* ===================== 3D TILT (vanilla-tilt) ===================== */
[data-tilt] {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}
.line-card .ph,
.line-card h3,
.line-card p,
.line-card .line-arrow,
.line-card .line-kicker {
  transform: translateZ(0);
}
.line-card[data-tilt] .ph { transform: translateZ(30px); }
.line-card[data-tilt] h3 { transform: translateZ(20px); }
.line-card[data-tilt] .line-arrow { transform: translateZ(25px); }
.line-card[data-tilt] .line-kicker { transform: translateZ(15px); }
.line-card[data-tilt] p { transform: translateZ(10px); }

/* ===================== MAGNETIC BUTTONS ===================== */
[data-magnetic] {
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}

/* ===================== MARQUEE HOME (group ticker) ===================== */
.marquee-home {
  background: var(--tinta);
  color: var(--crema);
  padding: 22px 0;
  border-top: 0;
  border-bottom: 0;
}
.marquee-home::before { background: linear-gradient(90deg, var(--tinta), transparent); }
.marquee-home::after { background: linear-gradient(270deg, var(--tinta), transparent); }
.marquee-home .marquee-item { color: var(--crema); }
.marquee-home .marquee-item .accent { color: var(--yel); margin-left: 8px; }
.marquee-home .marquee-dot { background: var(--yel); }

/* ===================== IMAGE CLIP-PATH REVEAL (clase opt-in) ===================== */
.img-reveal {
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee-track { animation: none !important; }
  .js-reveal, .js-reveal-hero { opacity: 1 !important; transform: none !important; }
  .blob { animation: none !important; }
  .img-reveal { clip-path: none !important; }
  .cursor-follower { display: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--crema);
    padding: 18px var(--gut);
    gap: 14px;
    border-bottom: 1px solid rgba(46, 33, 20, 0.1);
    box-shadow: 0 10px 30px rgba(46, 33, 20, 0.08);
  }
  .page-dsol .nav-links.open { background: var(--dark-green-2); }
  .page-dsoco .nav-links.open { background: var(--tinta); }
  .menu-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .process, .stats, .cats { grid-template-columns: 1fr; }
  .cats .cat, .cats .cat.c1, .cats .cat.c2, .cats .cat.c3, .cats .cat.c4, .cats .cat.c5, .cats .cat.c6 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero { padding: 60px 0 70px; }
  section { padding: 60px 0; }
  .wa-fab { width: 54px; height: 54px; bottom: 18px; right: 18px; }
}
