/* PROPUESTA MALDO · oct-2026 · misma identidad (crema, negro, Sora) con puesta en escena de cine */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('assets/fonts/sora-latin.woff2') format('woff2');
}

:root {
  --paper: #f2f1ec;
  --paper-2: #e8e7e0;
  --ink: #0b0b0b;
  --muted: #5c5c55;
  --line: #cfcec6;
  --red: #c8372d; /* el rojo de su tabla de tarifas */
  --gut: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Sora', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, p { margin: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus { left: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* CABECERA */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gut);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.top.is-scrolled { border-bottom-color: var(--line); }

.top-logo img { width: 128px; height: auto; }

.top-nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 32px);
  font-size: 14px;
}

.top-nav a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease);
  padding: 4px 0;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] { background-size: 100% 1px; }

/* PORTADA: NOMBRE */
.masthead {
  padding: clamp(28px, 6vw, 72px) var(--gut) clamp(18px, 3vw, 28px);
}

.masthead-name {
  font-size: clamp(54px, 13.4vw, 228px);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.masthead-name span { display: block; }

.masthead-name span:last-child { text-align: right; }

.masthead-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(18px, 2.4vw, 30px);
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}

/* BOBINA (slideshow de trabajos) */
.reel {
  position: relative;
  margin: 0 var(--gut);
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--ink);
}

.reel-frame {
  margin: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.reel-frame.is-active { opacity: 1; }

.reel-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.reel-frame.is-active img { animation: drift 7s linear forwards; }

@keyframes drift {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

.reel-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 16px;
  margin: 0 var(--gut);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.reel-count { font-variant-numeric: tabular-nums; }

.reel-title {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.reel-progress {
  position: relative;
  height: 2px;
  margin: 0 var(--gut);
  background: var(--line);
  overflow: hidden;
}

.reel-progress i {
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}

.reel-progress i.is-running { animation: progress 6s linear forwards; }

@keyframes progress { to { transform: scaleX(1); } }

/* DECLARACIÓN */
.statement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(64px, 10vw, 140px) var(--gut);
  align-items: end;
}

.statement-photo {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(1);
}

.statement h2 {
  font-size: clamp(30px, 4.4vw, 68px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.statement h2 em {
  font-style: normal;
  color: var(--red);
}

.statement p:not(.label) {
  max-width: 52ch;
  margin-top: 24px;
  color: var(--muted);
}

/* TRABAJOS */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 0 var(--gut) 18px;
  border-bottom: 1px solid var(--ink);
  margin: 0 var(--gut);
  padding-left: 0;
  padding-right: 0;
}

.section-head h2 {
  font-size: clamp(36px, 6vw, 96px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.works {
  list-style: none;
  margin: 0;
  padding: clamp(24px, 3vw, 40px) var(--gut) 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(36px, 5vw, 72px) clamp(12px, 1.6vw, 24px);
}

.work { grid-column: span 6; }

.work:nth-child(4n + 1) { grid-column: 1 / span 7; }
.work:nth-child(4n + 2) { grid-column: 9 / span 4; align-self: end; }
.work:nth-child(4n + 3) { grid-column: 2 / span 5; }
.work:nth-child(4n + 4) { grid-column: 7 / span 6; }

.work-frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 16 / 10;
}

.work:nth-child(4n + 2) .work-frame { aspect-ratio: 4 / 5; }

.work-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s;
}

@media (hover: hover) {
  .work:hover .work-frame img { transform: scale(1.035); }
}

.work-credits {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

.work-num { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 4px; }

.work-title {
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.work-year { font-size: 12px; color: var(--muted); padding-top: 4px; }

.work-role {
  grid-column: 2 / -1;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}

.work-format {
  grid-column: 2 / -1;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

/* FRANJA LOGÍSTICA */
.band {
  position: relative;
  margin-top: clamp(80px, 12vw, 160px);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.band-media {
  position: absolute;
  inset: 0;
}

.band-media video,
.band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(0.8);
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(11 11 11 / 0.92) 0%, rgb(11 11 11 / 0.55) 55%, rgb(11 11 11 / 0.2) 100%);
}

.band-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  max-width: 780px;
  padding: clamp(72px, 11vw, 150px) var(--gut);
}

.band .label { color: rgb(242 241 236 / 0.7); }

.band h2 {
  font-size: clamp(38px, 6vw, 92px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.band p { max-width: 46ch; color: rgb(242 241 236 / 0.82); }

.band-price strong {
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--paper);
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid currentColor;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.btn::after {
  content: "→";
  transition: transform 0.35s var(--ease);
}

.btn:hover::after { transform: translateX(5px); }

.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: var(--red); border-color: var(--red); }

.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: var(--red); border-color: var(--red); color: var(--paper); }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* CONTACTO */
.contact {
  padding: clamp(80px, 12vw, 160px) var(--gut) clamp(40px, 6vw, 72px);
}

.contact h2 {
  font-size: clamp(64px, 15vw, 250px);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--ink);
}

.contact-grid a {
  display: grid;
  gap: 6px;
  padding: 20px 20px 20px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.contact-grid a strong {
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 400;
  letter-spacing: -0.02em;
  transition: color 0.25s;
}

.contact-grid a:hover strong { color: var(--red); }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 20px var(--gut) 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.foot nav { display: flex; gap: 16px; }

/* ===== LOGÍSTICA ===== */
.l-hero {
  position: relative;
  min-height: min(92svh, 860px);
  display: grid;
  align-content: end;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
}

.l-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.8);
}

.l-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(11 11 11 / 0.88) 0%, rgb(11 11 11 / 0.35) 45%, rgb(11 11 11 / 0.1) 100%);
}

.l-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  padding: 0 var(--gut) clamp(28px, 5vw, 60px);
}

.l-hero .label { color: rgb(242 241 236 / 0.75); }

.l-hero h1 {
  font-size: clamp(46px, 9vw, 150px);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  max-width: 12ch;
}

.l-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.l-hero-row p { max-width: 46ch; color: rgb(242 241 236 / 0.85); }

/* HOJA DE RODAJE */
.sheet {
  margin: clamp(48px, 8vw, 110px) var(--gut) 0;
  border: 1px solid var(--ink);
  background: #f7f6f1;
}

.sheet-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--paper);
}

.sheet-head h2 {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sheet-head span { font-size: 12px; opacity: 0.75; font-variant-numeric: tabular-nums; }

.sheet-cells {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sheet-cell {
  display: grid;
  gap: 10px;
  align-content: space-between;
  min-height: 150px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sheet-cell:nth-child(4n) { border-right: 0; }

.sheet-cell strong {
  font-size: clamp(30px, 3.2vw, 52px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sheet-cell small { color: var(--muted); font-size: 13px; line-height: 1.35; }

.sheet-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.sheet-block { padding: 22px 18px 26px; }

.sheet-block + .sheet-block { border-left: 1px solid var(--line); }

.sheet-block h3 {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rates {
  width: 100%;
  border-collapse: collapse;
}

.rates th,
.rates td {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
  font-size: 15px;
  vertical-align: baseline;
}

.rates td {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.rates tr.is-main th,
.rates tr.is-main td {
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.rates tr.is-main th { position: relative; padding-left: 16px; }

.rates tr.is-main th::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  background: var(--red);
}

.rates small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: 0; }

.sheet-note { margin-top: 14px; font-size: 12px; color: var(--muted); }

.specs { margin: 0; display: grid; }

.specs div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.specs dt { color: var(--muted); font-size: 13px; }
.specs dd { margin: 0; font-size: 14px; }

.sheet-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-top: 1px solid var(--ink);
}

.sheet-foot p { max-width: 60ch; font-size: 15px; }

/* TIRA DE PELÍCULA */
.strip-wrap {
  margin-top: clamp(64px, 9vw, 120px);
}

.strip-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0 var(--gut) 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}

.strip-head h2 {
  font-size: clamp(36px, 6vw, 96px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.strip {
  list-style: none;
  margin: 0;
  padding: 14px var(--gut) 18px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gut);
  background: var(--ink);
  scrollbar-width: none;
  cursor: grab;
}

.strip::-webkit-scrollbar { display: none; }

.strip li {
  flex: 0 0 auto;
  scroll-snap-align: start;
  position: relative;
}

.strip img {
  height: clamp(240px, 38vw, 520px);
  width: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.strip li.is-tall img { aspect-ratio: 3 / 4; }

.strip figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  color: var(--paper);
  font-size: 12px;
}

.strip figcaption span { opacity: 0.6; font-variant-numeric: tabular-nums; }

.strip figure { margin: 0; }

/* PREGUNTAS */
.faq {
  margin: clamp(64px, 9vw, 120px) var(--gut) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 64px);
}

.faq h2 {
  font-size: clamp(36px, 4.6vw, 72px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.faq details { border-top: 1px solid var(--ink); }
.faq details:last-child { border-bottom: 1px solid var(--ink); }

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: clamp(16px, 1.4vw, 19px);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); color: var(--red); }

.faq details p {
  max-width: 62ch;
  padding-bottom: 20px;
  color: var(--muted);
}

/* APARICIONES */
.js .rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.9s var(--ease);
}

.js .rv.is-in { opacity: 1; transform: none; }

/* El fotograma se descubre como una cortinilla */
.js .work-frame.rv,
.js .sheet.rv {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease);
}

.js .work-frame.rv.is-in,
.js .sheet.rv.is-in { clip-path: inset(0 0 0 0); }

.js .masthead-name span {
  display: block;
  overflow: hidden;
}

.js .masthead-name span b {
  display: inline-block;
  font-weight: inherit;
  transform: translateY(105%);
  animation: rise 1s var(--ease) forwards;
}

.js .masthead-name span:last-child b { animation-delay: 0.12s; }

@keyframes rise { to { transform: none; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .statement { grid-template-columns: 1fr; }
  .statement-photo { max-width: 220px; }

  .works { grid-template-columns: 1fr; }
  .work,
  .work:nth-child(n) { grid-column: 1 / -1; }
  .work:nth-child(4n + 2) .work-frame { aspect-ratio: 16 / 10; }

  .sheet-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet-cell:nth-child(2n) { border-right: 0; }

  .sheet-body { grid-template-columns: 1fr; }
  .sheet-block + .sheet-block { border-left: 0; border-top: 1px solid var(--line); }

  .faq { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .top-logo img { width: 104px; }
  .top-nav { font-size: 13px; gap: 14px; }

  .masthead-name span:last-child { text-align: left; }

  .reel { aspect-ratio: 4 / 5; }

  .reel-bar { grid-template-columns: auto 1fr; }
  .reel-role { display: none; }

  .contact-grid { grid-template-columns: 1fr; }

  .band::after {
    background: linear-gradient(to top, rgb(11 11 11 / 0.92) 0%, rgb(11 11 11 / 0.6) 60%, rgb(11 11 11 / 0.35) 100%);
  }

  .btn { width: 100%; }

  .sheet-cell { min-height: 118px; padding: 14px; }
  .sheet-cell strong { font-size: clamp(26px, 8vw, 34px); }

  .specs div { grid-template-columns: 1fr; gap: 2px; }

  .strip img { height: 62vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv,
  .js .work-frame.rv,
  .js .sheet.rv { opacity: 1; transform: none; clip-path: none; transition: none; }
  .js .masthead-name span b { transform: none; animation: none; }
  .reel-frame,
  .reel-frame img,
  .reel-frame.is-active img,
  .reel-progress i.is-running { transition: none; animation: none; transform: none; }
}

.contact-grid a strong { overflow-wrap: anywhere; }

.work-client {
  grid-column: 2 / -1;
  font-size: 13px;
  color: var(--ink);
}
