/* =========================================================
   Garajes Inteligentes · estilos
   Mobile-first. Colores de marca tomados del logo.
   ========================================================= */
:root {
  --blue-900: #0B1A33;   /* fondo premium */
  --blue-800: #12284d;
  --blue-700: #1E4FA0;   /* primario */
  --blue-500: #2E7BC4;   /* medio */
  --aqua: #5FE0CF;       /* acento (solo sobre fondos oscuros) */
  --aqua-ink: #0f8a7c;   /* acento legible sobre claro */
  --grad: linear-gradient(135deg, #1E4FA0 0%, #2E9BC0 55%, #5FE0CF 100%);
  --bg: #F5F8FC;
  --surface: #ffffff;
  --ink: #14213D;
  --muted: #4a5672;
  --line: #dde5f0;
  --wa: #25D366;
  --wa-dark: #128C4B;

  --r-sm: 12px; --r: 18px; --r-lg: 24px;
  --shadow: 0 10px 30px -12px rgba(20, 33, 61, .18);
  --shadow-lg: 0 30px 60px -24px rgba(11, 26, 51, .35);
  --head: 76px;
  --ff-head: "Montserrat", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--ff-body); overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; flex: none; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--ff-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-weight: 800; font-size: clamp(2rem, 1.2rem + 4vw, 3.9rem); }
h2 { font-weight: 800; font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.75rem); }
h3 { font-weight: 700; font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .wrap { padding: 0 24px; } }
.hide-xs { display: none; }
@media (min-width: 420px) { .hide-xs { display: inline; } }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

.kicker { font: 700 .78rem/1.3 var(--ff-head); letter-spacing: .22em; text-transform: uppercase; color: var(--blue-700); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.kicker--light { color: var(--aqua); }
.kicker--center { display: flex; justify-content: center; }

/* ---------- Botones ---------- */
.btn { --bg: var(--blue-700); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px; font: 700 .98rem/1.2 var(--ff-head); text-decoration: none; cursor: pointer; color: #fff; background: var(--bg); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s; text-align: center; }
.btn svg { font-size: 1.3em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--grad { background: var(--grad); box-shadow: 0 10px 24px -10px rgba(30, 79, 160, .7); }
.btn--wa { background: var(--wa-dark); box-shadow: 0 12px 26px -12px rgba(18, 140, 75, .8); }
.btn--wa:hover { background: #0f7a41; }
.btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .22); }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--white { background: #fff; color: var(--wa-dark); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .45); }
.btn--social { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--social:hover { box-shadow: inset 0 0 0 1.5px var(--blue-500); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .88rem; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.btn--xl { min-height: 64px; padding: 16px 36px; font-size: clamp(1.05rem, 1rem + .6vw, 1.3rem); }
.btn--block { width: 100%; }
.round { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
.round:hover { border-color: var(--blue-500); color: var(--blue-700); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head); background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(221, 229, 240, .7); transition: height .3s var(--ease), box-shadow .3s; }
.header.is-compact { --head: 62px; box-shadow: 0 8px 24px -16px rgba(20, 33, 61, .35); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; margin-right: auto; text-decoration: none; }
.brand__logo { height: 44px; width: auto; transition: height .3s var(--ease); }
.header.is-compact .brand__logo { height: 36px; }
.brand svg.logo-fallback { width: auto; height: 44px; }
.nav { display: none; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; font: 600 .92rem var(--ff-head); text-decoration: none; color: var(--ink); transition: background-color .2s, color .2s; }
.nav a:hover, .nav a.is-active { background: #eaf1fb; color: var(--blue-700); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__phone { display: none; align-items: center; gap: 8px; font: 700 .95rem var(--ff-head); text-decoration: none; color: var(--blue-700); white-space: nowrap; }
.header__phone svg { font-size: 1.15rem; }
.burger { width: 44px; height: 44px; border: 0; border-radius: 12px; background: #eaf1fb; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 760px) { .header__phone { display: inline-flex; } }
.header__actions .btn { white-space: nowrap; }
@media (min-width: 1140px) { .nav { display: block; } .burger { display: none; } }
@media (min-width: 1140px) and (max-width: 1319px) { .header__phone { display: none; } .nav a { padding: 8px 10px; } }

.mobile-menu { position: fixed; inset: var(--head) 0 0; z-index: 49; background: var(--blue-900); color: #fff; padding: 28px 16px 24px; display: flex; flex-direction: column; overflow-y: auto; opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.mobile-menu.is-open { opacity: 1; transform: none; }
.menu-open .wa-float, .menu-open .cookies { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; position: relative; }
.mobile-menu nav a { font: 800 1.6rem/1.2 var(--ff-head); text-decoration: none; padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mobile-menu__foot { margin-top: auto; padding-top: 24px; display: grid; gap: 12px; position: relative; }

/* ---------- Circuitos (motivo del logo) ---------- */
.circuit { position: absolute; pointer-events: none; fill: none; stroke: var(--aqua); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.circuit circle { fill: var(--blue-900); stroke-width: 2.5; }
.circuit path, .circuit circle { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); transition: stroke-dashoffset 2.2s var(--ease); }
.circuit circle { transition-delay: 1.4s; transition-duration: .6s; }
.circuit.is-drawn path, .circuit.is-drawn circle { stroke-dashoffset: 0; }
.circuit--hero { inset: 0; width: 100%; height: 100%; opacity: .55; z-index: 1; }
.circuit--menu { inset: 0; width: 100%; height: 100%; opacity: .2; }
.circuit--corner { width: 120px; height: 120px; right: -14px; top: -14px; stroke: var(--blue-500); }
.circuit--corner circle { fill: var(--bg); }
.circuit--cta { inset: 0; width: 100%; height: 100%; stroke: rgba(255, 255, 255, .55); }
.circuit--cta circle { fill: #2E9BC0; }
.circuit--map { inset: 0; width: 100%; height: 100%; stroke: var(--blue-500); opacity: .35; }
.circuit--map circle { fill: #eaf1fb; }
.divider { height: 60px; position: relative; }
.circuit--divider { inset: 0; width: 100%; height: 100%; stroke: var(--blue-500); opacity: .35; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--head) + 40px) 0 90px; color: #fff; overflow: hidden; background: var(--blue-900); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__img { opacity: 0; transition: opacity 1.6s ease; transform: scale(1.06); animation: kenburns 18s ease-out forwards; }
.hero__img.is-on { opacity: 1; }
.hero__video { opacity: 0; transition: opacity 1s ease; }
.hero__video.is-playing { opacity: 1; }
@keyframes kenburns { to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(11, 26, 51, .92) 0%, rgba(11, 26, 51, .72) 42%, rgba(11, 26, 51, .15) 100%),
  linear-gradient(0deg, rgba(11, 26, 51, .75) 0%, rgba(11, 26, 51, 0) 40%); }
.hero__content { position: relative; z-index: 2; }
.hero h1 { max-width: 17ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero__lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); max-width: 48ch; color: rgba(255, 255, 255, .88); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .95rem; color: rgba(255, 255, 255, .9); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { color: var(--aqua); }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 14px; z-index: 2; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--aqua); border-radius: 2px; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 599px) {
  .hero { align-items: flex-end; padding: calc(var(--head) + 24px) 0 76px; }
  .hero h1 { font-size: 1.85rem; }
  .hero__ctas { margin: 22px 0 18px; }
  .hero__shade { background: linear-gradient(0deg, rgba(11, 26, 51, .96) 0%, rgba(11, 26, 51, .7) 55%, rgba(11, 26, 51, .25) 100%); }
  .hero__ctas .btn { width: 100%; }
  .hero__scroll { display: none; }
}
[data-anim] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.is-loaded [data-anim] { opacity: 1; transform: none; }
.is-loaded [data-anim]:nth-child(2) { transition-delay: .12s; }
.is-loaded [data-anim]:nth-child(3) { transition-delay: .24s; }
.is-loaded [data-anim]:nth-child(4) { transition-delay: .36s; }
.is-loaded [data-anim]:nth-child(5) { transition-delay: .48s; }

/* ---------- Cifras ---------- */
.stats { position: relative; z-index: 3; margin-top: -48px; }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); padding: 0; }
.stat { background: var(--surface); padding: 22px 16px; text-align: center; }
.stat__num { font: 800 clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem)/1 var(--ff-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 8px; }
.stat__label { font-size: .9rem; color: var(--muted); line-height: 1.35; display: block; }
@media (min-width: 900px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } .stat { padding: 30px 20px; } }
.stats .wrap { padding: 0; max-width: 1152px; width: calc(100% - 32px); }

/* ---------- Secciones ---------- */
.section { padding: 80px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 120px 0; } }
.section__head { margin-bottom: 44px; max-width: 720px; }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Sobre */
.about__intro { display: grid; gap: 36px; align-items: center; margin-bottom: 56px; }
.about__img { margin: 0; position: relative; }
.about__img img, .zz__img img, .repair__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
@media (min-width: 960px) { .about__intro { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .benefits { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.benefit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; position: relative; overflow: hidden; }
.benefit::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.benefit:hover::after { transform: scaleX(1); }
.benefit__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, #e7effb, #e3faf6); color: var(--blue-700); font-size: 30px; margin-bottom: 16px; }
.benefit p { color: var(--muted); margin: 0; }
.reveal.benefit:nth-child(3n+2) { transition-delay: .08s; }
.reveal.benefit:nth-child(3n) { transition-delay: .16s; }

/* Zig-zag */
.zz { display: grid; gap: 28px; align-items: center; margin-bottom: 72px; }
.zz:last-child { margin-bottom: 0; }
.zz__img { margin: 0; position: relative; }
.zz__img::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: var(--r-lg); background: var(--grad); opacity: .16; z-index: -1; }
.zz__img img { transition: transform 1.2s var(--ease); }
.zz__num { font: 800 .9rem var(--ff-head); color: var(--aqua-ink); letter-spacing: .2em; display: block; margin-bottom: 8px; }
.zz__text p { color: var(--muted); }
.zz__hook { font: 700 1.15rem/1.4 var(--ff-head); color: var(--blue-700) !important; }
.zz__text .btn { margin-top: 8px; }
@media (min-width: 960px) {
  .zz { grid-template-columns: 1.15fr 1fr; gap: 72px; margin-bottom: 120px; }
  .zz--rev .zz__img { order: 2; }
  .zz--rev .zz__img::before { inset: 14px 14px -14px -14px; }
  .zz__text h3 { font-size: 1.75rem; }
}

/* Cómo trabajamos */
.process { background: var(--surface); overflow: hidden; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; --p: 0; }
.steps::before, .steps::after { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 3px; border-radius: 3px; background: var(--line); }
.steps::after { background: var(--grad); transform-origin: top; transform: scaleY(var(--p)); box-shadow: 0 0 14px rgba(95, 224, 207, .7); }
.step { position: relative; padding: 0 0 34px 80px; min-height: 56px; }
.step:last-child { padding-bottom: 0; }
.step__dot { position: absolute; left: 0; top: 0; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--surface); color: var(--muted); border: 2px solid var(--line); transition: all .5s var(--ease); }
.step.is-lit .step__dot { background: var(--blue-700); color: #fff; border-color: var(--aqua); box-shadow: 0 0 0 6px rgba(95, 224, 207, .18); }
.step h3 { margin-top: 4px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
.steps__track { display: none; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(6, 1fr); gap: 18px; }
  .steps::before, .steps::after { left: 28px; right: 28px; top: 27px; bottom: auto; width: auto; height: 3px; }
  .steps::after { transform-origin: left; transform: scaleX(var(--p)); }
  .step { padding: 80px 0 0; }
}

/* Mantenimiento */
.repair { background: var(--blue-900); color: #fff; overflow: hidden; }
.repair h2 { max-width: 16ch; }
.repair__grid { display: grid; gap: 40px; align-items: center; position: relative; }
@media (min-width: 960px) { .repair__grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.repair__img { margin: 0; }
.repair__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.waves { position: absolute; width: 900px; height: 900px; right: -300px; top: 50%; margin-top: -450px; fill: none; stroke: var(--aqua); stroke-width: 1.2; opacity: .5; }
.waves circle { transform-origin: 300px 300px; animation: ping 6s infinite var(--ease); opacity: 0; }
.waves circle:nth-child(2) { animation-delay: 1.5s; }
.waves circle:nth-child(3) { animation-delay: 3s; }
.waves circle:nth-child(4) { animation-delay: 4.5s; }
@keyframes ping { 0% { transform: scale(.4); opacity: 0; } 20% { opacity: .7; } 100% { transform: scale(1.3); opacity: 0; } }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.05rem; }
.checklist svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(95, 224, 207, .16); color: var(--aqua); margin-top: 1px; }
.checklist--dark svg { background: #e3faf6; color: var(--aqua-ink); }

/* Marcas */
.brands { padding: 56px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); margin-top: 18px; }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.brand-item { font: 800 1.4rem var(--ff-head); color: #9aa6bd; filter: grayscale(1); opacity: .8; transition: color .3s, filter .3s, opacity .3s; white-space: nowrap; display: flex; align-items: center; height: 48px; }
.brand-item img { height: 40px; width: auto; }
.brand-item:hover { color: var(--blue-700); filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Galería */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { min-height: 42px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font: 600 .92rem var(--ff-head); color: var(--ink); cursor: pointer; transition: all .25s; }
.chip:hover { border-color: var(--blue-500); }
.chip.is-on { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.masonry { columns: 1; column-gap: 16px; }
@media (min-width: 600px) { .masonry { columns: 2; } }
@media (min-width: 1000px) { .masonry { columns: 3; } }
.masonry figure { margin: 0 0 16px; break-inside: avoid; transition: opacity .4s, transform .4s var(--ease); }
.masonry figure.is-hidden { display: none; }
.masonry button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r); overflow: hidden; position: relative; }
.masonry img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.masonry figure:nth-child(3n+1) img { aspect-ratio: 4 / 5; object-fit: cover; }
.masonry figure:nth-child(3n+2) img { aspect-ratio: 16 / 10; object-fit: cover; }
.masonry figure:nth-child(3n) img { aspect-ratio: 1; object-fit: cover; }
.masonry button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 26, 51, .5), transparent 50%); opacity: 0; transition: opacity .4s; }
.masonry button:hover img { transform: scale(1.05); }
.masonry button:hover::after { opacity: 1; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5, 12, 26, .92); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; padding: 56px 12px; }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; color: #fff; background: rgba(255, 255, 255, .12); border-radius: 50%; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav { top: 50%; margin-top: -24px; }
.lightbox__prev { left: 12px; } .lightbox__next { right: 12px; }

/* Testimonios */
.reviews { background: linear-gradient(180deg, var(--bg), #eaf1fb); }
.gbadge { display: inline-flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 16px; text-decoration: none; box-shadow: var(--shadow); }
.gbadge__g { font: 800 1.6rem var(--ff-head); background: conic-gradient(from -45deg, #ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gbadge strong { display: block; font: 700 .9rem var(--ff-head); }
.gbadge small { color: var(--muted); }
.gbadge__stars, .rcard__stars { color: #f5b400; display: inline-flex; gap: 2px; margin-right: 6px; font-size: .95rem; vertical-align: -2px; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 18px; }
.carousel__track::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .carousel__track { grid-auto-columns: calc(50% - 8px); } }
@media (min-width: 1050px) { .carousel__track { grid-auto-columns: calc(33.333% - 11px); } }
.rcard { scroll-snap-align: start; background: var(--surface); border-radius: var(--r); padding: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; position: relative; }
.rcard__head { display: flex; align-items: center; gap: 12px; }
.rcard__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font: 800 1rem var(--ff-head); flex: none; }
.rcard__name { font: 700 1rem var(--ff-head); display: block; }
.rcard__place { font-size: .85rem; color: var(--muted); }
.rcard p { margin: 0; color: var(--ink); }
.rcard__tag { position: absolute; top: 14px; right: 14px; font: 700 .68rem var(--ff-head); letter-spacing: .12em; text-transform: uppercase; background: #fff4d6; color: #7a5600; padding: 4px 8px; border-radius: 6px; }
.carousel__nav { display: flex; gap: 10px; justify-content: flex-end; }

/* Cotizador */
.quote__grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .quote__grid { grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; } }
.quote__card { background: var(--surface); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-lg); position: relative; }
.quote__card::before { content: ""; position: absolute; inset: -2px; border-radius: calc(var(--r-lg) + 2px); background: var(--grad); z-index: -1; }
@media (min-width: 600px) { .quote__card { padding: 36px; } }
.qform { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font: 600 .9rem var(--ff-head); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; font: 400 1rem var(--ff-body); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-sm); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(46, 123, 196, .15); }
.field.has-error input, .field.has-error select { border-color: #c62f3f; background: #fff6f7; }
.field__err { margin: 0; font-size: .85rem; color: #b42332; min-height: 0; }
.field__err:empty { display: none; }
.qform__note { margin: 0; text-align: center; font-size: .85rem; color: var(--muted); }
.modal { border: 0; padding: 0; background: transparent; width: min(560px, calc(100vw - 24px)); max-height: calc(100svh - 24px); }
.modal::backdrop { background: rgba(5, 12, 26, .7); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__card { background: var(--surface); border-radius: var(--r-lg); padding: 28px 20px 22px; position: relative; }
@media (min-width: 600px) { .modal__card { padding: 36px; } }
.modal__card h2 { font-size: 1.6rem; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--bg); font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* FAQ */
.faq { background: var(--surface); }
.faq__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: .8fr 1.2fr; gap: 72px; } .faq__grid > header { position: sticky; top: calc(var(--head) + 32px); align-self: start; } }
.accordion { display: grid; gap: 12px; }
.acc { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); transition: background-color .3s, box-shadow .3s; }
.acc.is-open { background: #fff; box-shadow: var(--shadow); border-color: transparent; }
.acc h3 { margin: 0; font-size: 1rem; }
.acc button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; padding: 18px 20px; background: none; border: 0; font: 700 1.02rem/1.35 var(--ff-head); color: var(--ink); cursor: pointer; border-radius: var(--r); }
.acc button::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #eaf1fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%231E4FA0' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .35s var(--ease), background-color .3s; }
.acc button[aria-expanded="true"]::after { transform: rotate(45deg); background-color: #d6fbf5; }
.acc__panel { padding: 0 20px 18px; color: var(--muted); }
.acc__panel p { margin: 0; }

/* CTA final */
.final-cta { position: relative; overflow: hidden; background: var(--grad); color: #fff; min-height: 80svh; display: grid; place-items: center; padding: 100px 0; text-align: center; }
.final-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, rgba(11, 26, 51, .55), transparent 60%); }
.final-cta__inner { position: relative; }
.final-cta h2 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem); max-width: 18ch; margin: 0 auto 36px; text-shadow: 0 2px 30px rgba(11, 26, 51, .25); }
.final-cta__phone { display: block; margin-top: 22px; text-decoration: none; font-size: 1.05rem; opacity: .95; }

/* Contacto */
.contact__grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .contact__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .contact__grid { grid-template-columns: repeat(4, 1fr); } }
.ccard { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
a.ccard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ccard__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: #eaf1fb; color: var(--blue-700); margin-bottom: 10px; }
.ccard__icon--wa { background: #dcf8e7; color: var(--wa-dark); }
.ccard__label { font: 700 .75rem var(--ff-head); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.ccard strong { font: 700 1.05rem/1.4 var(--ff-head); }
.ccard__go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font: 600 .9rem var(--ff-head); color: var(--blue-700); text-decoration: none; }
.contact__bottom { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 960px) { .contact__bottom { grid-template-columns: 1.6fr 1fr; align-items: center; } }
.map { border-radius: var(--r-lg); overflow: hidden; min-height: 240px; background: #eaf1fb; position: relative; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 340px; border: 0; display: block; }
.map__fallback { position: relative; min-height: 240px; display: grid; place-items: center; text-align: center; padding: 24px; }
.map__fallback p { position: relative; margin: 0; }
.map__pin { position: relative; width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 26px; box-shadow: 0 0 0 10px rgba(46, 123, 196, .15); margin-bottom: -40px; }
.social { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.social p { width: 100%; margin: 0; color: var(--muted); }

/* Footer */
.footer { background: var(--blue-900); color: rgba(255, 255, 255, .78); padding: 64px 0 24px; }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h3 { color: #fff; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--aqua); }
.footer__logo { height: 56px; width: auto; background: #fff; padding: 8px 12px; border-radius: 12px; }
.footer svg.logo-fallback { height: 56px; width: auto; }
.footer__tag { margin-top: 16px; max-width: 34ch; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 20px; }
.footer__social a:hover { background: rgba(95, 224, 207, .18); }
.footer__hours { margin-top: 16px; font-size: .92rem; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 20px; font-size: .85rem; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; font-size: 32px; box-shadow: 0 12px 28px -8px rgba(18, 140, 75, .7); text-decoration: none; transition: transform .3s var(--ease); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); animation: pulse 2.4s infinite; z-index: -1; }
.wa-float:hover { transform: scale(1.08); }
.wa-float__tip { display: none; position: absolute; right: 74px; top: 50%; transform: translateY(-50%); background: var(--ink); color: #fff; font: 700 .9rem var(--ff-head); padding: 8px 14px; border-radius: 10px; white-space: nowrap; box-shadow: var(--shadow); }
.wa-float__tip::after { content: ""; position: absolute; right: -6px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-right: 0; border-left-color: var(--ink); }
@media (min-width: 900px) and (hover: hover) { .wa-float__tip { display: block; opacity: 0; transform: translate(8px, -50%); transition: all .3s var(--ease); } .wa-float:hover .wa-float__tip, .wa-float.show-tip .wa-float__tip { opacity: 1; transform: translate(0, -50%); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* Cookies */
.cookies { position: fixed; left: 12px; right: 88px; bottom: 16px; z-index: 55; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 16px; display: grid; gap: 12px; font-size: .9rem; border: 1px solid var(--line); }
.cookies p { margin: 0; }
.cookies div { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 700px) { .cookies { left: 24px; right: auto; max-width: 440px; } }

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal, [data-anim] { opacity: 1; transform: none; }
  .hero__video { display: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
