/* .RAW · web visual: el contenido es el portafolio, con muy poco texto */
:root {
  --bg: #0a0a0b;
  --bg-2: #141416;
  --surface: #1c1c1f;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --dim: #6e6e73;
  --blue: #0052ff;
  --blue-soft: #4d86ff;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1400px;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --logo: "Montserrat", var(--sans);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 3px; }
em { font-style: normal; color: var(--muted); }
[hidden] { display: none !important; }
h1, h2, h3 { font-weight: 600; line-height: 1.02; letter-spacing: -0.045em; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }

/* Logo */
.logo { display: inline-flex; align-items: baseline; font-family: var(--logo); font-size: 1.3rem; line-height: 1; letter-spacing: -0.01em; }
.logo-dot { display: inline-block; flex: none; width: .26em; height: .26em; margin-right: .05em; border-radius: 50%; background: var(--blue); }
.logo-raw { font-weight: 800; }
.logo-bga { font-weight: 400; margin-left: .2em; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 28px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap; transition: background .3s, color .3s, transform .3s var(--ease); }
.btn:hover { background: var(--blue); color: #fff; }
.btn:active { transform: scale(.97); }
.btn svg { width: 14px; height: 14px; fill: currentColor; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn-ghost:hover { background: #fff; color: var(--bg); }
.btn-small { height: 40px; padding: 0 20px; font-size: .9rem; }

/* Navegación */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px var(--gutter); transition: background .4s, backdrop-filter .4s; }
.nav.scrolled { background: rgba(10,10,11,.72); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); }
.nav .logo { position: relative; z-index: 2; }
.nav-links { display: flex; align-items: center; gap: 4px; font-size: .92rem; font-weight: 500; }
.nav-links a:not(.btn) { padding: 9px 14px; border-radius: 999px; color: rgba(255,255,255,.8); transition: color .3s, background .3s; }
.nav-links a:not(.btn):hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-links .btn { margin-left: 10px; }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .3s, top .3s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 26px; }
.nav.open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* Portada: video a pantalla completa con degradado negro para que el texto se lea */
.hero { position: relative; display: flex; align-items: flex-end; height: 100svh; min-height: 560px; padding: 0 var(--gutter) clamp(56px, 11vh, 112px); overflow: hidden; isolation: isolate; background: #000; }
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.42) 32%, rgba(0,0,0,.08) 62%, rgba(0,0,0,0) 80%),
    linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 50%, rgba(10,10,11,.75) 82%, var(--bg) 100%); }
.hero-content { width: 100%; max-width: var(--max); margin: 0 auto; }
.hero h1 { display: grid; justify-items: start; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: clamp(.9rem, 1.1vw, 1.05rem); font-weight: 500; color: rgba(255,255,255,.8); }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.display { max-width: 11ch; font-size: clamp(3rem, 7.2vw, 7rem); line-height: .96; letter-spacing: -0.055em; text-shadow: 0 2px 40px rgba(0,0,0,.35); }
.display em { color: rgba(255,255,255,.55); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* Entrada del texto al cargar */
.hero .kicker, .hero .display, .hero-ctas { animation: rise 1.1s var(--ease) both; }
.hero .display { animation-delay: .15s; }
.hero-ctas { animation-delay: .35s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Secciones: un título corto y el contenido visual */
.section { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(96px, 12vw, 160px) var(--gutter) 0; }
.section-title { margin-bottom: clamp(28px, 4vw, 48px); font-size: clamp(2.6rem, 6.4vw, 5.6rem); letter-spacing: -0.055em; }

/* Montefiori: el video principal se abre a todo el ancho al bajar; las tomas se deslizan de lado */
.feature { --p: 0; margin-inline: calc(50% - 50vw); }
.feature .clip { aspect-ratio: auto; height: min(88vh, 56.25vw); border-radius: calc((1 - var(--p)) * var(--radius));
  clip-path: inset(0 calc((1 - var(--p)) * max(var(--gutter), (100vw - var(--max)) / 2)) round calc((1 - var(--p)) * var(--radius))); }
.feature .clip video { transform: scale(calc(1.12 - var(--p) * .12)); transition: none; }
.feature .play { width: clamp(72px, 8vw, 104px); height: clamp(72px, 8vw, 104px); }
/* Degradados que funden el video con el fondo; desaparecen mientras se ve con sonido */
.feature-clip::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--p); transition: opacity .4s;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(10,10,11,0) 16%, rgba(10,10,11,0) 74%, var(--bg) 100%); }
.feature-clip { cursor: default; }
.feature-clip.playing::after, .feature-clip.playing .play { opacity: 0; pointer-events: none; }
.feature-clip .play { z-index: 2; transition: transform .4s var(--ease), opacity .3s; }
.feature-clip .play:hover { transform: translate(-50%, -50%) scale(1.08); }
/* Las tomas se desvanecen hacia los bordes de la pantalla */
.hscroll.on .hscroll-sticky::before, .hscroll.on .hscroll-sticky::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; width: 14vw; pointer-events: none; }
.hscroll.on .hscroll-sticky::before { left: 0; background: linear-gradient(90deg, var(--bg), rgba(10,10,11,0)); }
.hscroll.on .hscroll-sticky::after { right: 0; background: linear-gradient(270deg, var(--bg), rgba(10,10,11,0)); }

/* Franja de clientes */
.brands { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--gutter) 0; display: flex; align-items: center; flex-wrap: wrap; gap: 20px 48px; }
.brands p { color: var(--dim); font-size: .95rem; }
.brands ul { display: flex; align-items: center; flex-wrap: wrap; gap: 20px clamp(32px, 5vw, 72px); }
.title-brand { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); }
.title-brand img { width: auto; height: .95em; }
.brands img { width: auto; opacity: .7; transition: opacity .3s; }
.brands a:hover img { opacity: 1; }
/* Mismo peso visual: el sello alto va más grande y el texto grueso de Gauss, más bajo */
.logo-montefiori img { height: clamp(44px, 4vw, 58px); }
.logo-clinident img { height: clamp(30px, 2.8vw, 40px); }
.logo-gauss img { height: clamp(18px, 1.7vw, 24px); }
.client-logo.logo-clinident { height: clamp(38px, 3.6vw, 50px); }
.client-logo.logo-gauss { height: clamp(22px, 2.2vw, 30px); }
.clip { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--surface); cursor: zoom-in; }
.clip video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hscroll-track .clip:hover video { transform: scale(1.03); }
.hscroll { margin-top: clamp(16px, 2vw, 24px); }
.hscroll-track { display: flex; gap: clamp(12px, 1.4vw, 20px); }
.hscroll-track > li { flex: 0 0 min(72vw, 1100px); }
/* Computador: la galería queda fija y avanza de lado con el scroll (main.js activa .on) */
.hscroll.on { margin-inline: calc(50% - 50vw); }
.hscroll.on .hscroll-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hscroll.on .hscroll-track { padding-inline: max(var(--gutter), (100vw - var(--max)) / 2); will-change: transform; }
.hscroll.on .hscroll-track > li { transform: scale(calc(.9 + var(--f, 1) * .1)); opacity: calc(.45 + var(--f, 1) * .55); transition: transform .3s, opacity .3s; }

/* Fotografía */
.client h3 { margin-bottom: 18px; }
.client-logo { width: auto; height: clamp(34px, 3.4vw, 46px); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.photo { display: block; width: 100%; overflow: hidden; border-radius: var(--radius); background: var(--surface); cursor: zoom-in; }
.photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; transition: transform 1.2s var(--ease); }
.photo:hover img { transform: scale(1.03); }

/* Reel */
.reel { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.reel img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.reel:hover img { transform: scale(1.03); }
.play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: clamp(64px, 8vw, 96px); height: clamp(64px, 8vw, 96px); border-radius: 50%; background: rgba(255,255,255,.92); transform: translate(-50%, -50%); transition: transform .4s var(--ease), background .3s; }
.play svg { width: 34%; height: 34%; margin-left: 6%; fill: var(--bg); }
.reel:hover .play { transform: translate(-50%, -50%) scale(1.08); background: #fff; }

/* Servicios: solo los nombres */
.svcs { display: flex; flex-wrap: wrap; gap: 12px; }
.svc { display: inline-flex; align-items: center; gap: 14px; padding: 18px 26px; border-radius: 999px; background: var(--bg-2); font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; transition: background .3s, color .3s; }
.svc span { color: var(--dim); transition: transform .3s var(--ease), color .3s; }
.svc:hover { background: var(--ink); color: var(--bg); }
.svc:hover span { color: var(--bg); transform: translateX(4px); }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-info { display: grid; gap: 16px; }
.contact-mail { justify-self: start; font-size: clamp(1.6rem, 3.2vw, 2.8rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; word-break: break-word; transition: color .3s; }
.contact-mail:hover { color: var(--blue-soft); }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); }
.contact-links a:hover { color: var(--ink); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: var(--bg-2); }
.field { display: grid; gap: 6px; }
.field-full, .contact-form .field:nth-of-type(3) { grid-column: 1 / -1; }
.field label { font-size: .85rem; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .3s; }
.field ::placeholder { color: #57575a; }
.field select { appearance: none; cursor: pointer; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a1a1a6' stroke-width='1.5'/%3E%3C/svg%3E") right 16px center no-repeat; }
.field select option { background: var(--bg-2); color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-soft); }
.form-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.form-note { font-size: .82rem; color: var(--dim); }
.form-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.form-btns .btn svg { width: 18px; height: 18px; }
.check { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 12px; font-size: .84rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 2px; border: 1px solid var(--line-strong); border-radius: 5px; cursor: pointer; }
.check input:checked { background: var(--blue); border-color: var(--blue); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Pie de página */
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; max-width: calc(var(--max) + 2 * var(--gutter)); margin: clamp(96px, 12vw, 160px) auto 0; padding: 32px var(--gutter); font-size: .85rem; color: var(--dim); }
.footer a { color: var(--muted); transition: color .2s; }
.footer a:hover { color: var(--ink); }
.wordmark { display: flex; align-items: baseline; font-family: var(--logo); font-size: 1.2rem; font-weight: 800; line-height: .8; letter-spacing: -0.04em; color: var(--ink); }
.wordmark .logo-dot { width: .22em; height: .22em; margin-right: .04em; }

/* Reproductor y visor */
.lightbox { width: min(1280px, calc(100vw - 24px)); max-height: 90vh; margin: auto; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(0,0,0,.94); backdrop-filter: blur(6px); }
.lightbox video { width: 100%; max-height: 86vh; border-radius: 14px; background: #000; }
.lightbox.is-photo { width: fit-content; }
.lightbox img { display: block; width: auto; height: auto; max-width: calc(100vw - 24px); max-height: 88vh; border-radius: 14px; }
.lightbox-close { position: fixed; top: 12px; right: 14px; width: 48px; height: 48px; font-size: 2.2rem; line-height: 1; color: #fff; }

/* Página legal */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(120px, 14vw, 160px) var(--gutter) 0; line-height: 1.7; color: var(--muted); }
.legal h1 { margin-bottom: 8px; font-size: clamp(2rem, 5vw, 3.2rem); color: var(--ink); }
.legal-date { font-size: .9rem; color: var(--dim); }
.legal h2 { margin: 40px 0 12px; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink); }
.legal p + p { margin-top: 12px; }
.legal ul { display: grid; gap: 6px; padding-left: 1.2em; list-style: disc; }
.legal strong { color: var(--ink); }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal + .footer { margin-top: 96px; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; box-shadow: 0 8px 24px rgba(0,0,0,.4); transition: transform .3s var(--ease), opacity .3s; }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float.off { opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Tableta y celular */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav { padding-block: 12px; }
  .nav.scrolled { background: rgba(10,10,11,.94); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-toggle { display: block; z-index: 2; }
  .nav-links { position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 0 var(--gutter); background: var(--bg); font-size: 2.2rem; letter-spacing: -0.04em; opacity: 0; pointer-events: none; transition: opacity .35s; }
  .nav-links a:not(.btn) { padding: 4px 0; color: var(--ink); }
  .nav-links a:not(.btn):hover { background: none; }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-links .btn { margin: 20px 0 0; height: 52px; font-size: 1rem; }
  .contact { grid-template-columns: 1fr; }
  /* Las tomas pequeñas y las fotos se deslizan de lado, de borde a borde */
  .hscroll-track, .gallery { display: flex; gap: 10px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .hscroll-track::-webkit-scrollbar, .gallery::-webkit-scrollbar { display: none; }
  .hscroll-track > li { flex: 0 0 86%; scroll-snap-align: start; }
  .feature .clip { height: auto; aspect-ratio: 4 / 5; }
  .gallery > li { flex: 0 0 80%; scroll-snap-align: start; }
}
@media (max-width: 560px) {
  :root { --radius: 14px; }
  .svcs { display: grid; gap: 8px; }
  .svc { justify-content: space-between; width: 100%; padding: 18px 22px; border-radius: 16px; font-size: 1.15rem; }
  .hero::after { background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,.1) 42%, rgba(10,10,11,.82) 74%, var(--bg) 100%); }
  .display { font-size: clamp(2.7rem, 13vw, 3.6rem); }
  .contact-form { grid-template-columns: 1fr; padding: 18px; }
  .form-btns, .form-btns .btn { width: 100%; }
  .footer { flex-direction: column; align-items: flex-start; }
}

/* ===== Rediseño atrevido: tipografía enorme, fondo negro y tomas apiladas ===== */
.azul { color: var(--blue); }

/* Títulos enormes, siempre a la izquierda */
.mega { font-size: clamp(3.2rem, 10vw, 11rem); font-weight: 700; line-height: .9; letter-spacing: -0.06em; text-transform: uppercase; }
.titulo { margin-bottom: clamp(28px, 4vw, 56px); font-size: clamp(3rem, 9vw, 9rem); font-weight: 700; line-height: .9; letter-spacing: -0.06em; text-transform: uppercase; }
.title-brand img { height: .8em; }

/* Portada */
.hero .kicker { margin-bottom: 20px; }
.hero .mega { max-width: 12ch; margin-bottom: clamp(28px, 4vh, 44px); text-shadow: 0 4px 60px rgba(0,0,0,.4); }
.hero .mega .azul { color: var(--blue); }
.hero .kicker, .hero .mega, .hero .btn { animation: rise 1.2s var(--ease) both; }
.hero .mega { animation-delay: .12s; }
.hero .btn { animation-delay: .3s; }

/* Palabras enormes que se desplazan con el scroll */
.bloque { overflow: hidden; padding: clamp(80px, 12vw, 180px) 0; }
.linea { white-space: nowrap; font-size: clamp(3.4rem, 11vw, 12rem); font-weight: 700; line-height: 1; letter-spacing: -0.06em; text-transform: uppercase; will-change: transform; }
.linea + .linea { color: rgba(255,255,255,.35); }

/* Bento: cuadrícula con piezas grandes y pequeñas, todo visible de un vistazo */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(160px, 20vw, 300px); gap: clamp(10px, 1vw, 16px); }
.bento > li { min-height: 0; }
.bento .clip, .bento .photo { height: 100%; aspect-ratio: auto; }
.bento .photo img { height: 100%; aspect-ratio: auto; }
.bento-6 { margin-top: clamp(16px, 2vw, 24px); }
/* 6 tomas: grande arriba a la izquierda y grande abajo a la derecha */
.bento-6 > li:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.bento-6 > li:nth-child(5) { grid-column: 2 / 4; grid-row: 3 / 5; }
/* 3 fotos: una grande y dos al lado */
.bento-3 { grid-auto-rows: clamp(180px, 22vw, 340px); }
.bento-3 > li:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }

/* Servicios: palabras enormes */
.svcs { display: block; }
.svc { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: clamp(10px, 1.6vw, 20px) 0; border-radius: 0; background: none; font-size: clamp(2.8rem, 8vw, 8rem); font-weight: 700; line-height: 1; letter-spacing: -0.06em; text-transform: uppercase; color: rgba(255,255,255,.28); transition: color .35s; }
.svc i { font-style: normal; font-size: .6em; opacity: 0; transform: translateX(-20px); transition: opacity .35s, transform .5s var(--ease); }
.svc:hover { background: none; color: #fff; }
.svc:hover span { color: inherit; transform: none; }
.svc:hover i { opacity: 1; transform: none; color: var(--blue); }

/* Contacto */
#contacto .mega { margin-bottom: clamp(40px, 6vw, 80px); }
#contacto .contact-mail { font-size: clamp(2rem, 5vw, 4.4rem); font-weight: 700; letter-spacing: -0.05em; }
#contacto .contact-form { background: rgba(0,0,0,.18); }
#contacto .field input, #contacto .field select, #contacto .field textarea { background: rgba(0,0,0,.25); border-color: rgba(255,255,255,.2); }

@media (max-width: 820px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; grid-auto-flow: dense; gap: 8px; }
  .bento > li:nth-child(1), .bento-6 > li:nth-child(5) { grid-column: 1 / -1; grid-row: span 2; }
  .bento-3 { display: grid; margin: 0; padding: 0; overflow: visible; }
  .bento-3 > li { flex: none; }
  .svc { font-size: clamp(2.4rem, 12vw, 4rem); }
  .svc i { opacity: 1; transform: none; color: rgba(255,255,255,.5); }
}
@media (prefers-reduced-motion: reduce) {
}

/* Portada en computador: texto a la izquierda sobre negro y el video a la derecha.
   El video se desvanece con una máscara (no hay borde), así la transición al negro es continua */
@media (min-width: 821px) {
  .hero { align-items: center; padding: 96px var(--gutter) 64px; }
  .hero-video { left: auto; right: 0; width: 60vw;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.03) 8%, rgba(0,0,0,.12) 16%, rgba(0,0,0,.28) 24%, rgba(0,0,0,.5) 32%, rgba(0,0,0,.72) 40%, rgba(0,0,0,.88) 48%, #000 58%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.03) 8%, rgba(0,0,0,.12) 16%, rgba(0,0,0,.28) 24%, rgba(0,0,0,.5) 32%, rgba(0,0,0,.72) 40%, rgba(0,0,0,.88) 48%, #000 58%); }
  .hero::after { background: linear-gradient(180deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,0) 20%, rgba(10,10,11,0) 72%, rgba(10,10,11,.6) 88%, var(--bg) 100%); }
  .hero { background: var(--bg); }
  .hero-content { max-width: var(--max); }
  .hero .mega { max-width: 9ch; font-size: clamp(3rem, 5.6vw, 6.2rem); line-height: .92; }
}

/* ===== Orden y escala: letras más contenidas y los mismos espacios en toda la página ===== */
.section { padding-top: clamp(96px, 11vw, 150px); }
.titulo { margin-bottom: clamp(24px, 3vw, 40px); font-size: clamp(2.2rem, 4.6vw, 4.2rem); letter-spacing: -0.05em; }
.mega { font-size: clamp(2.4rem, 5vw, 5rem); letter-spacing: -0.05em; }
.linea { font-size: clamp(2.4rem, 6.4vw, 6.4rem); letter-spacing: -0.05em; }
.bloque { padding: clamp(72px, 9vw, 130px) 0; }
.svc { font-size: clamp(1.9rem, 4.2vw, 3.6rem); letter-spacing: -0.045em; padding: clamp(8px, 1vw, 14px) 0; }
#contacto .contact-mail { font-size: clamp(1.6rem, 3.2vw, 2.8rem); }
@media (min-width: 821px) {
  .hero .mega { max-width: 10ch; font-size: clamp(2.6rem, 4.6vw, 5rem); }
}

/* Clientes: cada uno es un caso con su historia y su trabajo */
.caso { position: relative; isolation: isolate; padding: clamp(56px, 7vw, 100px) 0; }
.caso + .caso { margin-top: clamp(24px, 4vw, 56px); }
.caso-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: end; gap: 16px clamp(32px, 6vw, 96px); margin-bottom: clamp(24px, 3vw, 40px); }
.caso-head h3 { display: flex; align-items: center; gap: 16px; font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: -0.035em; }
.caso-head h3 img { width: auto; height: 1.3em; }
/* Clinident: su logo ya dice el nombre, así que el texto queda solo para lectores de pantalla */
#clinident .caso-head h3 img { height: 1.7em; }
#clinident .caso-head h3 span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#gauss .caso-head h3 img { display: none; }
.historia { max-width: 54ch; color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.55; }
.datos { margin-top: 10px; color: var(--dim); font-size: .9rem; }
.caso .feature { margin-bottom: 0; }
.caso .bento-6 { margin-top: clamp(10px, 1vw, 16px); }

@media (max-width: 820px) {
  .caso-head { grid-template-columns: 1fr; align-items: start; }
}

/* ===== Sistema de proporciones: una retícula de 12 columnas, una escala de letras y un ritmo vertical =====
   Ancho de contenido 1240 px. Escala: portada 72 · sección 44 · cliente 28 · texto 17 · pequeño 14 (px).
   Espacios: 128 entre secciones, 96 entre clientes, 40 del título al contenido. */
:root { --max: 1240px; --s-seccion: clamp(80px, 9vw, 128px); --s-cliente: clamp(64px, 7vw, 96px); --s-titulo: clamp(24px, 3vw, 40px); }
.section, .brands, .footer { max-width: calc(var(--max) + 2 * var(--gutter)); }
.section { padding-top: var(--s-seccion); }
.titulo { margin-bottom: var(--s-titulo); font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1; letter-spacing: -0.04em; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.55; max-width: 34ch; }

/* Portada: el único texto realmente grande */
.mega { font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: .95; letter-spacing: -0.05em; }
@media (min-width: 821px) { .hero .mega { max-width: 11ch; font-size: clamp(2.8rem, 5vw, 4.5rem); } }
.hero-content { max-width: var(--max); }

/* Logos de clientes alineados a la retícula */
.brands { padding-top: clamp(48px, 5vw, 72px); }

/* Palabras en movimiento: acompañan, no compiten con los títulos */
.bloque { padding: clamp(56px, 7vw, 96px) 0; }
.linea { font-size: clamp(2.2rem, 5.2vw, 4.5rem); line-height: 1.05; }

/* Clientes */
.caso { padding: var(--s-cliente) 0 0; }
.caso + .caso { margin-top: 0; }
.caso-head { grid-template-columns: 5fr 7fr; margin-bottom: clamp(20px, 2.4vw, 32px); }
.caso-head h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.historia { max-width: 58ch; }
/* El video de Montefiori se queda dentro de la retícula, del mismo ancho que sus tomas */
.caso .feature { margin-inline: 0; --p: 1; }
.caso .feature .clip { height: auto; aspect-ratio: 16 / 9; clip-path: none; border-radius: var(--radius); }
.caso .feature .clip video { transform: none; }
.bento { grid-auto-rows: clamp(130px, 14vw, 200px); }
.bento-3 { grid-auto-rows: clamp(150px, 16vw, 230px); }
#montefiori .bento-6 { padding-inline: 0; }

/* Reel, Servicios y Contacto: título a la izquierda (4 columnas) y contenido a la derecha (8 columnas) */
.split { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s-titulo) clamp(32px, 5vw, 80px); align-items: start; }
.split-head .titulo { margin-bottom: 16px; }
.split .reel { aspect-ratio: 16 / 9; }
.svc { font-size: clamp(1.5rem, 2.6vw, 2.25rem); padding: clamp(10px, 1.2vw, 16px) 0; }
.svcs li:first-child .svc { padding-top: 0; }
#contacto .contact-info { display: grid; gap: 14px; }
#contacto .contact-mail { margin-top: 8px; font-size: clamp(1.3rem, 2vw, 1.75rem); letter-spacing: -0.03em; }
#contacto .contact-links { gap: 6px 20px; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .caso-head { grid-template-columns: 1fr; }
  .bento { grid-auto-rows: 42vw; }
  .lead { max-width: none; }
}
/* El menú y las palabras en movimiento también respetan la retícula y la escala */
.nav { padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2)); }
.linea { font-size: clamp(2rem, 4.4vw, 3.75rem); }

/* Cabecera de cada cliente en una columna: datos pequeños, nombre con logo y la historia en un ancho cómodo */
.caso-head { display: flex; flex-direction: column; align-items: flex-start; gap: 0; max-width: 680px; margin-bottom: clamp(24px, 3vw, 36px); }
.caso-head .datos { order: 0; margin: 0 0 14px; color: var(--muted); font-size: .85rem; letter-spacing: .02em; }
.caso-head h3 { margin-bottom: 14px; }
.caso-head .historia { max-width: 60ch; color: rgba(255,255,255,.72); }

/* Tomas de Montefiori: solo se ven en bucle, sin sonido, sin controles y sin abrirse; el único que se reproduce es el video principal */
.solo-ver { cursor: default; }
.solo-ver video { pointer-events: none; }
.bento .solo-ver:hover video { transform: none; }
