/* ==========================================================================
   AUDIOVISUAL — sigue el diseño "INTERFAZ AUDIOVISUAL"
   Primero va la versión apilada (celular y tablet). Desde 1080px, al final,
   cada elemento se coloca en su posición del lienzo de 1933px de ancho.
   ========================================================================== */
.page-audiovisual main { --gold: #fcbf00; --red: #fa4238; --navy: #121a23; --cream: #f7f3ea; }
.av-canvas { position: relative; width: min(100% - var(--gutter) * 2, 760px); margin-inline: auto; }
.av-brick { position: relative; isolation: isolate; background: var(--cream); }
.av-brick::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../assets/img/texturas/ladrillo-av-1400.webp") 0 0 / 900px auto; mix-blend-mode: multiply; opacity: .32;
}
.av-greca { position: absolute; left: 0; right: 0; pointer-events: none; z-index: 2; background-repeat: repeat-x; }
.av-greca--oscura { background-image: url("../assets/img/texturas/greca-av-oscura.svg"); }
.av-greca--amarilla { background-image: url("../assets/img/texturas/greca-av-amarilla.svg"); }
.av-greca--doble { background-image: url("../assets/img/texturas/greca-av-doble.svg"); }
.av-btn {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  background: var(--gold); font-family: var(--f-body); line-height: 1; white-space: nowrap;
  transition: transform .4s var(--ease-out), background .3s, color .3s;
}
.av-btn:hover { transform: translateY(-3px); background: #ff0600; color: #fff; }

/* ---------- Hero ---------- */
.av-hero { position: relative; z-index: 2; isolation: isolate; background: #151515; color: #fff; padding: calc(var(--header-h) + 30px) 0 70px; }
.av-hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.av-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.av-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, var(--navy) 0%, rgba(18, 26, 35, .75) 14%, rgba(18, 26, 35, 0) 48%),
    linear-gradient(90deg, rgba(0, 0, 0, .96) 0%, rgba(0, 0, 0, .74) 26%, rgba(0, 0, 0, .6) 62%, rgba(0, 0, 0, .54) 100%);
}
.av-hero__title { color: var(--gold); font-size: clamp(46px, 12.6vw, 96px); line-height: .95; }
.av-hero__title > span { display: block; }
.av-hero__t2 { font-size: .912em; }
.av-hero__text { margin-top: 24px; font-size: clamp(16px, 4.4vw, 21px); line-height: 1.22; color: var(--cream); }
.av-hero__camera { width: min(62%, 320px); margin: 10px 0 0 auto; }
.av-hero__camera img { width: 100%; animation: cam-float 5s var(--ease-in-out) infinite; }
@keyframes cam-float { 50% { transform: translateY(-12px) rotate(-1.5deg); } }
.av-hero__cta { position: absolute; left: 50%; bottom: -22px; z-index: 3; translate: -50% 0; min-height: 52px; padding: 0 30px; font-size: 21px; color: #da1f26; }
.av-hero .av-greca { bottom: -34px; height: 42px; background-size: auto 100%; }

/* ---------- Luz, cámara y estrategia ---------- */
.av-intro { padding: 86px 0 60px; }
.av-intro__title { color: var(--navy); font-size: clamp(44px, 11.5vw, 82px); line-height: 1.02; }
.av-intro__title > .av-t { display: block; }
.av-intro__title > .av-intro__y { display: inline-block; margin-right: .06em; }
.av-intro__mark { display: none; }
.av-intro__title > .av-intro__est { display: inline-block; font-style: italic; color: var(--gold); background: #ff4438; padding: .04em .24em 0 .14em; clip-path: polygon(7% 0, 100% 0, 95% 100%, 0 100%); }
.av-intro__text { margin-top: 28px; font-size: 16px; line-height: 1.22; color: #383838; }
.av-badges { display: flex; justify-content: center; gap: clamp(14px, 5vw, 40px); margin-top: 28px; text-align: center; }
.av-badges li { display: grid; justify-items: center; gap: 10px; }
.av-badges strong { display: grid; place-items: center; width: 74px; height: 60px; border-radius: 12px; background: #ff4438; color: var(--gold); font-weight: 400; font-size: 36px; line-height: 1; transition: transform .4s var(--ease-out); }
.av-badges li:hover strong { transform: translateY(-5px) rotate(-4deg); }
.av-badges span { font-size: 13px; line-height: 1.2; color: #383838; }

/* ---------- Producción audiovisual ---------- */
.av-prod { position: relative; isolation: isolate; overflow: hidden; background: #000; color: #fff; text-align: center; padding: 52px 0 44px; }
.av-prod .av-canvas { position: static; }
.av-prod__bg { position: absolute; z-index: -1; inset: 0; }
.av-prod__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.av-prod__title { font-size: clamp(36px, 9vw, 64px); }
.av-prod__text { margin: 20px 0 28px; font-size: 17px; line-height: 1.22; color: var(--cream); }
.av-services { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; font-size: 18px; line-height: .9; }
.av-services li { transition: color .3s; }
.av-services li:hover { color: var(--gold); }

/* ---------- Galería de trabajos ---------- */
.av-gal { padding: 52px 0 76px; }
.av-gal__icon { width: 54px; height: auto; margin-bottom: 10px; }
.av-gal__title { color: #ff4438; font-size: clamp(36px, 9vw, 64px); margin-bottom: 26px; }
.av-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(110px, 26vw, 170px); gap: 10px; }
.g-item__btn { background: var(--gold); }
.g-item__btn { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 14px; text-align: left; }
.g-item__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter .5s; }
.g-item__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.75), rgba(0,0,0,0) 55%); opacity: .55; transition: opacity .4s; }
.g-item__info { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; transform: translateY(8px); transition: transform .5s var(--ease-out); }
.g-item__info strong { display: block; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(18px, 1.6vw, 24px); line-height: 1; }
.g-item__info span { font-size: 13px; color: var(--c-yellow); }
.g-item__btn:hover img { transform: scale(1.07); }
.g-item__btn:hover::after { opacity: 1; }
.g-item__btn:hover .g-item__info { transform: none; }

/* Las fotos se ven limpias, como en el diseño; el nombre aparece al pasar el cursor o enfocar */
.av-grid .g-item__btn::after, .av-grid .g-item__info { opacity: 0; transition: opacity .4s, transform .5s var(--ease-out); }
.av-grid .g-item__btn:hover::after, .av-grid .g-item__btn:focus-visible::after,
.av-grid .g-item__btn:hover .g-item__info, .av-grid .g-item__btn:focus-visible .g-item__info { opacity: 1; }
.av-grid .g-item__btn:focus-visible .g-item__info { transform: none; }
/* Al mostrar el nombre se oscurece todo el cuadro para que el texto blanco resalte */
.av-grid .g-item__btn::after { background: rgba(0,0,0,.72); }

/* Portadas de video: recorte y logos (el nombre aparece al pasar el cursor, como en las fotos) */
.g-item__play { display: none; }
.av-grid .g-item__btn img { object-position: 50% 35%; }
.av-grid .g-item__btn--logo img { object-fit: contain; object-position: center; padding: 3%; }
.av-grid .g-item__btn--claro { background: #fff; }
.av-grid .g-item__btn--oscuro { background: #000; }

/* En celular (2 columnas), si sobra un cuadro ocupa la fila completa */
@media (max-width: 640px) { .av-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* Portadas compuestas: sello circular, y foto con la marca encima */
.av-grid .g-item__btn--sello img { object-fit: contain; object-position: center; padding: 0; }
.av-grid .g-item__btn .g-item__marca { position: absolute; transform: none; }
.av-grid .g-item__btn--honda > img:first-child { object-position: 75% 45%; }
.av-grid .g-item__btn--honda .g-item__marca { left: 50%; top: 50%; translate: -50% -50%; width: auto; height: 42%; object-fit: contain; filter: brightness(0) invert(1) drop-shadow(0 3px 10px rgba(0,0,0,.6)); }
.av-grid .g-item__btn--honda > img:first-child { filter: brightness(.6); }
@media (max-width: 640px) { .av-grid .g-item__btn--honda .g-item__marca { height: 32%; } }
.av-grid .g-item__btn--villa > img:first-child { object-position: 50% 45%; filter: brightness(.5); }
.av-grid .g-item__btn--villa .g-item__marca { left: 50%; top: 50%; translate: -50% -50%; width: 70%; height: 66%; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.av-grid .g-item__btn--rotulo img { filter: brightness(.5); }
.g-item__rotulo { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(20px, 2.2vw, 40px); line-height: 1; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.av-grid .g-item__btn--chan { background: #e8601a; isolation: isolate; }
.av-grid .g-item__btn--chan > img:first-child { filter: grayscale(.7) brightness(1.05); mix-blend-mode: multiply; }
.av-grid .g-item__btn--chan .g-item__marca { left: 50%; top: 50%; translate: -50% -50%; width: 72%; height: 70%; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.av-grid .g-item__btn--bodas > img:first-child { filter: brightness(.5); }
.av-grid .g-item__btn--bodas .g-item__marca { inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; }

/* Visor (lightbox) */
.lightbox { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; background: transparent; color: #fff; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lb-in .45s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } }
.lightbox__stage { display: flex; align-items: center; justify-content: center; gap: 12px; }
.lightbox__stage .lightbox__btn { flex: none; }
.lightbox__btn[hidden] { display: none; }
.lightbox__frame { flex: 0 1 auto; width: min(400px, 100%); height: min(711px, 76vh); border-radius: 12px; overflow: hidden; background: #000; }
.lightbox__frame[data-shape="h"] { width: min(960px, 100%); height: auto; aspect-ratio: 16 / 9; }
.lightbox__frame[data-shape="ig"] { background: #fff; }
.lightbox__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) { .lightbox__stage { gap: 4px; } .lightbox__stage .lightbox__btn { width: 34px; height: 34px; } }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.lightbox__cap strong { display: block; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 24px; line-height: 1; }
.lightbox__cap span { color: var(--c-yellow); font-size: 14px; }
.lightbox__nav { display: flex; align-items: center; gap: 10px; }
.lightbox__count { font-family: var(--f-display); font-size: 17px; margin-right: 6px; }
.lightbox__btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #000; transition: background .3s, color .3s; }
.lightbox__btn:hover { background: var(--c-yellow); }
.lightbox__btn svg { width: 18px; }
.lightbox__close { position: absolute; top: -56px; right: 0; background: var(--c-red); color: #fff; }

/* ---------- De la idea a la pantalla ---------- */
.av-proc { position: relative; isolation: isolate; z-index: 1; background: var(--gold); padding: 44px 0 56px; }
.av-proc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../assets/img/texturas/cortina.webp") 0 0 / 620px auto; mix-blend-mode: multiply; opacity: .6; }
.av-proc .av-greca { top: -29px; height: 58px; background-size: auto 100%; }
.av-proc__title { color: #000; font-size: clamp(34px, 8.6vw, 60px); line-height: 1; margin-bottom: 28px; }
.av-proc__title em { font-style: italic; color: var(--red); }
.av-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 18px; }
.av-steps li { display: grid; grid-template-columns: auto 1fr; align-items: center; align-content: start; gap: 12px 10px; }
.av-steps__num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--red); color: #fff; font-size: 30px; line-height: 1; }
.av-steps h3 { font-weight: 400; font-size: clamp(22px, 6vw, 34px); line-height: 1; color: #000; }
.av-steps p { grid-column: 1 / -1; font-size: 13px; line-height: 1.22; color: #383838; }
.av-steps p br { display: none; }

/* ---------- Paquetes de audiovisual ---------- */
.av-packs { position: relative; isolation: isolate; overflow: hidden; background: #1d1d1b; padding: 52px 0 90px; }
.av-packs__bg { position: absolute; inset: 0; z-index: -1; }
.av-packs__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.av-packs__title { text-align: center; color: var(--gold); font-size: clamp(40px, 10vw, 72px); line-height: .9; margin-bottom: 30px; }
.av-packs__title > span { display: block; }
.av-packs__t2 { color: #fff; }
.av-packs__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 360px; margin-inline: auto; }
.av-packs__list li { min-width: 0; }
.av-packs__list > li { display: flex; }
.av-pack { --name: #1a9e82; display: flex; flex-direction: column; width: 100%; border-radius: 22px; background: #da1f26; overflow: hidden; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.av-pack:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.av-pack__body { flex: 1; display: flex; flex-direction: column; background: #fff; color: #da1f26; padding: 18px 14px 14px; font-weight: 700; }
.av-pack__name { text-align: center; text-transform: none; color: var(--name); font-size: 32px; line-height: 1; margin-bottom: 14px; }
.av-pack ul { display: grid; gap: 7px; font-size: 12.5px; line-height: 1.15; margin-bottom: 14px; }
.av-pack__time { margin-top: auto; text-align: center; font-size: 13px; }
.av-pack__foot { display: flex; align-items: center; justify-content: center; min-height: 46px; background: #da1f26; color: #fff; font-size: 20px; text-transform: none; line-height: 1; transition: background .3s, color .3s; }
.av-pack__foot:hover { background: #000; color: #fff; }
.av-pack--intermedio { --name: #a87e00; }
.av-pack--avanzado { --name: #da1f26; }

/* ---------- Cierre ---------- */
.av-cta { padding: 64px 0 48px; text-align: center; }
.av-cta .av-greca { top: -29px; height: 58px; background-size: auto 100%; }
.av-cta .av-canvas { display: grid; justify-items: center; }
.av-cta__glyph { width: 36px; height: auto; }
.av-cta__title { margin: 20px 0 22px; color: #fbbe02; font-size: clamp(34px, 9vw, 62px); line-height: 1; }
.av-cta__title > * { display: block; }
.av-cta__t2 { font-style: italic; color: var(--red); font-size: 1.3em; margin-top: .1em; }
.av-cta__btn { min-height: 52px; padding: 0 30px; margin-bottom: 24px; font-weight: 700; font-size: 20px; color: #000; background: #fbbe02; }

@media (min-width: 700px) and (max-width: 1079px) {
  .av-packs__list { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
}
@media (min-width: 641px) and (max-width: 1079px) {
  .av-hero__camera { margin-top: -90px; }
  .av-services { grid-template-columns: repeat(3, 1fr); }
  .av-grid { grid-template-columns: repeat(3, 1fr); }
  .av-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .av-steps { grid-template-columns: 1fr; }
  .av-steps p br { display: inline; }
}

/* ==========================================================================
   Escritorio: lienzo de 1933px. --u es un píxel del diseño; en cada texto
   --x es la posición, --y la línea base (desde el inicio de su sección),
   --fs el tamaño de letra y --lh el interlineado.
   ========================================================================== */
@media (min-width: 1080px) {
  .page-audiovisual main {
    --u: clamp(.55px, calc(100vw / 1933), 1px);
    --ox: max(0px, calc((100vw - 1933px) / 2));
    --kn: .7;   /* borde superior → línea base en Nexa Slab */
    --ka: .747; /* borde superior → línea base en Answer */
  }
  .av-canvas { width: calc(1933 * var(--u)); height: 100%; }
  .av-prod .av-canvas { position: relative; }
  .av-brick::before { background-size: calc(1923 * var(--u)) auto; }
  .av-t { --k: var(--kn); }
  .av-t.display, .display .av-t, .av-proc__title, .av-prod__title { --k: var(--ka); }
  .page-audiovisual main .av-t {
    position: absolute; margin: 0; white-space: nowrap; line-height: var(--lh, 1);
    font-size: calc(var(--fs) * var(--u));
    left: calc(var(--x) * var(--u));
    top: calc((var(--y) - (var(--k) + (var(--lh, 1) - 1) / 2) * var(--fs)) * var(--u));
  }

  /* Contenedores animados: ocupan todo el lienzo para que sus hijos no salten al aparecer */
  .av-intro__title.reveal, .av-intro__copy, .av-services, .av-steps li { position: absolute; inset: 0; margin: 0; }

  /* Hero */
  .av-hero { height: calc(1278.5 * var(--u)); padding: 0; }
  .av-hero__bg img { position: absolute; left: 50%; top: calc(-82 * var(--u)); width: max(100%, calc(1994 * var(--u))); height: auto; max-width: none; translate: -50% 0; }
  .av-hero__title, .av-intro__title, .av-packs__title, .av-cta__title { font-size: 0; line-height: 0; margin: 0; }
  .av-hero__t1 { --x: 190.9; --y: 536.4; --fs: 180.48; }
  .av-hero__t2 { --x: 185.4; --y: 692.1; --fs: 164.57; }
  .page-audiovisual main .av-hero__text { --x: 210.6; --y: 831.3; --fs: 31.37; --lh: 1.2; }
  .av-hero__camera { position: absolute; left: calc(1143 * var(--u)); top: calc(269.5 * var(--u)); width: calc(662.7 * var(--u)); margin: 0; }
  .av-hero__cta { left: calc(763 * var(--u)); top: calc(1210 * var(--u)); bottom: auto; translate: none; width: calc(431 * var(--u)); min-height: 0; height: calc(90 * var(--u)); padding: 0; font-size: calc(44.09 * var(--u)); }
  .av-hero .av-greca { top: calc(1232.8 * var(--u)); bottom: auto; height: calc(84 * var(--u)); background-size: calc(122.7 * var(--u)) 100%; background-position: calc(var(--ox) - 44.2 * var(--u)) 0; }

  /* Luz, cámara y estrategia */
  .av-intro { height: calc(574.5 * var(--u)); padding: 0; }
  .av-brick.av-intro::before { background-position: calc(var(--ox) - 25 * var(--u)) calc(-92 * var(--u)); }
  .av-intro__title > .av-t { display: block; }
  .av-intro__l1 { --x: 183.1; --y: 247.2; --fs: 117.95; }
  .av-intro__title > .av-intro__y { --x: 183.1; --y: 348.7; --fs: 117.95; margin: 0; }
  .av-intro__title > .av-intro__est { --x: 305.9; --y: 348.7; --fs: 117.95; background: none; padding: 0; clip-path: none; z-index: 1; }
  .av-intro__mark { display: block; position: absolute; left: calc(243.8 * var(--u)); top: calc(258.6 * var(--u)); width: calc(630.6 * var(--u)); height: calc(102.3 * var(--u)); background: #ff4438; clip-path: polygon(6% 0, 100% 0, 95.4% 100%, 0 100%); transform-origin: left; animation: av-mark 1s var(--ease-out) .3s both; }
  .page-audiovisual main .av-intro__text { --x: 1016.8; --y: 162.9; --fs: 23.84; --lh: 1.2; width: calc(463.5 * var(--u)); }
  .av-intro__text > span { display: block; }
  .av-intro__text > .is-just { text-align-last: justify; }
  .av-badges { display: block; margin: 0; }
  .av-badges li { position: absolute; display: block; top: calc(303.5 * var(--u)); width: calc(99 * var(--u)); }
  .av-badges li:nth-child(1) { left: calc(1023 * var(--u)); }
  .av-badges li:nth-child(2) { left: calc(1192 * var(--u)); }
  .av-badges li:nth-child(3) { left: calc(1356 * var(--u)); width: calc(104 * var(--u)); }
  .av-badges strong { width: 100%; height: calc(82 * var(--u)); border-radius: calc(16 * var(--u)); font-size: calc(51.57 * var(--u)); }
  .av-badges span { position: absolute; left: 50%; translate: -50% 0; top: calc(95 * var(--u)); white-space: nowrap; font-size: calc(20.34 * var(--u)); }

  /* Producción */
  .av-prod { height: calc(463 * var(--u)); padding: 0; }
  .av-prod__bg { inset: auto; left: calc(-396 * var(--u)); top: calc(-179 * var(--u)); width: calc(1672 * var(--u)); height: calc(941 * var(--u)); }
  .av-prod__bg img { opacity: 1; }
  .av-prod__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .12) 45%, rgba(0, 0, 0, .78) 72%, #000 96%); }
  .page-audiovisual main .av-prod__title { --x: 523.6; --y: 122.7; --fs: 91.4; width: calc(1000 * var(--u)); }
  .page-audiovisual main .av-prod__text { --x: 484; --y: 215.9; --fs: 31.37; --lh: 1.2; width: calc(1000 * var(--u)); }
  .av-services { display: block; font-size: calc(30.4 * var(--u)); line-height: .86; }
  .av-services li { position: absolute; top: calc((378.4 - (var(--ka) - .07) * 30.4) * var(--u)); left: calc((var(--cx) - 130) * var(--u)); width: calc(260 * var(--u)); white-space: nowrap; }
  .av-services li:nth-child(1) { --cx: 208.9; }
  .av-services li:nth-child(2) { --cx: 483; }
  .av-services li:nth-child(3) { --cx: 778.5; }
  .av-services li:nth-child(4) { --cx: 1077.5; }
  .av-services li:nth-child(5) { --cx: 1366; }
  .av-services li:nth-child(6) { --cx: 1651; }
  .av-services li + li::before { content: ""; position: absolute; width: calc(10 * var(--u)); height: calc(75.2 * var(--u)); background: #fff; clip-path: polygon(0 5.7%, 100% 0, 100% 90.8%, 0 100%); top: calc((344 - 378.4 + (var(--ka) - .07) * 30.4) * var(--u)); left: calc((var(--sx) - var(--cx) + 130) * var(--u)); }
  .av-services li:nth-child(2) { --sx: 339.7; }
  .av-services li:nth-child(3) { --sx: 609.2; }
  .av-services li:nth-child(4) { --sx: 914; }
  .av-services li:nth-child(5) { --sx: 1204; }
  .av-services li:nth-child(6) { --sx: 1500; }

  /* Galería */
  .av-gal { padding: 0 0 calc(150 * var(--u)); }
  .av-brick.av-gal::before { background-position: calc(var(--ox) + 2.7 * var(--u)) calc(-110 * var(--u)); }
  .av-gal .av-canvas { padding-top: calc(225 * var(--u)); }
  .av-gal__icon { position: absolute; left: calc(138 * var(--u)); top: calc(87 * var(--u)); width: calc(112 * var(--u)); margin: 0; }
  .page-audiovisual main .av-gal__title { --x: 275.9; --y: 158.2; --fs: 91.4; }
  .av-grid { position: relative; margin-left: calc(147 * var(--u)); top: 0; width: calc(1691 * var(--u)); grid-template-columns: 261fr 118fr 404fr 404fr 118fr 261fr; grid-auto-rows: calc(193 * var(--u)); gap: calc(25 * var(--u)); }
  /* Mosaico: el patrón de anchos se repite cada 12 cuadros */
  .av-grid li:nth-child(12n + 1), .av-grid li:nth-child(12n + 4),
  .av-grid li:nth-child(12n + 6), .av-grid li:nth-child(12n + 7),
  .av-grid li:nth-child(12n + 9), .av-grid li:nth-child(12n) { grid-column: span 2; }
  /* Con 9 proyectos: filas de 4, 3 y 2 cuadros, sin huecos */
  .av-grid:has(> li:first-child:nth-last-child(9)) { grid-template-columns: repeat(12, 1fr); }
  .av-grid li:first-child:nth-last-child(9), .av-grid li:first-child:nth-last-child(9) ~ li { grid-column: span 3; }
  .av-grid li:first-child:nth-last-child(9) ~ li:nth-child(n + 5) { grid-column: span 4; }
  .av-grid li:first-child:nth-last-child(9) ~ li:nth-child(n + 8) { grid-column: span 6; }
  .av-grid .g-item__btn { border-radius: calc(30 * var(--u)); }

  /* De la idea a la pantalla */
  .av-proc { height: calc(502 * var(--u)); padding: 0; }
  .av-proc::before { background-size: calc(699 * var(--u)) auto; background-position: calc(var(--ox) - 44 * var(--u)) calc(-7 * var(--u)); }
  .av-proc .av-greca { top: calc(-57 * var(--u)); height: calc(116 * var(--u)); background-size: calc(162 * var(--u)) 100%; background-position: calc(var(--ox) - 21.3 * var(--u)) 0; }
  .page-audiovisual main .av-proc__title { --x: 133.4; --y: 140.3; --fs: 91.4; }
  .av-steps { display: block; }
  .av-steps li { display: block; pointer-events: none; }
  .av-steps__num { position: absolute; top: calc(248 * var(--u)); left: calc(var(--n) * var(--u)); width: calc(71 * var(--u)); height: calc(71 * var(--u)); border-radius: calc(20 * var(--u)); font-size: calc(59.84 * var(--u)); }
  .av-steps h3 { position: absolute; left: calc(var(--h) * var(--u)); top: calc((306 - var(--ka) * 66.34) * var(--u)); font-size: calc(66.34 * var(--u)); white-space: nowrap; }
  .av-steps p { position: absolute; left: calc(var(--p) * var(--u)); top: calc((var(--py, 382.8) - (var(--kn) + .1) * 23.84) * var(--u)); font-size: calc(23.84 * var(--u)); line-height: 1.2; white-space: nowrap; }
  .av-steps p br { display: inline; }
  .av-steps li:nth-child(1) { --n: 110; --h: 212.1; --p: 110.2; }
  .av-steps li:nth-child(2) { --n: 460; --h: 568.1; --p: 470.2; }
  .av-steps li:nth-child(3) { --n: 934; --h: 1039.9; --p: 945.6; }
  .av-steps li:nth-child(4) { --n: 1423; --h: 1515.7; --p: 1439.3; --py: 373.2; }

  /* Paquetes */
  .av-packs { min-height: calc(728 * var(--u)); padding: calc(101 * var(--u)) 0 calc(198 * var(--u)); }
  .av-packs__bg { inset: auto; left: calc(var(--ox) - 6 * var(--u)); top: calc(-98 * var(--u)); width: calc(1955 * var(--u)); }
  .av-packs__bg img { height: auto; }
  .av-packs .av-canvas { height: auto; }
  .av-packs__t1 { --x: 80.7; --y: 159.9; --fs: 104.48; }
  .av-packs__t2 { --x: 95.7; --y: 249.8; --fs: 104.48; }
  .av-packs__list { display: flex; align-items: stretch; gap: 0; margin: 0 0 0 calc(672 * var(--u)); max-width: none; }
  .av-packs__list > li { width: calc(340 * var(--u)); min-height: calc(429 * var(--u)); }
  .av-packs__list > li + li { margin-left: calc(38.5 * var(--u)); }
  .av-pack { border-radius: calc(30 * var(--u)); }
  .av-pack__body { padding: calc(22 * var(--u)) calc(14 * var(--u)) calc(14 * var(--u)) calc(22 * var(--u)); }
  .av-pack__name { font-size: calc(51.84 * var(--u)); margin: 0 0 calc(20 * var(--u)); padding-right: calc(8 * var(--u)); }
  .av-pack--basico .av-pack__name { font-size: calc(58.48 * var(--u)); }
  .av-pack ul { gap: calc(9 * var(--u)); font-size: max(12px, calc(17 * var(--u))); }
  .av-pack--avanzado ul { gap: calc(7 * var(--u)); }
    .av-pack__time { font-size: max(12px, calc(17 * var(--u))); }
  .av-pack__foot { min-height: calc(49 * var(--u)); font-size: calc(27.55 * var(--u)); }

  /* Cierre */
  .av-cta { height: calc(716 * var(--u)); padding: 0; }
  .av-brick.av-cta::before { background-position: calc(var(--ox) - 3.9 * var(--u)) calc(-40 * var(--u)); }
  .av-cta .av-canvas { display: block; }
  .av-cta .av-greca { top: calc(-62 * var(--u)); height: calc(116 * var(--u)); background-size: calc(162 * var(--u)) 100%; background-position: calc(var(--ox) + 13 * var(--u)) 0; }
  .av-cta__glyph { position: absolute; left: calc(876 * var(--u)); width: calc(49 * var(--u)); }
  .av-cta__glyph--top { top: calc(138 * var(--u)); }
  .av-cta__glyph--bottom { top: calc(594 * var(--u)); }
  .page-audiovisual main .av-cta__t1 { --x: 394.9; --y: 334.8; --fs: 82.89; width: calc(1000 * var(--u)); text-align: center; }
  .page-audiovisual main .av-cta__t2 { --x: 393; --y: 443.1; --fs: 108.18; width: calc(1000 * var(--u)); text-align: center; }
  .av-cta__btn { position: absolute; left: calc(740 * var(--u)); top: calc(479 * var(--u)); width: calc(309 * var(--u)); min-height: 0; height: calc(64 * var(--u)); padding: 0; margin: 0; font-size: calc(31.55 * var(--u)); }
}
@keyframes av-mark { from { transform: scaleX(0); } }
