/* Guzi Films · portafolio — built on the brand tokens (guzi-design-system/tokens.css v1.0) */
@font-face { font-family: "CHORUS"; src: url("../fonts/CHORUS-700.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "CHORUS"; src: url("../fonts/CHORUS-900.otf") format("opentype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "PP Editorial Old"; src: url("../fonts/PPEditorialOld-200.otf") format("opentype"); font-weight: 200; font-display: swap; }
@font-face { font-family: "PP Editorial Old"; src: url("../fonts/PPEditorialOld-200-italic.otf") format("opentype"); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: "PP Editorial Old"; src: url("../fonts/PPEditorialOld-400.otf") format("opentype"); font-weight: 400; font-display: swap; }

:root {
  --tinta: #0C0C0D; --papel: #FBFBFB; --niebla: #EBEBEB; --niebla-densa: #D7D7D7; --humo: #818181;
  --oro: #D8B024; --oro-osc: #BE8E1A; --ambar: #DB5F21; --violeta: #5512B3; --violeta-medio: #4811AB; --violeta-noche: #260C49; --violeta-abismo: #1B0B36;
  --grad-fondo: radial-gradient(130% 70% at 20% 8%, rgba(85,18,179,.34), transparent 62%), radial-gradient(90% 55% at 88% 38%, rgba(219,95,33,.16), transparent 66%), #0C0C0D;
  --grad-marca: linear-gradient(112deg, #1B0B36 0%, #2A0D53 26%, #5512B3 54%, #DB5F21 84%, #D8B024 100%);
  --grad-cubo: linear-gradient(158deg, #260C49 0%, #4811AB 100%);
  --display: "CHORUS", "Helvetica Neue", Impact, sans-serif;
  --editorial: "PP Editorial Old", Georgia, "Times New Roman", serif;
  --utilidad: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --track-display: .02em; --track-micro: .04em;
  --borde: rgba(255,255,255,.12); --vidrio: rgba(255,255,255,.06);
  --gutter: clamp(16px, 4vw, 56px); --ancho: 1240px; --radio: 22px;
  --chorus-desc: .21em;   /* measured from the font in main.js; positions the drawn tilde */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grad-fondo); background-attachment: fixed; background-color: var(--tinta); color: var(--papel); font: 400 18px/1.5 var(--utilidad); overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--oro); color: var(--tinta); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 16px; }

/* ---------- type ---------- */
.chorus { font-family: var(--display); font-weight: 700; letter-spacing: var(--track-display); line-height: .92; text-transform: none; margin: 0; }
.t { position: relative; }   /* accented capital: base letter + the brand's drawn tilde (CHORUS has none) */
.t::after { content: ""; position: absolute; left: 50%; bottom: calc(.795em + var(--chorus-desc)); width: .16em; height: .068em; background: currentColor; transform: translateX(-50%) rotate(-22deg); }
.intro { font: italic 200 clamp(22px, 2.4vw, 34px)/1.2 var(--editorial); color: var(--niebla-densa); margin: 0; }
.lead { font: 200 clamp(19px, 1.6vw, 23px)/1.45 var(--editorial); color: var(--niebla-densa); margin: 0; max-width: 46ch; }
.micro { font: 500 14px/1.3 var(--utilidad); letter-spacing: var(--track-micro); color: var(--humo); margin: 0; text-transform: lowercase; }
.humo { color: var(--humo); } .oro { color: var(--oro); } .ambar { color: var(--ambar); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 700 17px/1 var(--utilidad); letter-spacing: .01em; text-decoration: none; cursor: pointer; border: 0; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-oro { background: linear-gradient(180deg, #E4C03A, var(--oro) 55%, var(--oro-osc)); color: var(--tinta); box-shadow: 0 10px 30px rgba(216,176,36,.22); }
.btn-oro:hover { box-shadow: 0 14px 36px rgba(216,176,36,.34); }
.btn-linea { background: transparent; color: var(--papel); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn-linea:hover { box-shadow: inset 0 0 0 1.5px var(--papel); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-xl { min-height: 72px; padding: 0 38px; font-size: clamp(20px, 2.4vw, 28px); }
.btn svg { width: 1.3em; height: 1.3em; fill: currentColor; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 14px var(--gutter); background: rgba(12,12,13,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); }
.marca { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.marca img { height: 31px; width: auto; }
.wordmark { font-size: 26px; line-height: 1; white-space: nowrap; }
.wordmark .chorus { font-size: 1em; }
.wordmark .films { font: 200 .8765em var(--editorial); color: var(--oro); }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { text-decoration: none; font: 500 15px var(--utilidad); color: var(--niebla-densa); letter-spacing: .02em; }
.links a:hover { color: var(--papel); }

/* ---------- hero ---------- */
.hero { max-width: var(--ancho); margin: 0 auto; padding: clamp(40px, 6vw, 84px) var(--gutter) clamp(48px, 6vw, 80px); display: grid; gap: clamp(32px, 4vw, 56px); }
.hero-texto { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 22px clamp(32px, 5vw, 80px); align-items: end; }
.hero-titulo, .hero-lado { display: grid; gap: 22px; }
.titular { font-size: clamp(56px, 8vw, 128px); }
.titular .linea { display: block; }
.acciones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.hero-video { scroll-margin-top: 84px; margin: 0; display: grid; gap: 14px; justify-items: center; }
.pantalla { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--borde), 0 40px 100px rgba(0,0,0,.6), 0 0 140px rgba(85,18,179,.25); }
.pantalla video { width: 100%; height: 100%; object-fit: cover; }
.sonido { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(12,12,13,.55); backdrop-filter: blur(10px); color: var(--papel); font: 600 14px var(--utilidad); cursor: pointer; }
.sonido svg { width: 20px; height: 20px; fill: currentColor; }
.sonido .on { display: none; } .sonido[aria-pressed="true"] .on { display: inline; } .sonido[aria-pressed="true"] .off { display: none; }

/* ---------- cinta (the brand strip) ---------- */
.cinta { border-block: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.25); overflow: hidden; padding: 16px 0; }
.cinta-pista { display: flex; width: max-content; animation: cinta 40s linear infinite; }
.cinta-pista > span { font: 700 clamp(22px, 2.6vw, 34px)/1 var(--display); letter-spacing: var(--track-display); text-transform: uppercase; color: var(--niebla-densa); padding: 0 28px; white-space: nowrap; }
.cinta-pista > span::after { content: "✦"; color: var(--oro); font-size: .5em; margin-left: 56px; vertical-align: .4em; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.seccion { max-width: var(--ancho); margin: 0 auto; padding: clamp(64px, 9vw, 128px) var(--gutter) 0; }
.cabecera { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 48px; align-items: end; margin-bottom: 36px; }
.cabecera h2 { font-size: clamp(54px, 7.5vw, 112px); }
.cabecera .lead { justify-self: end; }

/* ---------- YouTube video (a still + play button until clicked) ---------- */
.cabecera h2 .linea { display: block; }

/* ---------- services ---------- */
.servicios { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.servicio { position: relative; padding: clamp(28px, 3vw, 44px); border-radius: var(--radio); background: var(--vidrio); border: 1px solid var(--borde); display: grid; gap: 16px; align-content: start; overflow: hidden; }
.servicio::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, rgba(85,18,179,.35), transparent 70%); pointer-events: none; }
.servicio .num { font: 700 15px var(--utilidad); color: var(--oro); letter-spacing: .08em; }
.servicio h3 { font-size: clamp(34px, 3.4vw, 50px); }
.servicio p { margin: 0; font: 200 20px/1.45 var(--editorial); color: var(--niebla-densa); }
.pildoras { display: flex; flex-wrap: wrap; gap: 8px; }
.pildoras span { font: 600 14px var(--utilidad); padding: 8px 14px; border-radius: 999px; background: var(--grad-cubo); color: var(--papel); }

/* ---------- objective + manifesto ---------- */
.objetivo, .manifiesto { max-width: var(--ancho); margin: clamp(80px, 11vw, 150px) auto 0; padding: 0 var(--gutter); text-align: center; display: grid; gap: 22px; justify-items: center; }
.tres { font-size: clamp(54px, 10vw, 168px); line-height: .9; }
.tres span { white-space: nowrap; }
.grande { font-size: clamp(90px, 17vw, 260px); line-height: .85; }
.manifiesto .intro, .objetivo .intro { max-width: 30ch; }

/* ---------- process ---------- */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: paso; }
.pasos li { padding: 26px 22px; border-radius: var(--radio); border: 1px solid var(--borde); background: var(--vidrio); display: grid; gap: 10px; align-content: start; }
.pasos .num { font: 700 30px/1 var(--utilidad); color: var(--oro); letter-spacing: .02em; }
.pasos h3 { margin: 0; font: 700 19px/1.2 var(--utilidad); }
.pasos p { margin: 0; font: 200 18px/1.4 var(--editorial); color: var(--niebla-densa); }

/* ---------- contact + footer ---------- */
.contacto { width: min(900px, calc(100% - 2 * var(--gutter))); margin: clamp(90px, 12vw, 170px) auto 0; padding: clamp(48px, 6vw, 80px) var(--gutter); text-align: center; display: grid; justify-items: center; gap: 20px; border-radius: 36px; background: radial-gradient(80% 90% at 50% 0%, rgba(85,18,179,.45), transparent 70%), rgba(255,255,255,.03); border: 1px solid var(--borde); }
.contacto .iso { width: clamp(140px, 18vw, 220px); height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.contacto h2 { font-size: clamp(64px, 11vw, 150px); color: var(--oro); }
.contacto .lead { text-align: center; }
.pie { max-width: var(--ancho); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter) 48px; display: grid; justify-items: center; gap: 12px; text-align: center; }
.pie .lema { margin: 0; font: italic 200 24px var(--editorial); color: var(--niebla-densa); }

/* ---------- floating WhatsApp (phones) ---------- */
.wa-flotante { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: none; place-items: center; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.wa-flotante svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero-texto { grid-template-columns: 1fr; }
  .cabecera { grid-template-columns: 1fr; }
  .cabecera .lead { justify-self: start; }
  .pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wordmark { font-size: 22px; }
  .nav { gap: 12px; }
  .nav .btn { display: none; }
  .wa-flotante { display: grid; }
  .pie { padding-bottom: 104px; }   /* room for the floating WhatsApp button */
  .servicios { grid-template-columns: 1fr; }
  .pasos { grid-template-columns: 1fr; }
  .acciones .btn { flex: 1 1 100%; }
  .pantalla { border-radius: 16px; }
  .sonido { left: 8px; bottom: 8px; padding: 7px; }
  .sonido .txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sonido svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cinta-pista { animation: none; }
  .btn:hover { transform: none; }
}
