/* ============================================================
   Portfolio de Mortal
   Colores y tipografía: cambia las variables de aquí abajo.
   ============================================================ */
:root {
  --bg: #0e1a2b;        /* azul noche, fondo */
  --panel: #142339;     /* paneles y tarjetas */
  --line: #233752;      /* bordes */
  --text: #eaf0f7;
  --dim: #93a4ba;
  --mark: #ffc53d;      /* amarillo de punto de entrada/salida */
  /* colores de etiqueta, como los de Premiere: indican la categoría */
  --c-largo: #4fa3f7;
  --c-short: #ff9f43;
  --c-anim: #a68bff;
  --c-intro: #3dd68c;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.05; font-variation-settings: 'wdth' 112; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--mark); color: #000; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------------- botones ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid var(--mark);
  background: var(--mark); color: #14100a;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover { background: #ffd56e; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel); border-color: var(--dim); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- cabecera ---------------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gut);
  background: rgba(14, 26, 43, .86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 900; font-size: 22px; letter-spacing: -0.03em; text-decoration: none; font-variation-settings: 'wdth' 125; }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); font-size: 15px; }
.nav a:not(.btn) { text-decoration: none; color: var(--dim); }
.nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 560px) { .hide-sm { display: none; } }
@media (max-width: 420px) { .nav a[href="#tarifas"] { display: none; } }
.btn { white-space: nowrap; }

main > section, .clients { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }

/* ---------------- portada ---------------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding-top: clamp(40px, 8vw, 96px); padding-bottom: clamp(36px, 6vw, 72px);
}
.hero h1 { font-size: clamp(36px, 4.3vw, 58px); font-variation-settings: 'wdth' 118; text-wrap: balance; }
.lead { margin: 20px 0 30px; color: var(--dim); font-size: clamp(17px, 1.6vw, 19px); max-width: 36ch; }

.monitor { margin: 0; }
.monitor-screen {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  padding: 0; border: 1px solid var(--line); border-radius: var(--r);
  background: #000 center / cover no-repeat; overflow: hidden; cursor: pointer;
}
.monitor-screen video { width: 100%; height: 100%; object-fit: cover; }
/* corchetes de entrada y salida, como en el monitor de programa */
.mark { position: absolute; top: 14px; bottom: 14px; width: 12px; border: 3px solid var(--mark); pointer-events: none; }
.mark-in { left: 14px; border-right: 0; }
.mark-out { right: 14px; border-left: 0; }
.monitor-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 2px 0; font-size: 15px; }
.monitor-title { display: flex; flex-wrap: wrap; column-gap: 10px; min-width: 0; }
.monitor-title b { font-weight: 600; }
.monitor-title span { color: var(--dim); }
.tc { color: var(--mark); font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .lead { max-width: none; }
}

.clients { padding-top: 22px; padding-bottom: 22px; color: var(--dim); font-size: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients span { color: var(--text); font-weight: 600; margin-right: 6px; }
main > .clients { max-width: calc(var(--wrap) - 2 * var(--gut)); padding-left: 0; padding-right: 0; }
@media (max-width: 1180px) { main > .clients { margin-left: var(--gut); margin-right: var(--gut); } }

/* ---------------- secciones ---------------- */
main > section:not(.hero) { padding-top: clamp(56px, 9vw, 104px); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; margin-bottom: 28px; }
.sec-head h2, .included h2, .contact h2 { font-size: clamp(32px, 4.2vw, 50px); }
.sec-head p { color: var(--dim); max-width: 52ch; }

/* ---------------- filtros ---------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--dim);
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.filter:hover { color: var(--text); border-color: var(--dim); }
.filter.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; flex: none; }
.c-largo { background: var(--c-largo); }
.c-short { background: var(--c-short); }
.c-anim { background: var(--c-anim); }
.c-intro { background: var(--c-intro); }

/* ---------------- tarjetas ---------------- */
.grid { display: grid; gap: 28px 22px; }
.grid-h { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-v { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: 44px; }
.grid-h[hidden] + .grid-v { margin-top: 0; }
@media (max-width: 520px) {
  .grid-h { grid-template-columns: 1fr; }
  .grid-v { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
}

.card { display: block; text-decoration: none; }
.card-media {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r); background: var(--panel); border: 1px solid var(--line);
}
.grid-v .card-media { aspect-ratio: 9 / 16; }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media video { opacity: 0; transition: opacity .2s; }
.card.playing .card-media video { opacity: 1; }
.card-len {
  position: absolute; right: 8px; bottom: 8px;
  padding: 2px 7px; border-radius: 5px; background: rgba(0, 0, 0, .78);
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.card:hover .card-media, .card:focus-visible .card-media { border-color: var(--dim); }
.card:focus-visible { outline: none; }
.card:focus-visible .card-media { outline: 2px solid var(--mark); outline-offset: 3px; }
.card-info { display: block; padding-top: 12px; }
.card-title { display: block; font-weight: 600; font-size: 17px; line-height: 1.3; }
.grid-v .card-title { font-size: 15px; }
.card-who { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--dim); font-size: 14px; }

/* ---------------- qué incluye ---------------- */
.included h2 { margin-bottom: 28px; }
.inc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 48px; }
.inc-list li { padding: 18px 0; border-top: 1px solid var(--line); color: var(--dim); max-width: 60ch; }
.inc-list b { display: block; color: var(--text); font-size: 18px; margin-bottom: 2px; }

/* ---------------- tarifas ---------------- */
.price-table { width: 100%; border-collapse: collapse; font-size: 18px; }
.price-table th, .price-table td { padding: 18px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 1px solid var(--line); }
.price-table th { font-weight: 600; }
.price-table td { color: var(--dim); }
.price-table .num { text-align: right; color: var(--text); font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); font-variation-settings: 'wdth' 112; white-space: nowrap; }
.note { margin-top: 18px; color: var(--dim); }
@media (max-width: 520px) {
  .price-table tr { display: grid; grid-template-columns: 1fr auto; border-top: 1px solid var(--line); padding: 14px 0; }
  .price-table th, .price-table td { border: 0 !important; padding: 0; }
  .price-table td:not(.num) { grid-row: 2; font-size: 15px; }
  .price-table .num { grid-row: 1 / 3; grid-column: 2; align-self: center; }
}

/* ---------------- preguntas ---------------- */
.faq-list { border-bottom: 1px solid var(--line); max-width: 820px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; font-size: 18px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg);
  transition: transform .2s;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list details p { padding: 0 0 20px; color: var(--dim); max-width: 64ch; }

/* ---------------- contacto ---------------- */
.contact { padding-bottom: clamp(64px, 9vw, 110px); }
.contact h2 { max-width: 16ch; }
.contact > p { margin: 16px 0 28px; color: var(--dim); max-width: 50ch; font-size: 18px; }
.mail-addr { margin-top: 18px; color: var(--dim); font-size: 15px; }

/* ---------------- pie ---------------- */
.foot {
  max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gut) 40px;
  display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 24px; align-items: start;
  border-top: 1px solid var(--line); font-size: 15px;
}
.foot .brand { display: block; margin-bottom: 4px; }
.dim { color: var(--dim); }
.foot-channels { display: flex; flex-direction: column; gap: 6px; }
.foot-channels a { text-decoration: none; }
.foot-channels a:hover { text-decoration: underline; }
.foot > p:last-child { text-align: right; }
@media (max-width: 720px) { .foot { grid-template-columns: 1fr; } .foot > p:last-child { text-align: left; } }

/* ---------------- visor ---------------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-back { position: absolute; inset: 0; background: rgba(4, 9, 16, .86); }
.modal-card {
  position: relative; width: min(1040px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
}
.modal-card.v { width: min(860px, 100%); display: grid; grid-template-columns: minmax(0, 360px) 1fr; }
.modal-media { position: relative; aspect-ratio: 16 / 9; background: #000; }
.modal-card.v .modal-media { aspect-ratio: 9 / 16; max-height: calc(100vh - 34px); }
.modal-media video, .modal-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.modal-info { padding: 22px 24px 26px; }
.modal-who { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 15px; }
.modal-info h3 { font-size: clamp(22px, 2.4vw, 28px); margin: 8px 0 12px; }
.modal-desc { color: var(--text); max-width: 64ch; }
.modal-note { margin-top: 12px; color: var(--dim); font-size: 14px; }
.modal-x {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); cursor: pointer;
}
.modal-x:hover { background: rgba(0, 0, 0, .85); }
@media (max-width: 680px) {
  .modal-card.v { grid-template-columns: 1fr; width: min(420px, 100%); }
  .modal-card.v .modal-media { max-height: 70vh; aspect-ratio: auto; height: 70vh; }
}

/* ---------------- aviso ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 999px; background: var(--text); color: var(--bg);
  font-weight: 600; font-size: 15px; transition: opacity .2s, transform .2s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
