/* Rediseño 2026 — Action Films × HM Studios
   Estética: negro, serif (Cormorant Garamond), gris de apoyo, etiquetas en mayúscula.
   Anton solo para las palabras grandes en mayúscula. */

:root {
  --bg: #0A0A0A;
  --bg-deep: #050505;
  --bg-raised: #121212;
  --line: #222;
  --line-soft: #262626;
  --text: #EDEDEA;
  --text-soft: #CFCFCA;
  --muted: #A8A8A3;
  --faint: #8F8F8A;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --display: 'Anton', 'Impact', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  --wrap: 1240px;
  --gutter: 24px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
em { font-style: italic; color: #B9B9B4; }
img, video { max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.label { margin: 0; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint); }
.mono { font-family: var(--mono); }
.serif-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.lead { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.section { padding-top: 140px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: 56px; }
.section-head .lead { max-width: 420px; font-size: 15px; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #333; border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--text-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid:hover { background: #fff; color: var(--bg); }
.btn-line { border: 1px solid var(--text); color: var(--text); font-weight: 500; }
.btn-line:hover { background: var(--text); color: var(--bg); }

/* ---------- 1. Menú fijo ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(10,10,10,.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header .wrap { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.brand .dot { color: var(--faint); font-weight: 400; }
.brand-tag { border: 1px solid #444; border-radius: 4px; padding: 3px 7px; font-size: 10px; letter-spacing: 0.2em; color: var(--muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 4px 24px; font-size: 14px; }
.nav a { color: var(--muted); padding: 10px 0; }
.nav a:hover { color: var(--text); }
.nav .btn { margin-left: 8px; min-height: 42px; padding: 10px 20px; font-size: 14px; }
.nav .btn:hover { color: var(--bg); }

@media (max-width: 1000px) {
  :root { --header-h: 108px; }
  .site-header .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 0; min-height: 0; }
  .brand { order: 1; font-size: 12px; letter-spacing: 0.14em; gap: 8px; }
  .header-cta { order: 2; }
  .nav { order: 3; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; gap: 22px; border-top: 1px solid rgba(255,255,255,.06); }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 12px 0; }
  .nav .btn { display: none; }
}
@media (min-width: 1001px) { .header-cta { display: none; } }
.header-cta { min-height: 38px; padding: 8px 16px; font-size: 13px; }
@media (max-width: 560px) {
  .brand-tag { display: none; }
  :root { --header-h: 102px; }
  .site-header .wrap { column-gap: 10px; }
  .brand { font-size: 10px; letter-spacing: 0.1em; gap: 5px; }
  .header-cta { min-height: 34px; padding: 6px 12px; font-size: 12px; }
}

/* ---------- 2. Inicio ---------- */
.hero { position: relative; height: max(560px, min(100vh, 880px)); height: max(560px, min(100svh, 880px)); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: #000; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.15) 30%, rgba(10,10,10,.55) 62%, #0A0A0A 100%); }
.hero > .wrap { position: relative; z-index: 1; width: 100%; }
.hero-top { padding-top: calc(var(--header-h) + 22px); display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; }
.rec { display: flex; align-items: center; gap: 10px; color: var(--text); }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #E5322D; box-shadow: 0 0 10px rgba(229,50,45,.7); animation: rec-blink 1.2s steps(1, end) infinite; }
@keyframes rec-blink { 50% { opacity: 0; } }
.timecode { font-variant-numeric: tabular-nums; color: var(--text-soft); }
.specs { color: var(--faint); text-align: right; }
.hero-bottom { padding-bottom: clamp(48px, 7vw, 88px); display: flex; flex-direction: column; gap: 18px; }
.hero-intro { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 52px); line-height: 1; }
.hero-word-wrap { display: block; height: 1em; overflow: hidden; font-family: var(--display); font-weight: 400; font-size: clamp(64px, 10.5vw, 120px); line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap; margin-top: 4px; }
.hero-word { display: inline-block; will-change: transform, opacity; }
.hero-word.is-in { animation: word-in .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-word.is-out { animation: word-out .35s ease-in both; }
@keyframes word-in { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes word-out { to { transform: translateY(-30%); opacity: 0; } }
.hero-sub { margin: 8px 0 0; max-width: 470px; color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 600px) {
  .hero-top { font-size: 11px; }
  .specs { max-width: 120px; }
}
/* Celular: el video se ve completo (16:9) y el texto va debajo, sin recortes */
@media (max-width: 700px) {
  .hero { height: auto; }
  .hero::after { display: none; }
  .hero-top { order: 1; }
  .hero-media { order: 2; position: relative; inset: auto; height: auto; aspect-ratio: 16 / 9; margin-top: 18px;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .hero-bottom { order: 3; padding-top: 22px; padding-bottom: 56px; gap: 14px; }
  .hero-intro { font-size: 26px; }
  .hero-word-wrap { font-size: clamp(44px, 14vw, 56px); margin-top: 6px; }
  .hero-sub { font-size: 14px; }
}

/* ---------- 3. Índice ---------- */
.index { padding-top: 96px; }
.index-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.index-list a { display: flex; align-items: baseline; gap: 20px; border-top: 1px solid var(--line-soft); padding: 22px 0; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; color: var(--text); transition: color .2s, padding .3s; }
.index-list a:hover { padding-left: 8px; color: #fff; }
.index-list .num { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: 0.08em; flex: none; }
@media (max-width: 700px) { .index-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 4. Marcas ---------- */
.feature { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-end; border-top: 1px solid var(--line); padding: 48px 0; }
.feature-info { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.feature-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.2vw, 54px); line-height: 1; }
.feature .reel { flex: 3 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; border-top: 1px solid var(--line); padding-top: 48px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* Espacios de video/imagen */
.media { background: #141414; border: 1px solid var(--line-soft); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #6F6F6A; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; text-align: center; padding: 8px; }
.r-9x16 { aspect-ratio: 9 / 16; }
.r-4x5 { aspect-ratio: 4 / 5; }
.r-4x3 { aspect-ratio: 4 / 3; }
.r-1x1 { aspect-ratio: 1 / 1; }
.r-21x9 { aspect-ratio: 21 / 9; }

/* ---------- 5. Videos musicales ---------- */
.music { margin-top: 140px; background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 120px 0; }
.big-title { margin: 0; }
.big-title .serif { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 56px); line-height: 1; }
.big-title .display { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(56px, 9vw, 112px); line-height: 1; text-transform: uppercase; letter-spacing: 0.01em; margin-top: 6px; }
.music-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: 64px; }
.music-copy { display: flex; flex-direction: column; gap: 24px; }
.credits { display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 13px; color: var(--text-soft); }
.credits span { border-top: 1px solid #333; padding-top: 10px; }
.credits b { font-weight: 400; color: var(--faint); }
@media (max-width: 900px) { .music-head { grid-template-columns: minmax(0, 1fr); } }

.wide-link { position: relative; display: block; border-radius: 6px; }
.wide-link .media { border-radius: 6px; }
.watch-btn { position: absolute; right: 18px; bottom: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: rgba(10,10,10,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(237,237,234,.5); color: var(--text); font-size: 14px; font-weight: 500; transition: background .2s, color .2s; pointer-events: none; }
.wide-link:hover .watch-btn, .wide-link:focus-visible .watch-btn { background: var(--text); color: var(--bg); }
.wide-link:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; }
.piece-meta { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.piece-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; }
.music-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; margin-top: 88px; }
.music-pair .lead { font-size: 15px; }
@media (max-width: 700px) {
  .music-pair { grid-template-columns: minmax(0, 1fr); }
  .watch-btn { right: 10px; bottom: 10px; padding: 7px 12px; font-size: 12px; }
}

/* Video que corre al pasar el mouse: la portada fija queda encima */
.slot > .slot-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; transition: opacity .4s ease; }
.slot.is-hovering > .slot-cover { opacity: 0; }

/* ---------- 6. En set ---------- */
.steps-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bts { display: flex; flex-direction: column; gap: 14px; }
.bts-name { margin: 6px 0 0; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.bts-name i { color: var(--faint); margin-right: 6px; }
.bts p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 600px) {
  .steps-3 { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .bts > .slot { width: 100%; max-width: calc(82vh * 9 / 16); max-width: calc(82svh * 9 / 16); justify-self: center; align-self: center; }
}

/* ---------- 7. Render ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.process li { display: flex; flex-direction: column; gap: 12px; }
.process .step { font-size: 14px; color: var(--text-soft); }
.process .step .mono { color: var(--faint); font-size: 12px; margin-right: 8px; }
.covers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
@media (max-width: 800px) { .process { grid-template-columns: minmax(0, 1fr); } .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 8. IA ---------- */
.ai-box { border: 1px solid #2A2A2A; background: var(--bg-raised); border-radius: 10px; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; gap: 24px; }
.ai-box .serif-title { max-width: 860px; }
.ai-box .lead { max-width: 640px; }
.ai-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.ai-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 700px) { .ai-pair { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 9–10. Servicios y proceso ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.service { background: var(--bg); padding: 48px 40px; display: flex; flex-direction: column; gap: 24px; }
.service h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.05; }
.service ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--text-soft); }
.service li { border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 420px) { .service { padding: 36px 22px; } }
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
.how li { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--text); padding-top: 24px; }
.how .roman { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--faint); }
.how h3 { margin: 0; font-size: 18px; font-weight: 600; }
.how p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 1000px) { .how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .how { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 11–12. Contacto y pie ---------- */
.contact { padding-top: 160px; padding-bottom: 120px; }
.contact h2 { margin: 0 0 48px; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 7.4vw, 104px); line-height: 0.95; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 480px) { .contact-actions .btn { width: 100%; white-space: normal; text-align: center; } }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; font-size: 13px; color: var(--faint); }

@media (prefers-reduced-motion: reduce) {
  .rec-dot { animation: none; }
  .hero-word.is-in, .hero-word.is-out { animation: none; }
}

/* Celular: videos verticales a todo el ancho. Ancho fijo al 100% con tope por altura;
   si el navegador no entiende "svh" usa "vh" (antes quedaban en miniatura). */
@media (max-width: 600px) {
  .reel > .slot, .feature .reel > .slot { width: 100%; max-width: calc(82vh * 9 / 16); max-width: calc(82svh * 9 / 16); justify-self: center; }
}

/* Videos que se abren completos (con sonido) dentro del portafolio */
.lightbox-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.slot.is-clickable { position: relative; }
.slot.is-clickable::after { content: "▶"; position: absolute; right: 10px; bottom: 10px; z-index: 3; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding-left: 2px; font-size: 11px; color: #0A0A0A; background: rgba(237,237,234,.92);
  box-shadow: 0 4px 14px rgba(0,0,0,.45); transition: transform .25s ease, background .25s ease; pointer-events: none; }
.slot.is-clickable:hover::after { transform: scale(1.12); background: #fff; }
