/* =========================================================================
   ZEMOCA TECH — ESTILOS PRINCIPALES
   Los colores, fuentes y medidas salen de tokens.css. Aquí no hay colores
   "hardcodeados" de marca.
   ========================================================================= */

/* ---------- Reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-on-light);
  background: var(--light-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
:focus-visible { outline: 2px solid var(--brand-secondary); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--brand-primary); color: var(--brand-on-primary); padding: .75rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--container-pad); }
.section { padding-block: var(--section-y); position: relative; }

/* Temas de sección: cada sección define sus variables locales */
.section--dark  { --bg: var(--dark-800); --fg: var(--text-on-dark);  --muted: var(--text-on-dark-muted);  --card: var(--dark-700); --card-hover: var(--dark-600); --line: rgba(255,255,255,.08); background: var(--bg); color: var(--fg); }
.section--light { --bg: var(--light-100); --fg: var(--text-on-light); --muted: var(--text-on-light-muted); --card: var(--light-50); --card-hover: var(--light-50); --line: var(--light-200); background: var(--bg); color: var(--fg); }
.section--white { --bg: var(--light-50); --fg: var(--text-on-light); --muted: var(--text-on-light-muted); --card: var(--light-100); --card-hover: var(--light-50); --line: var(--light-200); background: var(--bg); color: var(--fg); }

/* Encabezado de sección */
.section-head { max-width: 720px; margin-bottom: var(--space-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-primary); margin-bottom: var(--space-4);
}
.section--dark .eyebrow { color: var(--brand-secondary); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section-title { font-size: var(--fs-2xl); margin-bottom: var(--space-4); }
.section-lead { font-size: var(--fs-md); color: var(--muted); }
.text-gradient { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--brand-primary); --btn-fg: var(--brand-on-primary); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.4rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: var(--fs-sm); line-height: 1;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  cursor: pointer; transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary:hover { --btn-bg: var(--brand-primary-hover); box-shadow: 0 10px 30px -10px var(--glow-primary); transform: translateY(-1px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: var(--line, rgba(255,255,255,.2)); }
.btn--ghost:hover { --btn-bd: currentColor; }
.btn--white { --btn-bg: #fff; --btn-fg: var(--dark-800); }
.btn--white:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn--lg { min-height: 56px; padding: 1rem 1.75rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }

/* ---------- Placeholders de imagen (se reemplazan por <img>) ---------- */
.ph {
  position: relative; display: grid; place-items: center; text-align: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, color-mix(in srgb, currentColor 4%, transparent) 12px 24px),
    color-mix(in srgb, currentColor 4%, transparent);
  border: 1.5px dashed color-mix(in srgb, currentColor 25%, transparent);
  border-radius: var(--radius-md);
  color: inherit; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  opacity: .9; overflow: hidden;
}
.ph span { opacity: .55; padding: .5rem; }
.ph--logo { width: 150px; height: 40px; border-radius: 6px; }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: var(--text-on-dark);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), backdrop-filter var(--dur);
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--dark-800) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand img { height: 36px; width: auto; }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; background: var(--gradient-brand); display: grid; place-items: center; color: #fff; font-size: 1rem; }
.brand small { font-weight: 500; color: var(--text-on-dark-muted); }

.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav__list { display: flex; gap: var(--space-5); list-style: none; padding: 0; }
.nav__link { font-size: var(--fs-sm); font-weight: 500; color: var(--text-on-dark-muted); transition: color var(--dur); position: relative; padding-block: .25rem; }
.nav__link:hover, .nav__link.is-active { color: var(--text-on-dark); }
.nav__link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gradient-brand); border-radius: 2px; }
.nav__cta { min-height: 42px; padding: .65rem 1.1rem; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius-sm); position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur); content: ""; }
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after  { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: var(--space-5);
    padding: var(--space-5) var(--container-pad) var(--space-6);
    background: var(--dark-800); border-top: 1px solid rgba(255,255,255,.06); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all var(--dur) var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: .9rem 0; font-size: var(--fs-md); border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav__link.is-active::after { display: none; }
  .header.menu-open { background: var(--dark-800); }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero { padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 6rem)); padding-bottom: clamp(4rem, 7vw, 7rem); overflow: hidden; isolation: isolate; }
/* Fondo decorativo: reemplazable por imagen/video de marca (ver .hero__bg-media) */
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.hero__glow--1 { width: 520px; height: 520px; background: var(--brand-primary); top: -160px; right: -120px; }
.hero__glow--2 { width: 420px; height: 420px; background: var(--brand-secondary); bottom: -200px; left: -140px; opacity: .3; }
.hero__bg-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }

.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .9rem .4rem .45rem; margin-bottom: var(--space-5);
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: rgba(255,255,255,.03);
  font-size: var(--fs-xs); color: var(--muted);
}
.hero__badge b { background: var(--gradient-brand); color: #fff; padding: .2rem .55rem; border-radius: var(--radius-pill); font-weight: 600; font-size: .72rem; letter-spacing: .04em; }
.hero__title { font-size: var(--fs-hero); margin-bottom: var(--space-5); }
.hero__lead { font-size: var(--fs-md); color: var(--muted); max-width: 580px; margin-bottom: var(--space-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; padding: 0; font-size: var(--fs-sm); color: var(--muted); }
.hero__trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__trust svg { width: 18px; height: 18px; color: var(--brand-secondary); flex: none; }

.hero__visual { position: relative; }
.hero__visual .ph { aspect-ratio: 4 / 3.4; border-radius: var(--radius-lg); }
.hero__chip {
  position: absolute; display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem;
  background: color-mix(in srgb, var(--dark-700) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.hero__chip strong { display: block; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.1; }
.hero__chip small { color: var(--muted); font-size: var(--fs-xs); }
.hero__chip-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-primary) 20%, transparent); color: var(--brand-secondary); }
.hero__chip-icon svg { width: 20px; height: 20px; }
.hero__chip--1 { left: -28px; bottom: 14%; }
.hero__chip--2 { right: -18px; top: 10%; animation-delay: -3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; }
  .hero__chip--1 { left: 8px; }
  .hero__chip--2 { right: 8px; }
}

/* =========================================================================
   LOGOS CLIENTES
   ========================================================================= */
.logos { padding-block: var(--space-7); border-top: 1px solid var(--line); }
.logos__title { text-align: center; font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--space-5); }
.logos__track { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logos__row { display: flex; gap: var(--space-7); width: max-content; animation: marquee 40s linear infinite; list-style: none; padding: 0; }
.logos__row img { height: 36px; width: auto; filter: grayscale(1) brightness(1.8); opacity: .6; transition: opacity var(--dur), filter var(--dur); }
.logos__row img:hover { opacity: 1; filter: none; }
.logos__track:hover .logos__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================================
   PROBLEMA
   ========================================================================= */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.pain-card { padding: var(--space-6) var(--space-5); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); }
.pain-card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: var(--space-4); background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.pain-card__icon svg { width: 22px; height: 22px; }
.pain-card h3 { font-size: var(--fs-md); margin-bottom: var(--space-2); }
.pain-card p { font-size: var(--fs-sm); color: var(--muted); }
.pain-bridge {
  margin-top: var(--space-6); padding: var(--space-5) var(--space-6); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap;
  background: var(--dark-800); color: var(--text-on-dark);
}
.pain-bridge p { font-size: var(--fs-md); max-width: 720px; }
.pain-bridge strong { color: #fff; }
@media (max-width: 960px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pain-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   SERVICIOS (bento)
   ========================================================================= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.service-card {
  position: relative; display: flex; flex-direction: column; padding: var(--space-6); overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), border-color var(--dur), background var(--dur);
}
.service-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity var(--dur);
}
.service-card:hover { transform: translateY(-4px); background: var(--card-hover); }
.service-card:hover::before { opacity: 1; }
.service-card--featured { grid-column: span 2; background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand-primary) 22%, transparent), transparent 55%), var(--card); }
.service-card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: var(--space-5); background: var(--gradient-brand); color: #fff; box-shadow: 0 10px 24px -10px var(--glow-primary); }
.service-card__icon svg { width: 26px; height: 26px; }
.service-card__tag { position: absolute; top: var(--space-5); right: var(--space-5); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .6rem; border-radius: var(--radius-pill); border: 1px solid var(--line); color: var(--muted); }
.service-card h3 { font-size: var(--fs-lg); margin-bottom: var(--space-3); }
.service-card > p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--space-5); }
.service-card ul { list-style: none; padding: 0; display: grid; gap: .5rem; margin-top: auto; }
.service-card--featured ul { grid-template-columns: 1fr 1fr; }
.service-card li { display: flex; gap: .55rem; font-size: var(--fs-sm); }
.service-card li svg { width: 18px; height: 18px; color: var(--brand-secondary); flex: none; margin-top: .15rem; }
@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card--featured { grid-column: auto; }
  .service-card--featured ul { grid-template-columns: 1fr; }
}

/* =========================================================================
   SECTORES
   ========================================================================= */
.industries { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); list-style: none; padding: 0; }
.industries li {
  display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.15rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-weight: 500; font-size: var(--fs-sm); transition: border-color var(--dur), transform var(--dur);
}
.industries li:hover { border-color: var(--brand-primary); transform: translateY(-2px); }
.industries svg { width: 18px; height: 18px; color: var(--brand-primary); }

/* =========================================================================
   PROCESO
   ========================================================================= */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); counter-reset: step; list-style: none; padding: 0; position: relative; }
.process::before { content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary)); opacity: .25; }
.process__step { position: relative; }
.process__num {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: var(--space-5);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  background: var(--card); border: 2px solid var(--brand-primary); color: var(--brand-primary); position: relative; z-index: 1;
}
.process__step h3 { font-size: var(--fs-md); margin-bottom: var(--space-2); }
.process__step p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--space-3); }
.process__step small { display: inline-block; font-size: var(--fs-xs); font-weight: 600; color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 10%, transparent); padding: .25rem .6rem; border-radius: var(--radius-pill); }
@media (max-width: 960px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process::before { display: none; }
}
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* =========================================================================
   MÉTRICAS
   ========================================================================= */
.metrics { background: var(--gradient-brand); color: #fff; padding-block: clamp(3rem, 5vw, 4.5rem); }
.metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); text-align: center; }
.metric strong { display: block; font-family: var(--font-display); font-size: clamp(2.25rem, 1.6rem + 2.5vw, 3.5rem); line-height: 1; margin-bottom: var(--space-2); letter-spacing: -0.03em; }
.metric span { font-size: var(--fs-sm); opacity: .9; }
@media (max-width: 760px) { .metrics__grid { grid-template-columns: 1fr 1fr; row-gap: var(--space-6); } }

/* =========================================================================
   CASOS DE ÉXITO
   ========================================================================= */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.case-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur); }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.case-card__media .ph { height: 100%; border-radius: 0; border: 0; border-bottom: 1px dashed var(--line); }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.case-card:hover .case-card__media img { transform: scale(1.04); }
.case-card__body { padding: var(--space-5) var(--space-5) var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.case-card__tag { align-self: flex-start; font-size: var(--fs-xs); font-weight: 600; color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 10%, transparent); padding: .25rem .65rem; border-radius: var(--radius-pill); }
.case-card h3 { font-size: var(--fs-md); }
.case-card p { font-size: var(--fs-sm); color: var(--muted); }
.case-card__result { margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: .6rem; }
.case-card__result strong { font-family: var(--font-display); font-size: var(--fs-xl); background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case-card__result span { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 960px) { .cases-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cases-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   POR QUÉ ZEMOCA
   ========================================================================= */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.why__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.why__intro .ph { aspect-ratio: 4 / 3; margin-top: var(--space-6); }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.why-item { padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); }
.why-item svg { width: 26px; height: 26px; color: var(--brand-secondary); margin-bottom: var(--space-4); }
.why-item h3 { font-size: var(--fs-md); margin-bottom: var(--space-2); }
.why-item p { font-size: var(--fs-sm); color: var(--muted); }
.stack { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.stack__title { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--space-4); text-align: center; }
.stack__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); list-style: none; padding: 0; }
.stack__list li { padding: .55rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 500; color: var(--muted); background: rgba(255,255,255,.02); }
@media (max-width: 960px) {
  .why { grid-template-columns: 1fr; }
  .why__intro { position: static; }
}
@media (max-width: 560px) { .why__grid { grid-template-columns: 1fr; } }

/* =========================================================================
   TESTIMONIOS
   ========================================================================= */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.testimonial { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-6); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.testimonial__stars { display: flex; gap: 2px; color: #F5B301; }
.testimonial__stars svg { width: 18px; height: 18px; }
.testimonial blockquote { font-size: var(--fs-base); line-height: 1.65; flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: var(--space-3); }
.testimonial figcaption .ph, .testimonial figcaption img { width: 48px; height: 48px; border-radius: 50%; flex: none; object-fit: cover; }
.testimonial figcaption .ph span { display: none; }
.testimonial cite { font-style: normal; font-weight: 600; display: block; }
.testimonial figcaption small { color: var(--muted); font-size: var(--fs-xs); }
@media (max-width: 960px) { .testimonials { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; } }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq { max-width: 840px; margin-inline: auto; display: grid; gap: var(--space-3); }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); transition: border-color var(--dur); }
.faq details[open] { border-color: color-mix(in srgb, var(--brand-primary) 50%, transparent); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5); font-weight: 600; font-size: var(--fs-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; font-weight: 400; border: 1px solid var(--line); transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 var(--space-5) var(--space-5); color: var(--muted); }

/* =========================================================================
   CONTACTO / CTA FINAL
   ========================================================================= */
.contact { overflow: hidden; isolation: isolate; }
.contact::before { content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; border-radius: 50%; background: var(--brand-primary); filter: blur(140px); opacity: .22; top: -300px; left: -200px; }
.contact__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact__points { list-style: none; padding: 0; display: grid; gap: var(--space-3); margin: var(--space-6) 0; }
.contact__points li { display: flex; gap: .6rem; align-items: flex-start; }
.contact__points svg { width: 20px; height: 20px; color: var(--brand-secondary); flex: none; margin-top: .2rem; }
.contact__info { display: grid; gap: var(--space-4); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.contact__info a, .contact__info div { display: flex; align-items: center; gap: var(--space-3); color: var(--muted); transition: color var(--dur); }
.contact__info a:hover { color: var(--fg); }
.contact__info svg { width: 20px; height: 20px; flex: none; color: var(--brand-secondary); }

.form { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--light-50); color: var(--text-on-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.form h3 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.form > p { color: var(--text-on-light-muted); font-size: var(--fs-sm); margin-bottom: var(--space-5); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: grid; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-xs); font-weight: 600; color: var(--text-on-light); }
.field label span { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--light-200); border-radius: var(--radius-sm);
  background: var(--light-100); font-size: var(--fs-sm); transition: border-color var(--dur), background var(--dur), box-shadow var(--dur);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-primary); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-primary) 15%, transparent); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-xs); color: var(--text-on-light-muted); grid-column: 1 / -1; }
.check input { margin-top: .2rem; accent-color: var(--brand-primary); width: 16px; height: 16px; flex: none; }
.check a { color: var(--brand-primary); text-decoration: underline; }
.hp { position: absolute; left: -9999px; }
.form__submit { grid-column: 1 / -1; margin-top: var(--space-2); }
.form__note { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--text-on-light-muted); text-align: center; }
.form__status { grid-column: 1 / -1; font-size: var(--fs-sm); padding: .8rem 1rem; border-radius: var(--radius-sm); display: none; }
.form__status.is-success { display: block; background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); }
.form__status.is-error   { display: block; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: var(--dark-900); color: var(--text-on-dark-muted); padding-top: var(--space-8); font-size: var(--fs-sm); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--space-6); padding-bottom: var(--space-7); }
.footer .brand { color: var(--text-on-dark); margin-bottom: var(--space-4); }
.footer__about p { max-width: 340px; margin-bottom: var(--space-5); }
.footer h4 { font-family: var(--font-body); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--text-on-dark); margin-bottom: var(--space-4); }
.footer ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer a:hover { color: var(--text-on-dark); }
.social { display: flex; gap: var(--space-2); }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.1); transition: background var(--dur), border-color var(--dur), color var(--dur); }
.social a:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.social svg { width: 18px; height: 18px; }
.reclamaciones { display: inline-flex; align-items: center; gap: .6rem; margin-top: var(--space-3); padding: .6rem .9rem; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); }
.reclamaciones svg { width: 22px; height: 22px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.06); padding-block: var(--space-5); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-size: var(--fs-xs); }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* =========================================================================
   WHATSAPP FLOTANTE
   ========================================================================= */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .55);
  transition: transform var(--dur) var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* =========================================================================
   ANIMACIONES DE ENTRADA
   ========================================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
