/* =========================================================
   Multiservicio CV (MCV)
   css/styles.css

   Índice
   1. Tokens (paleta, tipografías, curvas)
   2. Base
   3. Botones
   4. Navegador y menú móvil
   5. Hero
   6. Cinta
   7. Nosotros
   8. Servicios (8b. Video · 8c. Marcas)
   9. Galería y visor
   10. Contacto y formulario
   11. Botones flotantes (11b. Música de fondo)
   12. Footer
   13. Revelado al hacer scroll
   14. Responsive
   15. Táctil (celular y tablet)
   16. Movimiento reducido
   ========================================================= */

/* 1. Tokens ------------------------------------------------ */
:root {
  /* Paleta clara: crema cálido + naranja y amarillo de la marca */
  --bg: #fff8ec;
  --bg-2: #ffefd3;
  --bg-3: #ffffff;
  --ink: #241b10;
  --mute: #6a5e4e;
  --line: rgba(36, 27, 16, 0.14);
  --or: #ef7f11;
  --or-t: #d4690a;   /* naranja para texto grande */
  --or-d: #b85400;   /* naranja para texto pequeño */
  --ye: #efc748;
  --on-or: #241b10;
  --ok: #1f8a4c;
  --err: #c23b1b;
  --night: #1c140b;                     /* fondo del footer */
  --night-2: #2a1f13;                   /* tarjetas sobre el footer */
  --cream-2: rgba(255, 248, 236, 0.72); /* texto secundario sobre oscuro (AA) */

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);

  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --nav-h: 72px;
}

/* 2. Base -------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  overflow-x: hidden; /* respaldo para iOS antiguos */
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: rgba(239, 127, 17, 0.2); }
h1, h2, h3, p, ul, dl, dd, dt, figure { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; -webkit-tap-highlight-color: rgba(239, 127, 17, 0.2); }

:focus-visible { outline: 2px solid var(--or-d); outline-offset: 3px; border-radius: 6px; }

::selection { background: var(--or); color: var(--on-or); }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ye); color: var(--on-or); padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top 200ms var(--ease-out);
}
.skip:focus { top: 12px; }

/* Solo para lectores de pantalla */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(88px, 12vw, 168px); }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.section__label {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 100;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--or-d);
}

.section__title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  font-size: clamp(38px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section__title em { font-style: normal; color: var(--or-t); }
.section__lead { margin-top: 20px; color: var(--mute); font-size: clamp(17px, 1.6vw, 20px); max-width: 38ch; }

/* Cursor luminoso (solo punteros finos) */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 5; pointer-events: none;
  width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 127, 17, 0.16), rgba(239, 127, 17, 0) 65%);
  opacity: 0; transition: opacity 400ms ease;
  will-change: transform;
}
.cursor.is-on { opacity: 1; }

/* 3. Botones ----------------------------------------------- */
.btn {
  --tx: 0px; --ty: 0px; --s: 1;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px; white-space: nowrap;
  transform: translate(var(--tx), var(--ty)) scale(var(--s));
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:active { --s: 0.97; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--lg { min-height: 60px; padding: 0 36px; font-size: 17px; }
.btn--primary { background: var(--or); color: var(--on-or); }
.btn--ghost { border: 1px solid rgba(36, 27, 16, 0.3); color: var(--ink); }
.btn--light { border: 1px solid rgba(255, 248, 236, 0.35); color: var(--bg); }
.btn .ico { transition: transform 220ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--ye); }
  .btn--ghost:hover { border-color: var(--ink); background: rgba(36, 27, 16, 0.05); }
  .btn--light:hover { border-color: var(--bg); background: rgba(255, 248, 236, 0.08); }
  .btn:hover .ico { transform: translateX(4px); }
}

/* 4. Navegador --------------------------------------------- */
.nav {
  position: fixed; z-index: 60; top: 14px; left: 50%;
  width: min(1080px, calc(100% - 24px));
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.66);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  transition: background-color 300ms ease, box-shadow 300ms ease, top 300ms var(--ease-out), width 400ms var(--ease-out);
}
.nav.is-scrolled {
  top: 10px; width: min(900px, calc(100% - 24px));
  background: rgba(255, 248, 236, 0.9);
  box-shadow: 0 18px 44px -22px rgba(120, 60, 0, 0.5);
}

.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand__mark { width: 34px; height: 34px; }
.brand__name, .brand__full {
  font-family: var(--font-display); font-variation-settings: "wdth" 112; font-weight: 800;
  font-size: 19px; letter-spacing: -0.02em; white-space: nowrap;
}
.brand__full { display: none; font-size: 17px; }

.nav__links { position: relative; display: flex; align-items: center; margin-left: auto; }
.nav__links a {
  position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px;
  font-size: 15px; font-weight: 500; color: var(--mute); transition: color 200ms ease;
}
.nav__links a.is-active, .nav__links a:hover { color: var(--ink); }
.nav__ind {
  position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; border-radius: 999px;
  background: rgba(239, 127, 17, 0.16); border: 1px solid rgba(239, 127, 17, 0.42);
  transform: translateX(0); opacity: 0;
  transition: transform 380ms var(--ease-io), width 380ms var(--ease-io), opacity 200ms ease;
}
.nav__ind.is-ready { opacity: 1; }

.nav__progress {
  position: absolute; left: 28px; right: 28px; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--or), var(--ye));
  transform: scaleX(var(--p, 0)); transform-origin: left;
}

.burger { display: none; width: 44px; height: 44px; position: relative; border-radius: 50%; background: rgba(36, 27, 16, 0.07); transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.burger:active { transform: scale(0.94); background: rgba(239, 127, 17, 0.28); }
.burger span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform 300ms var(--ease-out);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* Menú móvil: pantalla completa, enlaces de tamaño cómodo con respuesta al toque */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--or); color: var(--on-or);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 104px var(--gutter) max(28px, env(safe-area-inset-bottom));
  clip-path: circle(0px at calc(100% - 46px) 36px);
  visibility: hidden;
  transition: clip-path 600ms var(--ease-io), visibility 0s linear 600ms;
}
.menu.is-open { clip-path: circle(150vmax at calc(100% - 46px) 36px); visibility: visible; transition: clip-path 600ms var(--ease-io), visibility 0s; }
.menu nav { width: min(560px, 100%); display: flex; flex-direction: column; }
.menu nav a {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 8px;
  font-family: var(--font-display); font-variation-settings: "wdth" 108; font-weight: 800;
  font-size: clamp(24px, 6.4vw, 34px); line-height: 1.1; letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(36, 27, 16, 0.22);
  opacity: 0; transform: translateX(-18px);
  transition: opacity 300ms ease, transform 400ms var(--ease-out), padding 300ms var(--ease-out);
}
.menu nav a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg);
  transform: scaleX(0); transform-origin: left; transition: transform 380ms var(--ease-out);
}
.menu nav a .ico { width: 26px; height: 26px; transition: transform 300ms var(--ease-out); }
.menu.is-open nav a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 55ms + 200ms), calc(var(--i) * 55ms + 200ms), 0ms; }
.menu nav a.is-pressed, .menu nav a:active { padding-left: 20px; transition-delay: 0ms; }
.menu nav a.is-pressed::before, .menu nav a:active::before { transform: scaleX(1); }
.menu nav a.is-pressed .ico, .menu nav a:active .ico { transform: translate(4px, -4px) rotate(45deg); }
.menu__foot { color: var(--on-or); font-size: 15px; }
.menu__foot a { text-decoration: underline; text-underline-offset: 4px; }
.menu :focus-visible { outline-color: var(--ink); }

/* 5. Hero -------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: calc(var(--nav-h) + 40px) 0 56px; }
.hero__grid {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 60% 50%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 80% at 60% 50%, #000 35%, transparent 100%);
}
.hero__glow {
  position: absolute; z-index: -1; right: -10%; top: 5%; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(239, 199, 72, 0.5), rgba(239, 199, 72, 0) 62%);
  pointer-events: none;
}

.hero__inner {
  width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter);
  position: relative;
}
.hero__copy { position: relative; z-index: 2; }

.hero__title {
  font-family: var(--font-display); font-variation-settings: "wdth" 114; font-weight: 800;
  font-size: clamp(36px, 5.4vw, 88px); line-height: 0.96; letter-spacing: -0.035em;
}
.h-line { display: block; white-space: nowrap; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.h-line > span { display: block; }
.h-line--rot { color: var(--or-t); }

/* Palabra rotativa: todas ocupan la misma celda, la más ancha define el ancho */
.rot { display: inline-grid; overflow: hidden; vertical-align: bottom; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.rot > span {
  grid-area: 1 / 1; display: block;
  transform: translateY(105%); opacity: 0;
  transition: transform 650ms var(--ease-io), opacity 650ms var(--ease-io);
}
.rot > span.is-active { transform: none; opacity: 1; }
.rot > span.is-prev { transform: translateY(-105%); opacity: 0; }

.hero__sub { margin-top: 28px; max-width: 34ch; font-size: clamp(17px, 1.7vw, 21px); color: var(--mute); }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Entrada del hero (solo con JS activo) */
.js .h-line > span { transform: translateY(112%); }
.js .loaded .h-line > span { transform: none; transition: transform 1000ms var(--ease-out) calc(var(--i) * 110ms + 150ms); }
.js [data-hero-in] { opacity: 0; transform: translateY(18px); }
.js .loaded [data-hero-in] { opacity: 1; transform: none; transition: opacity 700ms ease calc(var(--i) * 110ms + 250ms), transform 800ms var(--ease-out) calc(var(--i) * 110ms + 250ms); }

/* Isotipo que se dibuja, sobre un disco blanco para que el amarillo se lea */
.hero__stage { position: absolute; right: calc(var(--gutter) - 1vw); top: 50%; width: min(34vw, 470px); transform: translateY(-50%); perspective: 1000px; display: grid; place-items: center; }
.hero__stage::before {
  content: ""; position: absolute; inset: -12%; border-radius: 50%; background: #fff;
  box-shadow: 0 40px 90px -36px rgba(184, 84, 0, 0.55), 0 0 0 16px rgba(239, 127, 17, 0.1), 0 0 0 36px rgba(239, 127, 17, 0.05);
}
.hero__tilt { position: relative; width: 100%; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.iso-draw { width: 100%; height: auto; overflow: visible; animation: float 8s ease-in-out infinite; }
.iso-draw .o, .iso-draw .y { stroke-width: 9; stroke-linejoin: round; stroke-linecap: round; fill-opacity: 1; }
.iso-draw .o { fill: var(--or); stroke: var(--or); }
.iso-draw .y { fill: var(--ye); stroke: var(--ye); }
.js .iso-draw .o, .js .iso-draw .y { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; }
.js .loaded .iso-draw .o, .js .loaded .iso-draw .y {
  animation: draw 2200ms var(--ease-io) forwards, fillin 900ms ease forwards;
  animation-delay: calc(var(--k, 0) * 140ms + 300ms), calc(var(--k, 0) * 140ms + 1700ms);
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(-1.5%); } 50% { transform: translateY(1.5%); } }

/* 6. Cinta ------------------------------------------------- */
.band { background: var(--or); color: var(--on-or); overflow: hidden; padding-block: 18px; transform: rotate(-1.2deg); margin: -10px -2% 0; position: relative; z-index: 2; }
.band__track { display: flex; width: max-content; will-change: transform; }
.band__set { display: flex; align-items: center; gap: 28px; padding-right: 28px; flex: none; }
.band__set > span {
  font-family: var(--font-display); font-variation-settings: "wdth" 118; font-weight: 800; text-transform: uppercase;
  font-size: clamp(26px, 4vw, 48px); letter-spacing: -0.02em; white-space: nowrap; line-height: 1;
}
.band__sp { width: clamp(22px, 3vw, 34px); height: clamp(22px, 3vw, 34px); fill: var(--on-or); flex: none; }

/* 7. Nosotros ---------------------------------------------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 0.28fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); }
.about__text {
  font-family: var(--font-display); font-variation-settings: "wdth" 104; font-weight: 700;
  font-size: clamp(25px, 3.4vw, 50px); line-height: 1.14; letter-spacing: -0.025em; text-wrap: pretty;
}
.about__text .w { color: rgba(36, 27, 16, 0.2); transition: color 350ms ease; }
.about__text .w.on { color: var(--ink); }
.about__text .w.on.hl { color: var(--or-t); }

.stats { margin-top: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; border-top: 1px solid var(--line); }
.stats > div { padding: 28px 0 0; display: flex; flex-direction: column; }
.stats dt { color: var(--mute); font-size: 15px; order: 2; }
.stats dd {
  font-family: var(--font-display); font-variation-settings: "wdth" 112; font-weight: 800;
  font-size: clamp(44px, 5.4vw, 80px); line-height: 1; letter-spacing: -0.04em; margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.stats dd b { color: var(--or-t); font-weight: 800; }

/* 8. Servicios --------------------------------------------- */
.services { background: var(--bg-2); border-block: 1px solid var(--line); }
.services__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 80px); }
.services__head .section__lead { margin: 0; }

.svc {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 88px minmax(0, 0.85fr) minmax(0, 1.35fr) 52px; align-items: center; gap: clamp(16px, 3vw, 48px);
  padding: 40px clamp(8px, 2vw, 32px);
  border-top: 1px solid var(--line);
  cursor: default;
  transition: opacity 300ms ease, color 300ms ease;
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--or);
  transform: scaleY(0); transform-origin: bottom; transition: transform 550ms var(--ease-io);
}
.svc__icon {
  width: 88px; height: 88px; border-radius: 24px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--bg-3);
  transition: background-color 300ms ease, border-color 300ms ease, transform 400ms var(--ease-out);
}
.svc__icon svg { width: 44px; height: 44px; fill: none; stroke: var(--or); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke 300ms ease; }
.svc__icon path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.svc__title {
  font-family: var(--font-display); font-variation-settings: "wdth" 110; font-weight: 800;
  font-size: clamp(26px, 3.2vw, 44px); line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance;
}
.svc__head { display: grid; gap: 10px; align-content: center; }
.svc__num {
  font-family: var(--font-display); font-variation-settings: "wdth" 100; font-weight: 700; font-size: 14px; letter-spacing: 0.08em;
  color: var(--or-d); transition: color 300ms ease;
}
.svc__body { display: grid; gap: 18px; }
.svc__desc { color: var(--mute); max-width: 52ch; transition: color 300ms ease; }
.svc__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.svc__items li {
  position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; color: var(--ink);
  transition: color 300ms ease;
}
.svc__items li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--or) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%23241b10' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  transition: background-color 300ms ease;
}
.svc__arrow {
  width: 52px; height: 52px; justify-self: end; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-3); color: var(--ink);
  transition: transform 400ms var(--ease-out), color 300ms ease, background-color 300ms ease, border-color 300ms ease;
}
.svc__arrow .ico { width: 22px; height: 22px; }

@keyframes redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Estado activo: lo activa el JS con el mouse (hover), con el toque, o al pasar por el centro de la pantalla en celular */
.svc-list.has-hover .svc:not(.is-on) { opacity: 0.5; }
.svc.is-on { color: var(--on-or); }
.svc.is-on::before { transform: scaleY(1); }
.svc.is-on .svc__desc { color: rgba(36, 27, 16, 0.85); }
.svc.is-on .svc__icon { background: var(--on-or); border-color: var(--on-or); transform: rotate(-6deg) scale(1.04); }
.svc.is-on .svc__icon svg { stroke: var(--ye); }
.svc.is-on .svc__icon path { animation: redraw 900ms var(--ease-io) both; }
.svc.is-on .svc__arrow { color: var(--ye); background: var(--on-or); border-color: var(--on-or); transform: rotate(45deg) scale(1.08); }
.svc.is-on .svc__num { color: var(--on-or); }
.svc.is-on .svc__items li { color: var(--on-or); }
.svc.is-on .svc__items li::before { background-color: var(--bg); }

/* 8b. Video ------------------------------------------------- */
/* Va pegada a "Quiénes somos": sin el espacio superior completo de .section */
.reel { padding-top: clamp(8px, 2vw, 32px); }
.about { padding-bottom: clamp(56px, 7vw, 96px); }
.reel__head { display: grid; gap: 14px; justify-items: center; text-align: center; margin-bottom: clamp(32px, 5vw, 64px); }
.reel__head .section__lead { margin-top: 6px; }
.reel__frame {
  --s: 1; --r: clamp(18px, 2.6vw, 36px);
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate;
  max-width: 1020px; margin-inline: auto;
  border-radius: var(--r); background: var(--or);
  box-shadow: 0 50px 100px -50px rgba(120, 60, 0, 0.6);
  transform: scale(var(--s)); transform-origin: center top; will-change: transform;
}
.reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--or); }
.reel__play {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: flex-start; gap: 14px;
  padding: clamp(14px, 2.6vw, 36px);
  background: linear-gradient(to top, rgba(36, 27, 16, 0.78), rgba(36, 27, 16, 0.35) 30%, rgba(36, 27, 16, 0) 55%);
  transition: opacity 400ms ease, visibility 0s linear 0s;
}
.reel__btn {
  position: relative; flex: none; width: clamp(52px, 7vw, 92px); height: clamp(52px, 7vw, 92px); border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-3); color: var(--or-d);
  box-shadow: 0 20px 50px -16px rgba(36, 27, 16, 0.6);
  transition: transform 300ms var(--ease-out), background-color 250ms ease, color 250ms ease;
}
.reel__btn::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.85);
  animation: reelPulse 2.4s var(--ease-out) infinite;
}
.reel__btn svg { width: 42%; height: 42%; margin-left: 8%; fill: currentColor; }
.reel__txt { display: grid; color: #fff; text-align: left; text-shadow: 0 2px 12px rgba(36, 27, 16, 0.45); }
.reel__txt b { font-family: var(--font-display); font-variation-settings: "wdth" 110; font-weight: 800; font-size: clamp(17px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.1; }
.reel__txt small { font-size: clamp(12px, 1.2vw, 14px); opacity: 0.92; }
.reel__play:active .reel__btn { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .reel__play:hover .reel__btn { transform: scale(1.08); background: var(--ye); color: var(--on-or); }
}
.reel__frame[data-state="playing"] .reel__play,
.reel__frame[data-state="paused"] .reel__play { opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 0s linear 300ms; }
@keyframes reelPulse { 0% { transform: scale(0.9); opacity: 0.9; } 70%, 100% { transform: scale(1.35); opacity: 0; } }

/* 8c. Marcas ------------------------------------------------ */
.clients { overflow: hidden; }
.clients__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 80px); }
.clients__head .section__lead { margin: 0; }
.brands__item { min-width: 0; }
.brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); perspective: 1200px; }
.brand-card {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; aspect-ratio: 5 / 4; padding: clamp(24px, 3vw, 44px);
  border-radius: clamp(20px, 2.4vw, 32px); background: var(--bg-3); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -44px rgba(120, 60, 0, 0.5);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform 500ms var(--ease-out), box-shadow 400ms ease, border-color 400ms ease;
}
/* Luz naranja que sigue al puntero */
.brand-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(circle 260px at var(--gx) var(--gy), rgba(239, 127, 17, 0.16), rgba(239, 127, 17, 0) 70%);
  opacity: 0; transition: opacity 400ms ease;
}
/* Brillo que cruza la tarjeta cuando aparece */
.brand-card::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
  transform: skewX(-18deg) translateX(0); opacity: 0;
}
.brands__item.is-in > .brand-card::after { animation: shine 1400ms var(--ease-io) calc(var(--d, 0) * 160ms + 500ms) both; }
.brand-card__logo {
  width: auto; height: clamp(70px, 8vw, 112px); max-width: 80%; object-fit: contain;
  animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -2s);
  transition: transform 500ms var(--ease-out), filter 400ms ease;
}
.brand-card__logo--wide { width: min(78%, 320px); height: auto; }
.brand-card__logo--badge { height: clamp(88px, 10vw, 140px); border-radius: 16px; box-shadow: 0 16px 30px -18px rgba(13, 70, 140, 0.7); }
.brand-card.is-on { border-color: rgba(239, 127, 17, 0.55); box-shadow: 0 40px 70px -40px rgba(184, 84, 0, 0.6); }
.brand-card.is-on::before { opacity: 1; }
.brand-card.is-on .brand-card__logo { transform: translateZ(30px) scale(1.06); }
@keyframes shine { 0% { transform: skewX(-18deg) translateX(0); opacity: 1; } 100% { transform: skewX(-18deg) translateX(420%); opacity: 1; } }
@keyframes bob { 0%, 100% { translate: 0 -3px; } 50% { translate: 0 3px; } }

/* 9. Galería y visor --------------------------------------- */
.gallery__head { margin-bottom: clamp(40px, 6vw, 80px); }
.mosaic {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(130px, 17vw, 240px);
  grid-auto-flow: dense; gap: clamp(8px, 1.4vw, 18px);
}
.mosaic > li { min-width: 0; min-height: 0; }
.mosaic > li[hidden] { display: none; }
.mosaic > li.is-new { animation: tileIn 700ms var(--ease-out) both; animation-delay: calc(var(--n, 0) * 45ms); }
@keyframes tileIn { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
.gallery__more { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 48px); }
.gallery__more[hidden] { display: none; }
.gallery__count {
  display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 8px; border-radius: 999px;
  background: var(--or); color: var(--on-or); font-size: 13px; font-weight: 700;
}
.t-big { grid-column: span 2; grid-row: span 2; }
.t-tall { grid-row: span 2; }
.t-wide { grid-column: span 2; }

.tile {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; overflow: hidden;
  border-radius: clamp(14px, 2vw, 26px); background: var(--bg-2); cursor: zoom-in;
  transition: transform 200ms var(--ease-out), box-shadow 300ms ease;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(36, 27, 16, 0.5), rgba(36, 27, 16, 0) 55%);
  opacity: 0; transition: opacity 300ms ease;
}
.tile__zoom {
  position: absolute; z-index: 1; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); color: var(--ink);
  opacity: 0; transform: translateY(10px) scale(0.9);
  transition: opacity 250ms ease, transform 350ms var(--ease-out);
}
.tile:active { transform: scale(0.98); }
.tile.is-hot img { transform: scale(1.07); }
.tile.is-hot::after { opacity: 1; }
.tile.is-hot .tile__zoom { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover img { transform: scale(1.07); }
  .tile:hover::after { opacity: 1; }
  .tile:hover .tile__zoom { opacity: 1; transform: none; }
}

/* Visor a pantalla completa */
.lb {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(255, 248, 236, 0.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity 250ms ease, visibility 0s linear 250ms;
}
.lb.is-open { opacity: 1; visibility: visible; transition: opacity 250ms ease; }
.lb__fig { margin: 0; width: min(1100px, calc(100% - 24px)); display: grid; gap: 14px; justify-items: center; transform: scale(0.96); transition: transform 350ms var(--ease-out); touch-action: pan-y; }
.lb.is-open .lb__fig { transform: none; }
.lb__img {
  max-width: 100%; max-height: min(76vh, 760px); width: auto; height: auto; border-radius: 18px;
  box-shadow: 0 30px 80px -30px rgba(120, 60, 0, 0.55);
  transition: opacity 160ms ease, transform 220ms var(--ease-out), filter 160ms ease;
}
.lb__img.is-out { opacity: 0; filter: blur(3px); transform: translateX(var(--dx, 24px)); }
.lb__cap { font-size: 15px; color: var(--mute); font-variant-numeric: tabular-nums; }
.lb__btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg-3); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(120, 60, 0, 0.5);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.lb__btn:active { transform: scale(0.94); background: var(--or); }
.lb__btn .ico { width: 24px; height: 24px; }
.lb__close { top: max(16px, env(safe-area-inset-top)); right: 16px; }
.lb__prev, .lb__next { top: 50%; margin-top: -26px; }
.lb__prev { left: 16px; }
.lb__next { right: 16px; }
@media (hover: hover) and (pointer: fine) { .lb__btn:hover { background: var(--or); } }

/* 10. Contacto y formulario -------------------------------- */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.info { margin-top: 40px; display: grid; gap: 14px; }
.info li { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.info .ico { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line); color: var(--or-d); }

.card { position: relative; background: var(--bg-3); border: 1px solid var(--line); border-radius: 32px; padding: clamp(24px, 3.4vw, 44px); overflow: hidden; box-shadow: 0 40px 80px -50px rgba(120, 60, 0, 0.45); }
.form { display: grid; gap: 22px; transition: opacity 300ms ease, transform 400ms var(--ease-out); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 26px 16px 10px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px; outline: none; resize: none;
  transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}
.field textarea { min-height: 112px; line-height: 1.5; }
.field label {
  position: absolute; left: 17px; top: 17px; color: var(--mute); pointer-events: none; transform-origin: left top;
  transition: transform 220ms var(--ease-out), color 200ms ease;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-9px) scale(0.78); color: var(--or-d); }
.field input:focus, .field textarea:focus { border-color: var(--or); background: #fff; box-shadow: 0 0 0 4px rgba(239, 127, 17, 0.18); }
.field.has-error input { border-color: var(--err); }
.field__err { display: block; min-height: 0; max-height: 0; overflow: hidden; padding-left: 4px; color: var(--err); font-size: 14px; opacity: 0; transition: max-height 250ms var(--ease-out), opacity 250ms ease, margin 250ms var(--ease-out); }
.has-error > .field__err, .chips.has-error > .field__err { max-height: 40px; opacity: 1; margin-top: 8px; }

.chips { border: 0; padding: 0; margin: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 12px; color: var(--mute); font-size: 15px; }
.chips__row { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span:not(.field__err) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg);
  font-size: 15px; font-weight: 500; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.chips input:checked + span { background: var(--or); color: var(--on-or); border-color: var(--or); }
.chips input:focus-visible + span { outline: 2px solid var(--or-d); outline-offset: 3px; }
.chips input:active + span { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .chips input:not(:checked):hover + span { border-color: var(--ink); } }
.chips.has-error legend { color: var(--err); }

.submit { width: 100%; overflow: hidden; }
.submit__idle { display: inline-flex; align-items: center; gap: 10px; transition: opacity 200ms ease, transform 300ms var(--ease-out), filter 200ms ease; }
.submit__load { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(0.9); transition: opacity 200ms ease, transform 300ms var(--ease-out); }
.submit__load i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(36, 27, 16, 0.22); border-top-color: var(--on-or); animation: spin 700ms linear infinite; }
.card[data-state="loading"] .submit__idle { opacity: 0; transform: scale(0.95); filter: blur(2px); }
.card[data-state="loading"] .submit__load { opacity: 1; transform: none; }
.card[data-state="loading"] .submit { pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.done {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 32px;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 400ms ease, transform 500ms var(--ease-out), visibility 0s linear 400ms;
}
.done h3 { font-family: var(--font-display); font-variation-settings: "wdth" 110; font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; }
.done p { color: var(--mute); max-width: 30ch; }
.done .btn { margin-top: 10px; }
.done__check { width: 96px; height: 96px; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done__check circle, .done__check path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.card[data-state="success"] .form { opacity: 0; transform: scale(0.97); pointer-events: none; visibility: hidden; transition: opacity 250ms ease, transform 300ms var(--ease-out), visibility 0s linear 250ms; }
.card[data-state="success"] .done { opacity: 1; visibility: visible; transform: none; transition: opacity 400ms ease 150ms, transform 500ms var(--ease-out) 150ms; }
.card[data-state="success"] .done__check circle { animation: redraw 700ms var(--ease-io) 250ms forwards; }
.card[data-state="success"] .done__check path { animation: redraw 450ms var(--ease-out) 800ms forwards; }
.card[data-state="success"] { min-height: 480px; }

/* 11. Botones flotantes ------------------------------------ */
.float { position: fixed; z-index: 70; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-end; gap: 14px; pointer-events: none; }
.float > * { pointer-events: auto; }

.totop {
  position: relative; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 248, 236, 0.92);
  box-shadow: 0 12px 30px -12px rgba(120, 60, 0, 0.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(16px) scale(0.9); visibility: hidden;
  transition: opacity 250ms ease, transform 350ms var(--ease-out), visibility 0s linear 250ms, background-color 200ms ease;
}
.totop.is-visible { opacity: 1; transform: none; visibility: visible; transition: opacity 250ms ease, transform 350ms var(--ease-out), background-color 200ms ease; }
.totop:active { transform: scale(0.94); background: var(--or); }
.totop svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.totop__bg { stroke: var(--line); stroke-width: 2.5; }
.totop__ring { stroke: var(--or); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); transform: rotate(-90deg); transform-origin: center; }
.totop path { stroke: var(--ink); stroke-width: 2.5; }
@media (hover: hover) and (pointer: fine) { .totop:hover { background: var(--or); } }

.wa { position: relative; display: flex; align-items: center; gap: 12px; }
.wa__tip {
  position: absolute; right: 72px; top: 50%; white-space: nowrap; padding: 10px 16px; border-radius: 14px 14px 4px 14px;
  background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 500;
  opacity: 0; transform: translate(10px, -50%) scale(0.95); transform-origin: right center; pointer-events: none;
  transition: opacity 250ms ease, transform 350ms var(--ease-out);
}
.wa__tip.is-show { opacity: 1; transform: translate(0, -50%); }
.wa__btn {
  position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 160ms var(--ease-out);
}
.wa__btn:active { transform: scale(0.94); }
.wa__btn svg { width: 32px; height: 32px; }
.wa__bubble { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.wa__phone { fill: #fff; }
.wa__pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
@media (hover: hover) and (pointer: fine) { .wa__btn:hover { transform: scale(1.06); } .wa:hover .wa__tip { opacity: 1; transform: translate(0, -50%); } }

/* 11b. Música de fondo ------------------------------------- */
.music {
  position: fixed; z-index: 70; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 18px 6px 6px; border-radius: 999px;
  background: rgba(255, 248, 236, 0.92); border: 1px solid var(--line); color: var(--ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -12px rgba(120, 60, 0, 0.5);
  font-size: 14px; font-weight: 600;
  transition: transform 160ms var(--ease-out), opacity 250ms ease, background-color 200ms ease;
}
.music:active { transform: scale(0.96); }
.music__icon { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--or); color: var(--on-or); flex: none; }
.music__note { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: opacity 200ms ease, transform 300ms var(--ease-out); }
.music__bars { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2.5px; opacity: 0; transition: opacity 200ms ease; }
.music__bars i { width: 3px; height: 14px; border-radius: 2px; background: currentColor; transform: scaleY(0.35); transform-origin: center; }
.music.is-on .music__note { opacity: 0; transform: scale(0.6); }
.music.is-on .music__bars { opacity: 1; }
.music.is-on .music__bars i { animation: eq 1.1s ease-in-out infinite; }
.music.is-on .music__bars i:nth-child(2) { animation-delay: -0.35s; animation-duration: 0.9s; }
.music.is-on .music__bars i:nth-child(3) { animation-delay: -0.7s; animation-duration: 1.25s; }
.music.is-on .music__bars i:nth-child(4) { animation-delay: -0.2s; animation-duration: 1s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@media (hover: hover) and (pointer: fine) { .music:hover { background: #fff; } }
body.is-locked .music,
body.is-locked .float { opacity: 0; pointer-events: none; }


/* 12. Footer ----------------------------------------------- */
/* Fondo oscuro cálido; el isotipo va monocromático blanco (crema) */
.footer { position: relative; background: var(--night); color: var(--cream-2); padding-top: clamp(72px, 10vw, 128px); overflow: hidden; isolation: isolate; }
.footer::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -280px; width: 900px; height: 560px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(239, 127, 17, 0.22), rgba(239, 127, 17, 0) 65%);
  pointer-events: none;
}
.footer ::selection { background: var(--ye); color: var(--ink); }
.footer :focus-visible { outline-color: var(--ye); }

/* Llamado a cotizar */
.footer__cta {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 80px); align-items: end;
  padding-bottom: clamp(48px, 7vw, 88px); border-bottom: 1px solid rgba(255, 248, 236, 0.14);
}
.footer__title {
  font-family: var(--font-display); font-variation-settings: "wdth" 112; font-weight: 800; color: var(--bg);
  font-size: clamp(38px, 5.6vw, 80px); line-height: 0.98; letter-spacing: -0.03em; text-wrap: balance;
}
.footer__title em { font-style: normal; color: var(--or); }
.footer__actions { display: grid; gap: 22px; }
.footer__actions p { font-size: clamp(16px, 1.5vw, 19px); max-width: 40ch; }
.footer__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Columnas */
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 64px); padding-top: clamp(48px, 6vw, 80px); }
.footer__logo { display: inline-flex; align-items: center; gap: 14px; color: var(--bg); }
.footer__logo span { font-family: var(--font-display); font-variation-settings: "wdth" 108; font-weight: 800; font-size: 19px; line-height: 1.1; letter-spacing: -0.01em; }
.footer__mark { --iso-o: var(--bg); --iso-y: var(--bg); width: 52px; height: 52px; flex: none; transition: transform 500ms var(--ease-out); }
.footer__brand p { margin-top: 20px; max-width: 34ch; }
.footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__col h3 { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--or); margin-bottom: 8px; }
.footer__col a { color: var(--cream-2); transition: color 200ms ease, transform 250ms var(--ease-out); }
.footer__col a:active { color: var(--bg); }
.footer__badge {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 14px; border-radius: 999px;
  background: var(--night-2); border: 1px solid rgba(239, 127, 17, 0.4); color: var(--bg); font-size: 14px; font-weight: 600;
}
.footer__badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--or); box-shadow: 0 0 0 0 rgba(239, 127, 17, 0.7); animation: dot 2s ease-out infinite; }
@keyframes dot { 0% { box-shadow: 0 0 0 0 rgba(239, 127, 17, 0.7); } 80%, 100% { box-shadow: 0 0 0 10px rgba(239, 127, 17, 0); } }
@media (hover: hover) and (pointer: fine) {
  .footer__col a:hover { color: var(--bg); transform: translateX(4px); }
  .footer__logo:hover .footer__mark { transform: rotate(-10deg) scale(1.06); }
}

/* Palabra gigante: contorno naranja y una luz que la recorre */
.footer__word {
  --mx: 50%; --my: 50%;
  margin-top: clamp(40px, 6vw, 80px);
  font-family: var(--font-display); font-variation-settings: "wdth" 125; font-weight: 900; text-transform: uppercase;
  font-size: 22vw; line-height: 0.82; letter-spacing: -0.045em; white-space: nowrap; text-align: center;
  color: transparent; -webkit-text-stroke: 2px rgba(239, 127, 17, 0.45);
  background: radial-gradient(circle 300px at var(--mx) var(--my), var(--or), rgba(239, 199, 72, 0.35) 45%, rgba(239, 127, 17, 0) 70%);
  -webkit-background-clip: text; background-clip: text;
  user-select: none;
}
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  padding: 26px 0 max(96px, env(safe-area-inset-bottom)); /* deja libre el botón de música */ margin-top: 28px; border-top: 1px solid rgba(255, 248, 236, 0.14); font-size: 14px;
}
.footer__credit a { color: var(--bg); font-weight: 700; }
.footer__up { display: inline-flex; align-items: center; gap: 8px; color: var(--bg); font-weight: 600; }
.footer__up .ico { width: 16px; height: 16px; transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .footer__credit a:hover { color: var(--or); }
  .footer__up:hover .ico { transform: translateY(-3px); }
}

/* 13. Revelado --------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 700ms ease calc(var(--d, 0) * 90ms), transform 800ms var(--ease-out) calc(var(--d, 0) * 90ms); }
.js .svc[data-reveal] { transform: translateY(40px); }

/* 14. Responsive ------------------------------------------- */
@media (min-width: 1100px) {
  .brand__name { display: none; }
  .brand__full { display: inline; }
}

@media (max-width: 960px) {
  .hero__inner { display: flex; flex-direction: column; gap: clamp(44px, 9vw, 72px); }
  .hero__stage { position: relative; right: auto; top: auto; transform: none; width: min(58vw, 320px); margin: 0 auto; }
  .hero__title { font-size: clamp(36px, 9vw, 72px); }
  .h-line { white-space: normal; }
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__cta { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc { grid-template-columns: 72px minmax(0, 1fr) 52px; gap: 18px 24px; }
  .svc__icon { width: 72px; height: 72px; border-radius: 20px; }
  .svc__icon svg { width: 38px; height: 38px; }
  .svc__head { grid-column: 2; grid-row: 1; }
  .svc__arrow { grid-column: 3; grid-row: 1; }
  .svc__body { grid-column: 2 / -1; }
  .stats > div { padding-bottom: 28px; }
}

@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .nav.is-scrolled { width: min(1080px, calc(100% - 24px)); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .svc { grid-template-columns: 56px minmax(0, 1fr) 44px; gap: 16px 14px; padding: 28px 8px; }
  .svc__icon { width: 56px; height: 56px; border-radius: 16px; grid-row: 1; }
  .svc__icon svg { width: 30px; height: 30px; }
  .svc__head { gap: 4px; }
  .svc__arrow { width: 44px; height: 44px; }
  .svc__body { grid-column: 1 / -1; gap: 14px; }
  .svc__items { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .brands { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .brand-card { aspect-ratio: auto; height: 168px; }
  .reel .wrap { padding-inline: 12px; }
  .reel__head { padding-inline: calc(var(--gutter) - 12px); }
  .footer__btns .btn { flex: 1 1 auto; }
  /* Espacio para que los botones flotantes no tapen la última línea */
  .footer__bottom { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .hero__cta .btn { flex: 1 1 auto; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 34vw, 200px); }
  .lb__prev, .lb__next { top: auto; bottom: 24px; margin-top: 0; }
  .lb__prev { left: calc(50% - 64px); }
  .lb__next { right: calc(50% - 64px); }
  .lb__img { max-height: 66vh; }
  .wa__tip { right: 0; top: auto; bottom: 74px; transform: translate(0, 8px); transform-origin: right bottom; border-radius: 14px 14px 4px 14px; }
  .wa__tip.is-show { transform: none; }
}

@media (max-width: 420px) {
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .stats dd { font-size: 40px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* 15. Táctil (celular y tablet) ---------------------------- */
@media (hover: none), (pointer: coarse) {
  .btn--primary:active { background: var(--ye); }
  .btn--ghost:active { border-color: var(--ink); background: rgba(36, 27, 16, 0.07); }
  .chips input:not(:checked):active + span { border-color: var(--ink); background: var(--bg-2); }
  .nav__cta:active { background: var(--ye); }
  .info li:active .ico { background: var(--or); color: var(--on-or); }
  .tile__zoom { opacity: 1; transform: none; width: 38px; height: 38px; right: 10px; bottom: 10px; }
  .cursor { display: none; }
}

/* 16. Movimiento reducido ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .iso-draw { animation: none; }
  .wa__pulse { display: none; }
  .band { transform: none; }
  .reel__frame { transform: none; }
  .music.is-on .music__bars i { animation: none; transform: scaleY(0.7); }
  .brand-card__logo, .reel__btn::before, .footer__badge i { animation: none; }
  .brand-card { transform: none; }
}
