/* ═══════════════════════════════════════════════
   Landing Page — Tabares Producciones
   v2: Apple-style UX overhaul
   ═══════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  /* Colors — consolidated gold (2 tones only) */
  --navy: #1a2849;
  --navy-deep: #0f1a33;
  --navy-blue: #2c3e50;
  --gold: #d4af37;
  --gold-light: #e8c547;
  --gold-grad: linear-gradient(135deg, #d4af37, #e8c547);
  --gold-glow: 0 0 20px rgba(212, 175, 55, 0.25);
  --white: #ffffff;
  --gray-light: #f8f9fa;
  --gray-dark: #6c757d;
  --text: #333;

  /* Typography scale (1.25 ratio) */
  --text-display: clamp(2.2rem, 4vw + 1rem, 3.5rem);
  --text-heading: clamp(1.6rem, 2.5vw + 0.5rem, 2.4rem);
  --text-subhead: clamp(1.1rem, 1.5vw + 0.3rem, 1.35rem);
  --text-body: clamp(0.95rem, 1vw + 0.2rem, 1.05rem);

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 7rem);
  --nav-h: 72px;

  /* Radius tokens */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-full: 999px;

  /* Shadows */
  --shadow: 0 4px 8px rgba(26,40,73,.06), 0 12px 24px rgba(26,40,73,.08);
  --shadow-hover: 0 4px 8px rgba(26,40,73,.08), 0 16px 32px rgba(26,40,73,.12), 0 24px 48px rgba(26,40,73,.06);

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & Base ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-rendering: optimizeLegibility;
  line-height: 1.6; color: #cdd6e6; background: var(--navy-deep);
  font-size: var(--text-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* Subtle noise grain overlay (premium texture) */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 180px;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { scroll-margin-top: var(--nav-h); }

/* ── Section separator (subtle gold line) ── */
.section-sep {
  height: 1px; max-width: 60px; margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.3), transparent);
}

/* ── Header / Nav (#1: transparent → solid) ── */
.header {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: transparent;
  transition: background .4s var(--ease-in-out), box-shadow .4s var(--ease-in-out), backdrop-filter .4s;
}
.header.scrolled {
  background: rgba(26, 40, 73, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 2rem; max-width: 1200px; margin: 0 auto; gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 6px; text-decoration: none; }
.nav-logo-img {
  height: 58px; width: auto; display: block; object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.35));
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { color: var(--gold); font-weight: 800; font-size: 1.25rem; letter-spacing: .5px; }
.brand-subtitle { color: #fff; opacity: .92; font-size: .75rem; font-weight: 600; letter-spacing: 1px; display: block; margin-top: 2px; }
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-menu a {
  color: #fff; text-decoration: none; font-weight: 500; position: relative;
  transition: color .3s var(--ease-in-out); white-space: nowrap;
}
.nav-menu a:hover { color: var(--gold); }
.nav-menu a::after {
  content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
  background: var(--gold); transition: width .3s var(--ease-out);
}
.nav-menu a:hover::after, .nav-menu a.nav-active::after { width: 100%; }
.nav-menu a.nav-active { color: var(--gold); }
.btn-contact {
  background: var(--gold-grad);
  color: var(--navy) !important; padding: .7rem 1.5rem;
  border-radius: var(--radius-full); font-weight: 600;
}
.btn-contact::after { display: none; }
.mobile-menu-toggle { display: none; color: #fff; font-size: 1.5rem; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

/* ── Buttons (shared) ── */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.6rem; border-radius: 30px; font-weight: 600;
  text-decoration: none;
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease-out);
}
.btn-primary { background: var(--gold-grad); color: var(--navy); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-secondary { border: 2px solid var(--gold); color: #fff; }
.btn-secondary:hover { background: var(--gold); color: var(--navy); }

/* ── Hero ── */
.hero {
  min-height: 100vh; position: relative; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 2rem) 2rem 5rem; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-blue) 100%);
}
.hero-background {
  position: absolute; inset: -5%; width: 110%; height: 110%;
  background-color: #0e1933; background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 0;
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(15,26,51,.7) 0%, rgba(15,26,51,.72) 35%, rgba(15,26,51,.82) 70%, rgba(15,26,51,1) 100%),
    radial-gradient(ellipse at 55% 45%, rgba(15,26,51,.5), transparent 55%);
}
/* Animated gradient mesh orbs */
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; z-index: 1; pointer-events: none;
  filter: blur(80px); opacity: .45;
}
.hero::before {
  width: 600px; height: 600px; top: -10%; left: -5%;
  background: radial-gradient(circle, rgba(212,175,55,.18), transparent 70%);
  animation: orb-drift 18s ease-in-out infinite;
}
.hero::after {
  width: 500px; height: 500px; bottom: -15%; right: -5%;
  background: radial-gradient(circle, rgba(59,130,246,.12), transparent 70%);
  animation: orb-drift 22s ease-in-out infinite reverse;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 20px) scale(0.95); }
}

.hero-content {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2.5rem;
  max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; width: 100%;
}

/* #3: Hero stagger animation */
.hero-main { max-width: 620px; }
.hero-main > * {
  opacity: 0; transform: translateY(24px);
  animation: hero-reveal .8s var(--ease-out) forwards;
}
.hero h1           { animation-delay: .1s; }
.hero-subtitle     { animation-delay: .3s; }
.hero-features     { animation-delay: .5s; }
.hero-buttons      { animation-delay: .7s; }
.hero-aside {
  display: flex; justify-content: flex-end; align-self: center;
  opacity: 0; transform: translateY(24px);
  animation: hero-reveal .8s var(--ease-out) .9s forwards;
}
/* Scroll indicator */
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.4); font-size: .75rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase;
  animation: hero-reveal .8s var(--ease-out) 1.2s forwards;
  opacity: 0;
}
.hero-scroll-line {
  width: 1px; height: 40px; position: relative; overflow: hidden;
  background: rgba(255,255,255,.1);
}
.hero-scroll-line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 50%;
  background: linear-gradient(180deg, transparent, var(--gold));
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { top: -50%; }
  100% { top: 100%; }
}
@keyframes hero-reveal { to { opacity: 1; transform: translateY(0); } }

.hero h1 { font-size: var(--text-display); font-weight: 800; color: #fff; line-height: 1.08; margin-bottom: 1rem; letter-spacing: -.025em; }
.highlight {
  background: var(--gold-grad);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: gold-shimmer 4s ease-in-out infinite;
}
@keyframes gold-shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}
.hero-subtitle { color: rgba(255,255,255,.9); font-size: 1.15rem; margin-bottom: 1.5rem; }
.hero-features { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-features .feat {
  display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.9); font-size: .85rem;
  background: rgba(255,255,255,.07); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-full);
  padding: .5rem 1rem; font-weight: 500;
  transition: background .3s, border-color .3s, transform .3s var(--ease-spring);
}
.hero-features .feat:hover {
  background: rgba(255,255,255,.12); border-color: rgba(212,175,55,.3);
  transform: translateY(-1px);
}
.hero-features .feat svg { color: var(--gold); flex-shrink: 0; width: 16px; height: 16px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero aside — "Ir a mi Asamblea" card */
.assembly-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 16px; padding: 30px 32px 28px; border-radius: 24px;
  background: rgba(10, 18, 40, 0.82);
  backdrop-filter: blur(20px) saturate(1.2);
  border: 1.5px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 20px 50px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.04);
  max-width: 380px; width: 100%; position: relative; overflow: hidden;
  transition: transform .5s var(--ease-spring), box-shadow .4s var(--ease-out), border-color .4s;
}
.assembly-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 30px rgba(212,175,55,.12);
  border-color: rgba(212, 175, 55, 0.45);
}
/* Live indicator */
.assembly-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: .6px;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #34d399; flex-shrink: 0;
  box-shadow: 0 0 8px rgba(52, 211, 153, .6);
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(52,211,153,.6); }
  50% { opacity: .5; box-shadow: 0 0 14px rgba(52,211,153,.8); }
}
/* Icon with pulse ring */
.assembly-icon {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-grad); color: var(--navy-deep); position: relative;
  box-shadow: 0 6px 20px rgba(212,175,55,.3);
}
.assembly-icon::after {
  content: ''; position: absolute; inset: -7px; border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  animation: pulse-ring 2.5s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.3); opacity: 0; }
}
/* Content */
.assembly-content h3 {
  margin: 0; font-size: 1.3rem; font-weight: 800; color: #fff; line-height: 1.25;
}
.assembly-content p { margin: 4px 0 0; color: rgba(255,255,255,.5); font-size: .88rem; line-height: 1.45; }
/* CTA button — gold, full width, shimmer */
.btn-assembly {
  display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  background: var(--gold-grad); color: var(--navy-deep);
  padding: 16px 24px; border-radius: var(--radius-full); width: 100%;
  font-weight: 900; font-size: 1rem; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease-spring), box-shadow .25s;
}
.btn-assembly:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.4);
}
.btn-assembly::after {
  content: ''; position: absolute; top: -50%; left: -70%; width: 40%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3.5s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { left: -70%; }
  50% { left: 130%; }
}
/* Social proof */
.assembly-social {
  display: flex; align-items: center; gap: 8px;
  font-size: .72rem; color: rgba(255,255,255,.45); font-weight: 600;
}
.social-avatars {
  display: flex;
}
.social-avatars span {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(10,18,40,.8);
  background: linear-gradient(135deg, rgba(212,175,55,.3), rgba(212,175,55,.15));
  margin-left: -6px;
}
.social-avatars span:first-child { margin-left: 0; }
/* Glow shapes */
.asm-shape { position: absolute; border-radius: var(--radius-full); filter: blur(28px); opacity: .2; pointer-events: none; }
.asm-1 { width: 140px; height: 140px; right: -50px; top: -50px; background: radial-gradient(circle, rgba(212,175,55,.5), transparent 70%); }
.asm-2 { width: 100px; height: 100px; left: -35px; bottom: -35px; background: radial-gradient(circle, rgba(40,80,140,.4), transparent 70%); }

/* ── Section headers ── */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: var(--text-heading); color: #fff; margin-bottom: .6rem; font-weight: 800; letter-spacing: -.02em; }
.section-header p { color: rgba(255,255,255,.6); max-width: 680px; margin: 0 auto; }
.section-header.left { text-align: left; }
.section-header.left p { text-align: left; margin: .25rem 0 0; }

/* ── Modalidades ── */
.modes {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, rgba(18,30,56,1) 0%, var(--navy-deep) 50%, rgba(18,30,56,.98) 100%);
}
.modes-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.mode-card {
  display: flex; flex-direction: column; height: 100%; position: relative;
  background: rgba(255,255,255,.04); border: 2px solid rgba(212,175,55,.18); border-radius: var(--radius-md);
  padding: 28px; box-shadow: 0 8px 32px rgba(0,0,0,.2);
  backdrop-filter: blur(16px) saturate(1.2);
  transition: transform .4s var(--ease-spring), box-shadow .3s var(--ease-out), border-color .3s, background .3s;
}
.mode-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,.3), 0 0 60px rgba(212,175,55,.06);
  border-color: var(--gold);
  background: rgba(255,255,255,.08);
}
.mode-card.featured { border-color: var(--gold); }
.mode-badge {
  position: absolute; top: -12px; right: 18px; background: var(--gold-grad); color: var(--navy-deep);
  font-weight: 800; font-size: .85rem; padding: 6px 14px; border-radius: var(--radius-full);
  box-shadow: 0 6px 18px rgba(212,175,55,.25);
  animation: badge-glow 2.5s ease-in-out infinite;
  z-index: 2;
}
@keyframes badge-glow {
  0%, 100% { box-shadow: 0 6px 18px rgba(212,175,55,.25); }
  50% { box-shadow: 0 6px 28px rgba(212,175,55,.45), 0 0 12px rgba(212,175,55,.2); }
}
.mode-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(212,175,55,.12); color: var(--gold); margin-bottom: 14px; font-size: 22px;
  border: 1px solid rgba(212,175,55,.15);
}
.mode-card h3 { margin: 4px 0 10px; font-size: var(--text-subhead); font-weight: 800; color: #fff; }
.mode-card > p { color: rgba(255,255,255,.6); margin-bottom: 12px; }
.mode-list { display: grid; gap: 8px; margin: 0 0 auto; padding: 0; }
.mode-list li { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.65); font-size: .92rem; }
.mode-list li svg { color: var(--gold); flex-shrink: 0; }
.mode-actions { margin-top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.badge {
  display: inline-block; border: 2px dashed rgba(212,175,55,.5); color: var(--gold);
  background: rgba(212,175,55,.1); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700; font-size: .9rem;
}
.service-btn {
  display: inline-block; background: var(--gold-grad); color: var(--navy-deep); font-weight: 800;
  padding: 12px 18px; border-radius: 14px; text-decoration: none;
  transition: transform .3s var(--ease-spring), box-shadow .15s;
}
.service-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(212,175,55,.25); }
.coverage-note { margin-top: 1.25rem; color: rgba(255,255,255,.5); }
.added-value {
  margin-top: 15px; font-size: 1.05rem; color: rgba(255,255,255,.8); background: rgba(255,255,255,.04);
  padding: 12px 18px; border-left: 4px solid var(--gold); border-radius: 6px; font-weight: 500;
}

/* ── Otros Servicios (Extras) ── */
.extras {
  padding: var(--section-pad) 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212,175,55,.04), transparent 60%);
}
.extras-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
.extra-card {
  position: relative;
  display: grid; grid-template-rows: 240px 1fr auto; background: rgba(255,255,255,.04); border-radius: 22px;
  overflow: hidden; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  transition: transform .4s var(--ease-spring), box-shadow .3s var(--ease-out), border-color .3s, background .3s;
}
.extra-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 16px 40px rgba(0,0,0,.3); background: rgba(255,255,255,.06); }
.extra-card.featured { border-color: var(--gold); }
.extra-media { position: relative; background-image: var(--bg); background-size: cover; background-position: center; }
.extra-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,.05)); }
.extra-badge {
  position: absolute; left: 18px; bottom: 14px; background: rgba(212,175,55,.15); color: var(--gold);
  font-weight: 800; border: 2px dashed rgba(212,175,55,.5); border-radius: var(--radius-full); padding: 6px 12px;
  display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 10px 20px rgba(0,0,0,.3); z-index: 1;
  backdrop-filter: blur(8px);
}
.extra-body { padding: 22px 22px 0; }
.extra-body h3 { font-size: var(--text-subhead); font-weight: 800; color: #fff; display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.extra-body h3 small { font-weight: 700; color: rgba(255,255,255,.5); }
.extra-body p { color: rgba(255,255,255,.6); margin: 0 0 10px; }
.extra-list { padding: 0; margin: 0; display: grid; gap: 8px; }
.extra-list li { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 10px; color: rgba(255,255,255,.65); }
.extra-list li svg { color: var(--gold); margin-top: 2px; }
.extra-chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.1);
  padding: 6px 10px; border-radius: var(--radius-full); font-weight: 700; font-size: .85rem;
}
.extra-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px 22px; }
.btn-extra {
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; border-radius: 14px; padding: 12px 16px; white-space: nowrap;
  transition: transform .3s var(--ease-spring), box-shadow .15s, background .2s, color .2s;
}
.btn-extra.primary { background: var(--gold-grad); color: var(--navy-deep); box-shadow: 0 10px 20px rgba(212,175,55,.2); }
.btn-extra.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(212,175,55,.3); }
.btn-extra.ghost { background: transparent; color: rgba(255,255,255,.7); border: 2px solid rgba(255,255,255,.15); }
.btn-extra.ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ── Clientes (trust band — full-bleed) ── */
.clients {
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, var(--navy-deep) 0%, rgba(18,30,56,1) 100%);
  border-top: 1px solid rgba(255,255,255,.04);
}
.clients-label {
  text-align: center; margin: 0 0 1.5rem;
  color: rgba(255,255,255,.35); font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px;
}

/* Marquee — full-width edge-to-edge, large logos */
.clients-marquee {
  --gap: clamp(40px, 6vw, 72px); --speed: 25s;
  position: relative; overflow: hidden; padding: clamp(1rem, 2vw, 1.5rem) 0;
}
.marquee-track {
  display: flex; gap: var(--gap); width: max-content;
  animation: marquee-scroll var(--speed) linear infinite;
}
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
.clients-marquee::before, .clients-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(60px, 10vw, 160px);
  pointer-events: none; z-index: 1;
  background: linear-gradient(to right, var(--navy-deep), transparent);
}
.clients-marquee::after { right: 0; left: auto; transform: scaleX(-1); }
.clients-marquee::before { left: 0; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-card { flex: 0 0 auto; padding: 0; display: flex; align-items: center; }
.marquee-card img {
  height: clamp(80px, 16vw, 160px); width: auto; object-fit: contain; display: block;
  filter: brightness(0) invert(1); opacity: .3;
  transition: opacity .4s, transform .4s var(--ease-spring);
}
.marquee-card img:hover { opacity: .7; transform: scale(1.08); }

/* Stats — tight row right under marquee */
.clients-stats {
  display: flex; justify-content: center; gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(.8rem, 2vw, 1.2rem); padding: 0;
}
.stat-item { text-align: center; position: relative; padding: 0 clamp(.8rem, 2vw, 1.5rem); }
.stat-item::after { display: none; }
.stat-item + .stat-item::before {
  content: ''; position: absolute; left: 0; top: 15%; height: 70%;
  width: 1px; background: linear-gradient(180deg, transparent, rgba(212,175,55,.2), transparent);
}
.stat-number, .stat-number span {
  font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 900;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-label {
  color: rgba(255,255,255,.35); font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; margin-top: .3rem; font-size: .6rem;
}

/* ── Beneficios ── */
.benefits {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, var(--navy-deep), rgba(14,20,40,1) 50%, var(--navy-deep));
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.benefit-card {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-md);
  padding: 2rem 1.8rem; text-align: left;
  backdrop-filter: blur(8px);
  transition: transform .4s var(--ease-spring), box-shadow .3s var(--ease-out), border-color .3s, background .3s;
}
.benefit-card:hover {
  background: rgba(255,255,255,.07); border-color: rgba(212,175,55,.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.benefit-card h3 { color: #fff; font-size: 1.1rem; margin: 0 0 .5rem; }
.benefit-card p { color: rgba(255,255,255,.55); font-size: .9rem; line-height: 1.6; margin: 0; }
.benefit-icon {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 0 1rem;
  display: grid; place-items: center;
  background: rgba(212,175,55,.1); color: var(--gold);
  border: 1px solid rgba(212,175,55,.15);
  transition: transform .4s var(--ease-spring), box-shadow .3s;
}
.benefit-card:hover .benefit-icon {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(212,175,55,.15);
}

/* ── Sectores (inline chips inside benefits) ── */
.sectors-inline {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.sectors-label {
  color: rgba(255,255,255,.4); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
}
.sectors-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sector-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-full);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.65); font-size: .85rem; font-weight: 600;
  transition: background .3s, border-color .3s, color .3s;
}
.sector-chip svg { color: var(--gold); flex-shrink: 0; }
.sector-chip:hover { background: rgba(212,175,55,.08); border-color: rgba(212,175,55,.25); color: #fff; }

/* ── Testimonios ── */
.testimonials {
  padding: var(--section-pad) 0;
  background: radial-gradient(ellipse 70% 50% at 30% 50%, rgba(212,175,55,.03), transparent 60%);
}
.testimonials-track {
  display: flex; gap: 24px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  -ms-overflow-style: none; padding: 8px 0 20px;
}
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  flex: 0 0 min(100%, 520px); scroll-snap-align: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  padding: 2rem; border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  backdrop-filter: blur(10px);
  transition: transform .4s var(--ease-spring), box-shadow .3s, border-color .3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.3); border-color: rgba(212,175,55,.3); }
.stars { display: flex; gap: .25rem; margin-bottom: .5rem; }
.stars svg { color: var(--gold); }
.testimonial-content p { color: rgba(255,255,255,.65); font-style: italic; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-grad); color: var(--navy-deep); font-size: 1.2rem;
}
.author-info h4 { color: #fff; font-weight: 700; }
.author-info span { color: rgba(255,255,255,.5); font-size: .9rem; }
/* Carousel dots */
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 1.2rem; }
.testimonial-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.15); cursor: pointer; padding: 0;
  transition: background .3s, transform .3s var(--ease-spring);
}
.testimonial-dots button.active { background: var(--gold); transform: scale(1.3); }

/* ── CTA Banner ── */
.cta-banner {
  padding: var(--section-pad) 0; text-align: center;
  background: linear-gradient(135deg, rgba(212,175,55,.06) 0%, transparent 40%, rgba(59,130,246,.04) 100%);
  border-top: 1px solid rgba(212,175,55,.08);
  border-bottom: 1px solid rgba(212,175,55,.08);
}
.cta-banner h2 {
  font-size: var(--text-heading); color: #fff; font-weight: 800; margin-bottom: .5rem; letter-spacing: -.02em;
}
.cta-banner p { color: rgba(255,255,255,.6); margin-bottom: 2rem; font-size: 1.1rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-wa {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.6rem; border-radius: 30px; font-weight: 600; text-decoration: none;
  background: #25d366; color: #fff;
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37,211,102,.3); }

/* ── Contacto ── */
.contact { padding: var(--section-pad) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.contact-info h3 { color: #fff; font-size: 1.6rem; margin-bottom: 1rem; }
.contact-items { display: grid; gap: 1.2rem; }
.contact-item { display: flex; gap: .8rem; }
.contact-item svg { color: var(--gold); flex-shrink: 0; margin-top: .2rem; }
.contact-item span { display: block; font-weight: 700; color: #fff; }
.contact-item a { color: rgba(255,255,255,.55); text-decoration: none; transition: color .3s; }
.contact-item a:hover { color: var(--gold); }
.contact-form {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  padding: 2rem; border-radius: var(--radius-md);
}
.form-group { margin-bottom: 1rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 1rem; border: 2px solid rgba(255,255,255,.08); border-radius: 10px;
  background: rgba(255,255,255,.05); color: #fff; font-family: inherit; font-size: 1rem;
  transition: border-color .3s var(--ease-in-out), background .3s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,.35); }
.form-group select { color: rgba(255,255,255,.7); }
.form-group select option { background: var(--navy-deep); color: #fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 4px rgba(212,175,55,.1);
}
.btn-submit {
  display: inline-flex; align-items: center; gap: .6rem; padding: 1rem 2rem; border: 0;
  border-radius: 30px; background: var(--gold-grad);
  color: var(--navy-deep); font-weight: 800; cursor: pointer; width: 100%;
  justify-content: center; font-size: 1rem; position: relative; overflow: hidden;
  transition: transform .3s var(--ease-spring), box-shadow .15s;
}
.btn-submit::after {
  content: ''; position: absolute; top: -50%; left: -70%; width: 40%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transform: skewX(-20deg);
  animation: shimmer 4s ease-in-out infinite;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(212,175,55,.35); }

/* ── Contact form glass enhancement ── */
.contact-form {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(212,175,55,.12);
  box-shadow: 0 16px 48px rgba(0,0,0,.25);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid rgba(255,255,255,.06); padding: 2.5rem 0 2rem; color: rgba(255,255,255,.4);
  background: linear-gradient(180deg, var(--navy-deep), rgba(8,14,28,1));
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.05);
}
.footer-brand { display: flex; flex-direction: column; gap: .8rem; }
.footer-logo { display: flex; align-items: center; gap: .5rem; }
.footer-logo .brand-name { font-size: 1rem; }
.footer-logo .brand-subtitle { font-size: .6rem; }
.footer-tagline { color: rgba(255,255,255,.35); font-size: .88rem; line-height: 1.6; max-width: 300px; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links h4 { color: rgba(255,255,255,.6); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: .3rem; }
.footer-links a { color: rgba(255,255,255,.35); font-size: .88rem; transition: color .3s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { padding-top: 1.5rem; text-align: center; }
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.25); }

/* ── WhatsApp FAB ── */
.whatsapp-fab {
  position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; font-size: 26px;
  box-shadow: 0 10px 25px rgba(0,0,0,.25); z-index: 1200;
  text-decoration: none; transition: transform .3s var(--ease-spring), box-shadow .2s;
  animation: wa-pulse 3s ease-in-out infinite;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 10px 25px rgba(0,0,0,.25); }
  50% { box-shadow: 0 10px 25px rgba(0,0,0,.25), 0 0 0 8px rgba(37,211,102,.15); }
}
.whatsapp-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37,211,102,.35); animation: none; }

/* ── Chat widget ── */
.chat-fab {
  position: fixed; right: 18px; bottom: 86px; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold-grad);
  color: var(--navy); box-shadow: 0 12px 28px rgba(0,0,0,.3); z-index: 1300; font-size: 22px;
  transition: transform .3s var(--ease-spring), opacity .2s;
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab.is-hidden { opacity: 0; pointer-events: none; }
.chat-widget {
  position: fixed; right: 18px; bottom: 86px; width: min(92vw, 340px); height: 520px;
  display: grid; grid-template-rows: auto 1fr auto auto;
  background: var(--navy-deep); color: #eaf0ff; border: 1px solid rgba(212,175,55,.35);
  border-radius: var(--radius-md); box-shadow: 0 18px 48px rgba(0,0,0,.45); overflow: hidden; z-index: 1350;
  transform: translateY(16px) scale(.98); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease-out), opacity .3s;
}
.chat-widget.is-open { transform: translateY(0) scale(1); opacity: 1; pointer-events: all; }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(212,175,55,.35); }
.chat-title { display: flex; align-items: center; gap: 10px; }
.chat-title svg { color: var(--gold); }
.chat-title strong { display: block; line-height: 1; }
.chat-title small { opacity: .8; font-size: .8rem; line-height: 1; }
.chat-close { background: transparent; border: 0; color: #fff; font-size: 18px; cursor: pointer; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.chat-close:hover { background: rgba(255,255,255,.08); }
.chat-body { padding: 12px; overflow-y: auto; display: grid; gap: 10px; align-content: start; }
.chat-bubble { max-width: 85%; padding: 10px 12px; border-radius: 14px; line-height: 1.35; font-size: .94rem; box-shadow: 0 10px 22px rgba(0,0,0,.25); }
.chat-bubble.bot { background: #0e1b39; border: 1px solid rgba(255,255,255,.08); }
.chat-bubble.user { background: #fff; color: var(--navy-deep); margin-left: auto; }
.chat-quick { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-top: 1px solid rgba(212,175,55,.35); background: rgba(255,255,255,.04); }
.chat-quick button { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(212,175,55,.35); border-radius: var(--radius-full); padding: 6px 10px; font-weight: 700; cursor: pointer; }
.chat-quick button:hover { background: rgba(255,255,255,.16); }
.chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid rgba(212,175,55,.35); background: #132347; }
.chat-input input { flex: 1; background: #0e1b39; color: #fff; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); padding: 10px 12px; outline: none; font-size: 16px; }
.chat-input button { background: var(--gold-grad); color: var(--navy); border: 0; border-radius: var(--radius-sm); padding: 0 14px; font-weight: 900; cursor: pointer; }
/* Typing indicator */
.chat-typing { display:none; gap:5px; align-items:center; padding:10px 14px; }
.chat-typing-dot { width:7px; height:7px; border-radius:50%; background:rgba(212,175,55,.5); animation:typing-bounce .6s ease-in-out infinite; }
.chat-typing-dot:nth-child(2) { animation-delay:.15s; }
.chat-typing-dot:nth-child(3) { animation-delay:.3s; }
@keyframes typing-bounce { 0%,60%,100%{transform:translateY(0);opacity:.4} 30%{transform:translateY(-6px);opacity:1} }
/* Bubble entrance */
@keyframes bubble-in { from{opacity:0;transform:translateY(8px) scale(.96)} to{opacity:1;transform:none} }
.chat-bubble { animation:bubble-in .3s var(--ease-out) both; }
/* Timestamp */
.chat-time { display:block; font-size:.65rem; opacity:.35; margin-top:4px; font-weight:400; }
.chat-bubble.user .chat-time { text-align:right; }
/* Online dot */
.chat-avatar { position:relative; display:flex; }
.chat-online { position:absolute; bottom:-1px; right:-1px; width:9px; height:9px; border-radius:50%; background:#22c55e; border:2px solid var(--navy-deep); }
/* Bot rich text */
.chat-bubble.bot strong { color:var(--gold); font-weight:700; }
/* Nudge bubble */
.chat-nudge { position:fixed; right:82px; bottom:94px; background:var(--navy-deep); color:#eaf0ff; border:1px solid rgba(212,175,55,.3); border-radius:14px 14px 0 14px; padding:10px 16px; font-size:.88rem; font-weight:500; box-shadow:0 8px 28px rgba(0,0,0,.4); z-index:1299; cursor:pointer; animation:nudge-in .4s var(--ease-out) both; transition:opacity .3s; }
.chat-nudge:hover { border-color:rgba(212,175,55,.5); }
@keyframes nudge-in { from{opacity:0;transform:translateX(10px) scale(.95)} to{opacity:1;transform:none} }
.chat-nudge.is-hidden { opacity:0; pointer-events:none; }

/* ── Animations (#2: reveal with variety) ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
/* Stagger children in grids */
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }
.reveal:nth-child(5) { transition-delay: .4s; }
.reveal:nth-child(6) { transition-delay: .5s; }
/* ── Mouse-follow glow on cards ── */
.mode-card::before, .extra-card::before, .benefit-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(600px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(212,175,55,.07), transparent 40%);
  opacity: 0; transition: opacity .4s;
}
.mode-card:hover::before, .extra-card:hover::before, .benefit-card:hover::before {
  opacity: 1;
}
.mode-card > *, .extra-card > *, .benefit-card > * { position: relative; z-index: 1; }

/* Reveal scale variant for cards */
.mode-card.reveal { transform: translateY(32px) scale(.97); }
.mode-card.reveal.visible { transform: none; }
.extra-card.reveal { transform: translateY(32px) scale(.97); }
.extra-card.reveal.visible { transform: none; }

/* ── Responsive ── */

/* Tablet landscape */
@media (max-width: 1024px) {
  .nav { padding: .85rem 1.5rem; }
  .nav-logo-img { height: 40px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .assembly-card { max-width: 340px; padding: 24px 22px; }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-main { max-width: 100%; }
  .hero-aside { justify-content: center; }
  .hero { padding: calc(var(--nav-h) + 1.5rem) 1.2rem 4rem; min-height: auto; }
  .hero-features { justify-content: center; }
  .hero-buttons { justify-content: center; }
  .hero-scroll { display: none; }
  .modes-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  /* Smaller gradient orbs on tablet */
  .hero::before { width: 350px; height: 350px; }
  .hero::after { width: 280px; height: 280px; }
}

/* Mobile */
@media (max-width: 768px) {
  .mobile-menu-toggle { display: inline-block; }
  .nav-menu {
    display: none; position: absolute; right: 1rem; top: 64px;
    background: rgba(26, 40, 73, 0.97); backdrop-filter: blur(16px);
    padding: 1.2rem 1.5rem; border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,.35); flex-direction: column; gap: .8rem;
    border: 1px solid rgba(255,255,255,.06);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: .5rem 0; font-size: 1rem; }
  .nav-menu a::after { bottom: 0; }
  .btn-contact { text-align: center; margin-top: .3rem; }

  /* Hero mobile */
  .hero h1 { font-size: 2rem; letter-spacing: -.02em; }
  .hero-subtitle { font-size: 1rem; }
  .hero-features .feat { font-size: .8rem; padding: .4rem .75rem; }
  .assembly-card { max-width: 100%; padding: 22px 20px; }
  .assembly-content h3 { font-size: 1.15rem; }
  .btn-assembly { padding: 14px 20px; font-size: .95rem; }

  /* Sections */
  .section-header h2 { font-size: 1.5rem; }
  .section-header p { font-size: .92rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info h3 { font-size: 1.3rem; }
  .clients-stats { gap: .8rem; flex-wrap: wrap; }
  .extras-grid { grid-template-columns: 1fr; }
  .extra-card { grid-template-rows: 180px 1fr auto; }
  .testimonial-card { flex: 0 0 min(100%, 88vw); padding: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* FABs: stack vertically with safe spacing */
  .whatsapp-fab { width: 50px; height: 50px; right: 14px; bottom: 14px; }
  .chat-fab { width: 50px; height: 50px; right: 14px; bottom: 76px; }

  /* Disable parallax on mobile (perf + touch scroll issues) */
  .hero-background { will-change: auto !important; }

  /* Disable mouse-follow glow (no mouse on touch) */
  .mode-card::before, .extra-card::before, .benefit-card::before { display: none; }

  /* Chat: responsive panel */
  .chat-widget { width: calc(100vw - 28px); right: 14px; bottom: 14px; height: calc(100dvh - 90px); max-height: 560px; }
  .chat-nudge { right: 72px; bottom: 82px; }
  .chat-quick button { font-size: .8rem; }
}

/* Small mobile */
@media (max-width: 480px) {
  .nav { padding: .75rem 1rem; }
  .nav-logo-img { height: 36px; }
  .brand-name { font-size: 1.05rem; }
  .brand-subtitle { font-size: .65rem; }

  .hero { padding: calc(var(--nav-h) + 1rem) 1rem 3rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero-subtitle { font-size: .95rem; margin-bottom: 1rem; }
  .hero-features { gap: .5rem; margin-bottom: 1.5rem; }
  .hero-features .feat { font-size: .75rem; padding: .35rem .65rem; gap: .35rem; }
  .hero-features .feat svg { width: 14px; height: 14px; }
  .hero-buttons { flex-direction: column; gap: .7rem; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; padding: .85rem 1.2rem; font-size: .95rem; }
  .assembly-card { border-radius: 18px; }

  /* Cards */
  .mode-card { padding: 22px 18px; }
  .mode-card h3 { font-size: 1.15rem; }
  .mode-list li { font-size: .88rem; }
  .mode-actions { align-items: stretch; }
  .mode-actions .service-btn { width: 100%; text-align: center; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-card { padding: 1.5rem 1.3rem; }
  .extra-card { grid-template-rows: 160px 1fr auto; }
  .extra-actions { flex-direction: column; align-items: stretch; }
  .btn-extra { justify-content: center; width: 100%; }

  /* Stats */
  .clients-stats { gap: .5rem; justify-content: space-around; }
  .stat-item { padding: 0 .5rem; }
  .stat-number, .stat-number span { font-size: clamp(1.2rem, 5vw, 1.6rem); }
  .stat-label { font-size: .55rem; }

  /* Sectors */
  .sectors-inline { flex-direction: column; align-items: flex-start; }
  .sector-chip { font-size: .8rem; padding: 6px 10px; }

  /* CTA */
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn-wa, .cta-buttons .btn-secondary { width: 100%; justify-content: center; }

  /* Contact */
  .contact-form { padding: 1.5rem; }
  .form-group input, .form-group select, .form-group textarea { padding: .85rem; font-size: .95rem; }

  /* Chat: near full-screen on small phones */
  .chat-widget { width: calc(100vw - 16px); right: 8px; bottom: 8px; height: calc(100dvh - 76px); max-height: none; border-radius: 18px; }
  .chat-nudge { right: 62px; bottom: 78px; font-size: .82rem; padding: 8px 12px; }
  .chat-quick { gap: 6px; padding: 8px 10px; }
  .chat-quick button { font-size: .75rem; padding: 5px 8px; }
  .chat-bubble { font-size: .88rem; max-width: 90%; }

  /* Footer */
  .footer-tagline { max-width: 100%; }
}

/* Safe area for notch devices (iPhone X+) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .whatsapp-fab { bottom: calc(14px + env(safe-area-inset-bottom)); }
  .chat-fab { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .chat-widget { bottom: calc(14px + env(safe-area-inset-bottom)); }
  .chat-nudge { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
  .nav { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
}

/* Ultra small (iPhone SE, Galaxy Fold) */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.55rem; }
  .hero-features .feat { font-size: .7rem; }
  .assembly-card { padding: 18px 16px; gap: 12px; }
  .assembly-content h3 { font-size: 1.05rem; }
  .stat-item + .stat-item::before { display: none; }
  .clients-stats { flex-direction: column; gap: .5rem; align-items: center; }
  .chat-widget { width: calc(100vw - 12px); right: 6px; }
  .chat-quick button { font-size: .72rem; padding: 4px 7px; }
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none; }
}

/* noscript fallback */
noscript .reveal { opacity: 1; transform: none; }
