/* ============================================================
   PREMIUM LAYER — cinematográfico, atmosférico, de agencia
   Cursor custom · grain · scroll progress · particles · tilt
   ============================================================ */

/* ============================================================
   1. CURSOR — sistema nativo (custom cursor removido por UX)
   ============================================================ */
a, button, [data-hover], .btn, .service-card, .gallery__item {
  cursor: pointer;
}
input, textarea, [contenteditable="true"] { cursor: text; }

/* ============================================================
   2. GRAIN OVERLAY GLOBAL (cinematográfico sutil)
   ============================================================ */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.85 0 0 0 0 0.55 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 8s steps(8) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-3%, 2%); }
  20%  { transform: translate(2%, -4%); }
  30%  { transform: translate(-4%, 3%); }
  40%  { transform: translate(3%, -2%); }
  50%  { transform: translate(-2%, 4%); }
  60%  { transform: translate(4%, -3%); }
  70%  { transform: translate(-3%, -2%); }
  80%  { transform: translate(2%, 3%); }
  90%  { transform: translate(-4%, -4%); }
  100% { transform: translate(0, 0); }
}

/* ============================================================
   3. SCROLL PROGRESS BAR (línea dorada arriba)
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 9999;
  pointer-events: none;
  background: rgba(212, 165, 116, 0.08);
}

.scroll-progress__bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 40%, var(--gold-light) 60%, var(--gold-light) 80%, transparent 100%);
  box-shadow: 0 0 16px rgba(232, 200, 150, 0.7);
  transition: width 0.1s linear;
}

/* ============================================================
   4. HERO CINEMATOGRÁFICO — canvas 3D beams + partículas + overlay
   ============================================================ */
.hero {
  min-height: 100vh;
  min-height: 108svh;
}

/* Canvas 3D Three.js como background del hero */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Fallback si WebGL no está disponible */
.hero__bg--fallback {
  background:
    radial-gradient(ellipse 70% 60% at 30% 40%, rgba(212, 165, 116, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 70% 70%, rgba(212, 165, 116, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #0f0a06 0%, #0a0a0a 100%);
}

/* Vignette / overlay para legibilidad del texto sobre el canvas */
.hero__overlay {
  background:
    radial-gradient(ellipse 75% 60% at 30% 55%, rgba(10, 10, 10, 0.15) 0%, rgba(10, 10, 10, 0.72) 85%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.25) 0%, rgba(10, 10, 10, 0.92) 100%);
}

/* Partículas doradas flotando */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 6px var(--gold-light), 0 0 12px var(--gold);
  opacity: 0;
  animation: particle-float var(--dur, 14s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.hero-particle:nth-child(odd)  { width: 2px; height: 2px; }
.hero-particle:nth-child(3n)   { width: 4px; height: 4px; box-shadow: 0 0 10px var(--gold-light), 0 0 20px var(--gold); }

@keyframes particle-float {
  0%   { transform: translate3d(var(--x-from, 0), 110vh, 0); opacity: 0; }
  8%   { opacity: 1; }
  50%  { transform: translate3d(calc(var(--x-from, 0) + 20px), 50vh, 0); opacity: 0.85; }
  92%  { opacity: 1; }
  100% { transform: translate3d(calc(var(--x-from, 0) - 20px), -10vh, 0); opacity: 0; }
}

/* Hero title: líneas con grain shimmer */
.hero__title-line {
  position: relative;
}

.hero__title .gold-gradient {
  text-shadow: 0 0 40px rgba(212, 165, 116, 0.3);
}

/* SplitText palabras */
.hero__title .word {
  display: inline-block;
  will-change: transform, opacity;
}

/* Script "es un placer atenderte" — con glow sutil */
.hero__script {
  text-shadow: 0 0 24px rgba(212, 165, 116, 0.35);
}

/* Hero pill — más premium */
.hero__pill {
  background: linear-gradient(135deg, rgba(212,165,116,0.08) 0%, rgba(212,165,116,0.02) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   5. SECTION DIVIDERS ORNAMENTALES
   ============================================================ */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-8) 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.section-divider.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-divider__line {
  flex: 0 0 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
}

.section-divider__ornament {
  width: 14px;
  height: 14px;
  color: var(--gold);
  transform: rotate(45deg);
  background: currentColor;
  border-radius: 2px;
  box-shadow: 0 0 12px var(--gold-glow);
  position: relative;
}

.section-divider__ornament::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--bg-primary);
  border-radius: 1px;
}

@media (min-width: 768px) {
  .section-divider__line {
    flex: 0 0 180px;
  }
}

/* ============================================================
   6. PROTOCOL NUMBERS — XL con outline dorado
   ============================================================ */
.protocol__num {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  text-stroke: 1px var(--gold);
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-4);
  transition: color 0.4s var(--ease-out), -webkit-text-stroke-color 0.4s var(--ease-out);
  font-family: var(--font-display);
  font-style: italic;
  display: inline-block;
  position: relative;
}

.protocol__step:hover .protocol__num {
  color: var(--gold);
  -webkit-text-stroke-color: var(--gold-light);
}

.protocol__step {
  padding: var(--space-6) var(--space-6) var(--space-7);
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-elevated) 100%);
  position: relative;
  overflow: hidden;
}

.protocol__step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.protocol__step:hover::before { opacity: 1; }

/* ============================================================
   7. SERVICE CARDS — TILT 3D preparación
   ============================================================ */
.services__grid { perspective: 1400px; }

.service-card {
  transform-style: preserve-3d;
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}

.service-card__img { transform: translateZ(0); position: relative; overflow: hidden; }

.service-card__img::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg, transparent 30%, rgba(232, 200, 150, 0.25) 50%, transparent 70%);
  transition: left 0.9s var(--ease-out);
  z-index: 2;
  pointer-events: none;
}

.service-card:hover .service-card__img::before {
  left: 130%;
}

.service-card:hover {
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(212, 165, 116, 0.35),
    0 0 60px rgba(212, 165, 116, 0.12);
}

.service-card__body { transform: translateZ(0); }

.service-card h3 {
  transition: color 0.3s var(--ease-out);
}

.service-card:hover h3 {
  color: var(--gold-light);
}

/* ============================================================
   8. GALLERY — desaturado que cromatiza en hover
   ============================================================ */
.gallery__item img {
  filter: grayscale(0.6) contrast(1.05) brightness(0.88);
  transition: filter 0.6s var(--ease-out), transform 0.9s var(--ease-out);
}

.gallery__item:hover img {
  filter: grayscale(0) contrast(1.1) brightness(1);
}

.gallery__item {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s var(--ease-out), transform 0.4s var(--ease-out);
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid transparent;
  border-radius: inherit;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.gallery__item:hover {
  border-color: var(--gold-dark);
}

.gallery__item:hover::after {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(232, 200, 150, 0.3), 0 20px 50px rgba(212, 165, 116, 0.15);
}

.gallery__item figcaption {
  background: linear-gradient(0deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.6) 70%, transparent 100%);
  padding: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: none;
}

/* ============================================================
   9. BOTONES — shimmer sweep mejorado + subtle scale
   ============================================================ */
.btn {
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.78rem;
}

.btn--lg { font-size: 0.86rem; }
.btn--xl { font-size: 0.95rem; letter-spacing: 0.15em; }

/* Shimmer en todos los CTAs principales */
.btn--whatsapp::after,
.btn--gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 40%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.12) 60%,
    transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.9s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

.btn--whatsapp:hover::after,
.btn--gold:hover::after {
  left: 160%;
}

/* CTA principal — pulso sutil infinito */
.final-cta__inner .btn--xl,
.hero__ctas .btn--whatsapp {
  animation: cta-pulse 3s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.25), 0 0 0 0 rgba(37, 211, 102, 0); }
  50%      { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* Ghost buttons — underline animado */
.btn--ghost {
  position: relative;
  overflow: visible;
}

.btn--ghost::before {
  content: '';
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.btn--ghost:hover::before { transform: scaleX(1); }

/* ============================================================
   10. PROOF BAR refinado
   ============================================================ */
.proof {
  background:
    radial-gradient(ellipse at center, rgba(212, 165, 116, 0.04) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding: var(--space-10) 0;
}

.proof__item {
  position: relative;
  padding: 0 var(--space-4);
}

.proof__item + .proof__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: linear-gradient(180deg, transparent 0%, var(--divider) 50%, transparent 100%);
}

@media (max-width: 767px) {
  .proof__item + .proof__item::before { display: none; }
}

.proof__num {
  position: relative;
  display: inline-block;
  text-shadow: 0 0 30px rgba(212, 165, 116, 0.25);
}

/* ============================================================
   11. CASE (antes/después) — glow sutil al hover
   ============================================================ */
.case__half {
  transition: transform 0.6s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.case__half::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,10,0.35) 100%);
  pointer-events: none;
  border-radius: inherit;
}

.case__split:hover .case__half--before { transform: translateX(-8px); }
.case__split:hover .case__half--after  { transform: translateX(8px); }

.case__half--after {
  box-shadow: 0 0 0 1px rgba(212, 165, 116, 0.15);
}

/* ============================================================
   12. PROMO — aura dorada pulsante
   ============================================================ */
.promo__wrap {
  position: relative;
}

.promo__wrap::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, var(--gold-glow) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.5;
  z-index: -1;
  animation: promo-aura 4s ease-in-out infinite alternate;
}

@keyframes promo-aura {
  0%   { opacity: 0.3; transform: scale(1); }
  100% { opacity: 0.6; transform: scale(1.05); }
}

.promo__amount {
  display: inline-block;
  position: relative;
}

.promo__amount::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  opacity: 0.35;
  filter: blur(2px);
}

/* ============================================================
   13. TEAM — frame más rico
   ============================================================ */
.team__img {
  position: relative;
}

.team__img::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, var(--gold-dark) 0%, transparent 40%, transparent 60%, var(--gold-dark) 100%);
  border-radius: calc(var(--radius-xl) + 3px);
  z-index: -1;
  opacity: 0.6;
  filter: blur(2px);
}

.team__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 10, 0.4) 100%);
  pointer-events: none;
  border-radius: inherit;
}

.team__img img {
  filter: grayscale(0.2) contrast(1.05);
  transition: filter 0.6s var(--ease-out);
}

.team__img:hover img {
  filter: grayscale(0) contrast(1.1);
}

.team__quote {
  position: relative;
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-8);
}

.team__quote::before {
  content: '"';
  position: absolute;
  left: -10px;
  top: -20px;
  font-size: 6rem;
  font-family: var(--font-display);
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  font-style: italic;
  font-weight: 500;
}

/* ============================================================
   14. FINAL CTA — fondo más rico
   ============================================================ */
.final-cta__bg {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(212, 165, 116, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(212, 165, 116, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, transparent 0%, rgba(10, 10, 10, 0.6) 80%);
}

.final-cta__title {
  text-shadow: 0 0 60px rgba(212, 165, 116, 0.15);
}

/* ============================================================
   15. NAV refinada
   ============================================================ */
.nav.is-scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(212, 165, 116, 0.15);
}

.nav__logo {
  position: relative;
  transition: transform 0.3s var(--ease-out);
}

.nav__logo:hover { transform: translateX(2px); }

.nav__logo img {
  filter: drop-shadow(0 2px 8px rgba(212, 165, 116, 0.3));
}

/* ============================================================
   16. LOCATION — map tag más vivo
   ============================================================ */
.location__visual {
  position: relative;
}

.location__visual::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--gold-dark) 0%, transparent 50%, var(--gold-dark) 100%);
  border-radius: calc(var(--radius-xl) + 2px);
  z-index: -1;
  opacity: 0.4;
  filter: blur(3px);
}

.location__visual img {
  filter: contrast(1.1) brightness(0.92) saturate(1.1);
}

.location__visual-tag {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  font-size: 0.7rem;
  padding: var(--space-2) var(--space-4);
}

/* ============================================================
   17. SCROLL HINT mejorado
   ============================================================ */
.hero__scroll-hint {
  font-family: var(--font-heading);
  font-weight: 500;
}

.hero__scroll-hint span:first-child {
  position: relative;
}

.hero__scroll-hint span:first-child::before,
.hero__scroll-hint span:first-child::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.hero__scroll-hint span:first-child::before { right: calc(100% + 10px); }
.hero__scroll-hint span:first-child::after  { left: calc(100% + 10px); }

/* ============================================================
   18. FOOTER refinado
   ============================================================ */
.footer {
  background:
    linear-gradient(180deg, var(--bg-secondary) 0%, #050505 100%);
  border-top: 1px solid transparent;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  opacity: 0.35;
}

.footer__logo {
  filter: drop-shadow(0 4px 12px rgba(212, 165, 116, 0.3));
}

/* ============================================================
   19. HERO — BRAND BLOCK + INFO CARDS (llenar el espacio)
   ============================================================ */

/* Brand block — logo + nombre en top del hero content */
.hero__brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  max-width: 560px;
}

.hero__logo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(212, 165, 116, 0.3), 0 0 0 1px rgba(212, 165, 116, 0.15);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.hero__brand:hover .hero__logo {
  transform: scale(1.04) rotate(-2deg);
  box-shadow: 0 16px 40px rgba(212, 165, 116, 0.45), 0 0 0 1px rgba(232, 200, 150, 0.3);
}

.hero__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hero__brand-name {
  font-family: var(--font-logo);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
}

.hero__brand-name em {
  font-style: normal;
  color: var(--gold);
  font-weight: 500;
}

.hero__brand-loc {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Info cards — ubicación / horarios / teléfono */
.hero__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  max-width: 720px;
}

.hero__info-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-4) var(--space-4) var(--space-3);
  background: rgba(10, 10, 10, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.35s var(--ease-out),
              background 0.35s var(--ease-out),
              transform 0.35s var(--ease-out);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.hero__info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

a.hero__info-card:hover,
a.hero__info-card:focus-visible {
  border-color: var(--gold-dark);
  background: rgba(212, 165, 116, 0.08);
  transform: translateY(-2px);
}

a.hero__info-card:hover::before { opacity: 1; }

.hero__info-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.hero__info-label {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--gold);
}

.hero__info-value {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--white-muted);
  line-height: 1.45;
}

/* ============================================================
   20. MOBILE POLISH — audit completo de breakpoints
   ============================================================ */

/* ≤ 900px: nav más compacta */
@media (max-width: 899px) {
  .nav__logo-text { display: none; }
  .nav__inner { gap: var(--space-3); }
  .nav__logo img { width: 40px; height: 40px; }
}

/* ≤ 768px: TABLET / MOBILE GRANDE */
@media (max-width: 768px) {
  /* Hero más compacto */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: var(--space-12);
    padding-bottom: var(--space-8);
  }

  .hero__brand { gap: var(--space-3); margin-bottom: var(--space-6); padding-bottom: var(--space-4); }
  .hero__logo { width: 52px; height: 52px; }
  .hero__brand-name { font-size: 1.05rem; }

  .hero__info {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
    max-width: 100%;
  }
  .hero__info-card { padding: var(--space-3); }
  .hero__info-value { font-size: 0.74rem; }
  .hero__info-label { font-size: 0.56rem; }

  .hero__scroll-hint { display: none; }

  /* Secciones con menos padding vertical */
  .section {
    padding-top: clamp(var(--space-10), 12vw, var(--space-12));
    padding-bottom: clamp(var(--space-10), 12vw, var(--space-12));
  }

  /* Proof bar — sin divisores verticales entre items */
  .proof__item + .proof__item::before { display: none; }
  .proof { padding: var(--space-8) 0; }
  .proof__grid { gap: var(--space-5); }

  /* Service cards: sin tilt en touch (ya lo maneja JS), sólo mostrar cards */
  .services__grid { perspective: none; }
  .service-card { transform: none !important; }

  /* Team, Case, Location — orden consistente: primero texto, luego imagen */
  .team__grid, .case__wrap, .location__grid { gap: var(--space-8); }

  .team__quote { padding-left: var(--space-5); font-size: 1.05rem; }
  .team__img { aspect-ratio: 4 / 5; max-width: 420px; margin: 0 auto; width: 100%; }
  .case__split { aspect-ratio: 4 / 5; max-width: 420px; margin: 0 auto; width: 100%; }
  .location__visual { aspect-ratio: 4 / 5; max-width: 420px; margin: 0 auto; width: 100%; }

  /* Protocol numbers más grandes en mobile */
  .protocol__num {
    font-size: clamp(4rem, 14vw, 5.5rem);
  }

  /* Promo tarjeta */
  .promo__wrap { padding: var(--space-8) var(--space-4); }
  .promo__amount { font-size: clamp(3rem, 13vw, 5rem); }

  /* Gallery: 2 cols con rows menos altas */
  .gallery__grid {
    grid-auto-rows: 160px;
    gap: var(--space-2);
  }

  /* Botones con tap target mínimo */
  .btn { min-height: 44px; }
  .btn--sm { min-height: 38px; }

  /* Footer stack */
  .footer__bottom { justify-content: center; text-align: center; }
}

/* ≤ 640px: MOBILE */
@media (max-width: 640px) {
  /* Container padding reducido */
  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  /* Hero mobile-first */
  .hero {
    padding-top: var(--space-10);
    padding-bottom: var(--space-6);
  }

  .hero__title {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
  }

  .hero__script {
    font-size: clamp(1.6rem, 7vw, 2.25rem);
  }

  .hero__sub {
    font-size: 0.95rem;
    margin-bottom: var(--space-5);
  }

  /* CTAs apilados + full width */
  .hero__ctas {
    flex-direction: column;
    gap: var(--space-2);
  }
  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }

  /* Hero pill full width */
  .hero__pill {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.75rem;
    padding: var(--space-2) var(--space-4);
  }

  /* Info cards en 1 columna */
  .hero__info {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    margin-top: var(--space-6);
    padding-top: var(--space-5);
  }

  .hero__info-card {
    flex-direction: row;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
  }
  .hero__info-icon { font-size: 1.3rem; }
  .hero__info-label {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.55rem;
  }
  .hero__info-value { font-size: 0.85rem; flex: 1; }

  /* Proof bar: items con margen */
  .proof__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
  .proof__num { font-size: 2rem; }
  .proof__label { font-size: 0.62rem; }

  /* Section head más compacto */
  .section__head { margin-bottom: var(--space-8); }
  .section__title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .section__sub { font-size: 0.95rem; }

  /* Service cards 1 columna */
  .services__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .service-card:hover { transform: none; }

  /* Case (antes/después): mantener split horizontal pero más compacto */
  .case__split { aspect-ratio: 4 / 5; gap: var(--space-2); }
  .case__copy h2 { font-size: 1.75rem; }

  /* Promo */
  .promo__wrap { padding: var(--space-6) var(--space-4); }
  .promo__title { font-size: 1.5rem; }
  .promo__ctas { flex-direction: column; width: 100%; }
  .promo__ctas .btn { width: 100%; justify-content: center; }

  /* Team quote sin padding izquierda excesivo */
  .team__copy h2 { font-size: 1.75rem; }
  .team__quote { padding: var(--space-4) var(--space-4) var(--space-4) var(--space-6); font-size: 1rem; }
  .team__quote::before { left: -2px; top: -10px; font-size: 4rem; }

  /* Protocol */
  .protocol__steps { gap: var(--space-4); }
  .protocol__step { padding: var(--space-5); }
  .protocol__card { padding: var(--space-5); }
  .protocol__card-amount { font-size: 2.5rem; }

  /* Gallery 2 cols con rows de 140px */
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: var(--space-2);
  }
  .gallery__item figcaption { font-size: 0.72rem; padding: var(--space-2) var(--space-3); }

  /* Location */
  .location__info h2 { font-size: 1.8rem; }
  .location__block p { font-size: 0.92rem; }
  .location__ctas { flex-direction: column; }
  .location__ctas .btn { width: 100%; justify-content: center; }

  /* CTA final */
  .final-cta { padding: var(--space-12) 0; }
  .final-cta__title { font-size: clamp(2rem, 9vw, 3rem); }
  .final-cta__sub { font-size: 0.9rem; }
  .final-cta__inner .btn--xl {
    width: 100%;
    justify-content: center;
    padding: var(--space-4) var(--space-5);
  }

  /* Footer */
  .footer__grid { gap: var(--space-6); }
  .footer__col h4 { margin-bottom: var(--space-2); }

  /* Scroll progress más delgado */
  .scroll-progress { height: 2px; }

  /* Grain menos intenso en mobile (menos CPU) */
  .grain { opacity: 0.025; }

  /* Hero particles reducir a 8 (el JS ya lo hace en < 768, acá solo refuerzo) */
  .hero-particle:nth-child(n+9) { display: none; }
}

/* ≤ 380px: MOBILE PEQUEÑO */
@media (max-width: 380px) {
  .hero__title { font-size: 2rem; }
  .hero__script { font-size: 1.5rem; }
  .section__title { font-size: 1.6rem; }
  .promo__amount { font-size: 3rem; }
  .hero__brand-name { font-size: 0.95rem; }
  .hero__logo { width: 44px; height: 44px; }
  .container {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
}

/* ============================================================
   21. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero__bg img,
  .grain,
  .hero-particle,
  .promo__wrap::before,
  .btn--whatsapp,
  .final-cta__inner .btn--xl {
    animation: none !important;
  }
}
