/* Sección audiovisual de Zavia · blanco, negro y verde pastel #c8ebac (solo se carga si hay material real) */
.av { --bg: #060e17; --fg: #f1f5ee; --soft: #b9c5b5; --line: rgba(200, 235, 172, .24); --mint: #c8ebac; --accent: #c8ebac; --card: #0d1824;
  background: var(--bg); color: var(--fg); padding-block: clamp(48px, 7vw, 92px); scroll-margin-top: 64px; }
.av-dark2 { --bg: #0a1420; --card: #101d2c; }
.av-light { --bg: #ffffff; --fg: #060e17; --soft: #4b5663; --line: #dbe9c6; --accent: #487523; --card: #f3f8ec; }
.av-b { padding-top: clamp(44px, 6vw, 80px); }
.av .wrap { max-width: 1120px; }
.av h1, .av h2, .av h3 { color: var(--fg); letter-spacing: -.01em; }
.av h1, .av h2 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); line-height: 1.12; margin: 0 0 16px; font-weight: 800; }
.av-eyebrow { margin: 0 0 12px; font-size: .78rem; letter-spacing: .14em; font-weight: 700; color: var(--accent); }
.av-p { color: var(--soft); font-size: 1.04rem; margin: 0 0 14px; max-width: 62ch; }
.av-quote { margin: 22px 0 0; padding-left: 16px; border-left: 3px solid var(--mint); font-size: clamp(1.05rem, 2.4vw, 1.25rem); line-height: 1.4; font-weight: 700; color: var(--fg); max-width: 40ch; }
.av-light .av-quote { border-left-color: #b4d389; }
.av-quote-c { border: 0; padding: 0; margin: clamp(30px, 5vw, 50px) auto 0; text-align: center; max-width: 46ch; }
.av-head { max-width: 66ch; margin-bottom: clamp(26px, 4vw, 44px); }
.av-hero-cta { margin: 26px 0 0; }
.av .btn, .av .av-btn { background: var(--mint); border-color: var(--mint); color: #060e17; text-decoration: none; }
.av .btn:hover { background: #fff; border-color: #fff; color: #060e17; }
.av-light .av-btn-ink, .av .av-btn-ink { background: #060e17; border-color: #060e17; color: #fff; }
.av .av-btn-ink:hover { background: #1c2b3a; border-color: #1c2b3a; color: #fff; }
.av .av-btn-ghost { background: transparent; color: #fff; border-color: var(--mint); }
.av .av-btn-ghost:hover { background: rgba(200, 235, 172, .16); border-color: var(--mint); color: #fff; }
.av a:focus-visible, .av button:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.av-light a:focus-visible, .av-light button:focus-visible { outline-color: #487523; }
.av-note { margin: 22px 0 0; font-size: .85rem; color: var(--soft); }
.av-cap { margin: 10px 0 0; font-size: .82rem; color: var(--soft); text-align: center; }

/* 1 · promesa */
.av-hero { display: grid; gap: 34px; align-items: center; }
.av-hero-img { width: min(70vw, 320px); margin-inline: auto; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -28px rgba(0, 0, 0, .9); }
.av-hero-img img { display: block; width: 100%; height: auto; }

/* 2 · videos */
.av-videos { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 6px; }
.av-videos::-webkit-scrollbar { display: none; }
.av-video { margin: 0; flex: 0 0 74%; max-width: 330px; scroll-snap-align: center; }
.av-video.av-h { flex-basis: 88%; max-width: 560px; }
.av-stage { position: relative; width: 100%; aspect-ratio: var(--ratio, 16 / 9); border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 24px 44px -24px rgba(0, 0, 0, .85); }
.av-play { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: pointer; background: var(--card); color: #fff; }
.av-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.av-play:hover img { transform: scale(1.04); }
.av-play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 14, 23, .35), rgba(6, 14, 23, 0) 30%, rgba(6, 14, 23, 0) 62%, rgba(6, 14, 23, .45)); pointer-events: none; }
.av-n { position: absolute; z-index: 2; right: 14px; top: 10px; font-size: 1.6rem; font-weight: 800; color: rgba(255, 255, 255, .85); letter-spacing: .02em; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.av-tag { position: absolute; z-index: 2; left: 12px; top: 14px; background: var(--mint); color: #060e17; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.av-playic { position: absolute; z-index: 2; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; background: var(--mint); box-shadow: 0 10px 34px rgba(0, 0, 0, .55); transition: transform .2s; }
.av-playic::before { content: ""; position: absolute; left: 28px; top: 21px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #060e17; }
.av-playtxt { position: absolute; z-index: 2; left: 0; right: 0; bottom: 14px; text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.av-play:hover .av-playic, .av-play:focus-visible .av-playic { transform: scale(1.1); }
.av-stage.is-playing { background: #000; }
.av-stage.is-playing .av-play { display: none; }
.av-stage video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; border-radius: 18px; }
.av-stage video:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.av-video figcaption { padding: 14px 2px 0; display: grid; gap: 6px; }
.av-video figcaption strong { color: var(--fg); font-size: 1.06rem; line-height: 1.25; }
.av-video figcaption span { color: var(--soft); font-size: .93rem; line-height: 1.45; }

/* 3 · avatares */
.av-split { display: grid; gap: 34px; align-items: center; }
.av-sheet { margin: 0; }
.av-sheet .av-lb { border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 28px 50px -30px rgba(6, 14, 23, .55); }
.av-sheet figcaption { margin: 12px 2px 0; font-size: .85rem; color: var(--soft); }
.av-scenes { margin-top: clamp(34px, 5vw, 56px); }
.av-gt { margin: 0 0 12px; color: var(--soft); font-size: .95rem; font-weight: 600; }
.av-scenes-g { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); max-width: 640px; }

/* 4 · locaciones */
.av-lb { display: block; border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line); cursor: zoom-in; position: relative; }
.av-lb img { display: block; width: 100%; height: auto; transition: transform .5s ease; }
.av-lb:hover img { transform: scale(1.025); }
.av-lb:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.av-textlink.av-lb { display: inline; background: none; box-shadow: none; border-radius: 0; color: var(--mint); font-weight: 650; text-decoration: underline; text-underline-offset: 4px; cursor: zoom-in; }
.av-bigfig { position: relative; margin: 0; }
.av-bigfig .av-lb { border-radius: 20px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.av-chip { position: absolute; left: 14px; bottom: 14px; z-index: 2; background: rgba(6, 14, 23, .78); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .05em; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px); pointer-events: none; }
.av-more2 { margin: 12px 0 0; font-size: .92rem; }
.av-gal { margin-top: clamp(30px, 4.5vw, 48px); }
.av-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); align-items: start; }
.av-car { position: relative; }
.av-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-radius: 14px; }
.av-track::-webkit-scrollbar { display: none; }
.av-track:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.av-slide { flex: 0 0 80%; scroll-snap-align: center; }
.av-nav { display: none; position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 0; background: var(--mint); color: #060e17; font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
.js .av-nav { display: block; }
.av-nav:disabled { opacity: .35; cursor: default; }
.av-prev { left: -8px; } .av-next { right: -8px; }

/* 5 · planificación */
.av-plan { display: grid; gap: 16px; align-items: start; }
.av-plan figure { margin: 0; }
.av-plan figcaption { margin: 10px 2px 0; font-size: .85rem; color: var(--soft); }
.av-pl-side { display: grid; gap: 16px; }
.av-plan .av-lb { border-radius: 14px; }

/* 6 · beneficios */
.av-ben { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: n; }
.av-ben li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 28px); }
.av-num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #c8ebac; color: #060e17; font-weight: 800; margin-bottom: 12px; }
.av-ben h3 { font-size: 1.15rem; line-height: 1.25; margin: 0 0 8px; }
.av-ben p { margin: 0; color: var(--soft); font-size: .97rem; }

/* 7 · cierre */
.av-close-band { background: radial-gradient(1200px 400px at 50% -10%, rgba(200, 235, 172, .22), rgba(6, 14, 23, 0) 70%), #060e17; }
.av-close { text-align: center; max-width: 760px; margin-inline: auto; }
.av-close h2 { font-size: clamp(1.7rem, 4.6vw, 2.7rem); }
.av-close .av-p { margin-inline: auto; }
.av-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.av-btns .btn { text-align: center; }
.av-foot { margin: 16px 0 0; font-size: .9rem; color: var(--soft); }

/* adelanto compacto de la portada */
.av-teaser { padding-block: clamp(40px, 6vw, 70px); }
.av-teaser h2 { font-size: clamp(1.5rem, 3.8vw, 2.15rem); }
.av-t-grid { display: grid; gap: 26px; align-items: center; }
.av-t-imgs { list-style: none; padding: 0; margin: 0; display: flex; gap: 12px; align-items: stretch; justify-content: center; }
.av-t-imgs li { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 22px 40px -24px rgba(0, 0, 0, .9); background: var(--card); }
.av-t-imgs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.av-t-v { flex: 0 0 42%; aspect-ratio: 9 / 16; }
.av-t-s { flex: 0 0 52%; align-self: center; aspect-ratio: 1 / 1; }
.av-t-link { display: block; width: 100%; height: 100%; }
.av-t-link:focus-visible { outline: 3px solid var(--mint); outline-offset: -3px; }
.av-t-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--mint); box-shadow: 0 8px 26px rgba(0, 0, 0, .5); }
.av-t-play::before { content: ""; position: absolute; left: 21px; top: 15px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #060e17; }

/* visor de imágenes */
dialog.av-dlg { border: 0; padding: 0; background: rgba(3, 7, 12, .97); color: #fff; width: 100%; height: 100%; max-width: none; max-height: none; }
dialog.av-dlg::backdrop { background: rgba(3, 7, 12, .9); }
.av-dlg-in { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 58px 12px 54px; overflow: auto; }
.av-dlg img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; cursor: zoom-in; }
.av-dlg-in.is-zoom { align-items: flex-start; justify-content: flex-start; }
.av-dlg-in.is-zoom img { max-width: none; max-height: none; cursor: zoom-out; }
.av-dlg button { position: absolute; z-index: 2; border: 0; border-radius: 50%; width: 46px; height: 46px; background: #c8ebac; color: #060e17; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.av-dlg button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.av-dlg .av-x { top: 8px; right: 8px; } .av-dlg .av-lp { left: 8px; top: 50%; margin-top: -23px; } .av-dlg .av-ln { right: 8px; top: 50%; margin-top: -23px; }
.av-dlg .av-lc { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: .88rem; color: #c9d3c6; margin: 0; padding-inline: 60px; pointer-events: none; }
body.av-lock { overflow: hidden; }

@media (min-width: 700px) {
  .av-videos { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding: 0; gap: 22px; }
  .av-videos.av-n2 { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
  .av-videos.av-n1 { grid-template-columns: minmax(0, 360px); }
  .av-video, .av-video.av-h { flex: none; max-width: none; }
  .av-grid { grid-template-columns: repeat(3, 1fr); }
  .av-slide { flex-basis: 46%; }
  .av-ben { grid-template-columns: repeat(3, 1fr); }
  .av-prev { left: -16px; } .av-next { right: -16px; }
}
@media (min-width: 860px) {
  .av-hero { grid-template-columns: 1.3fr .7fr; gap: 56px; }
  .av-split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .av-plan { grid-template-columns: 1.7fr 1fr; }
  .av-t-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
}
@media (min-width: 1000px) { .av-slide { flex-basis: 31%; } }
@media (prefers-reduced-motion: reduce) { .av *, .av *::before, .av *::after { transition: none !important; } }
