/* Ecfrasis — ropa con memoria
   Paleta de la marca: el amarillo del logo, tinta de periódico y el rojo del pitch. */
:root {
  --bg: #F1EB9D;        /* amarillo del logo */
  --surface: #E7DF8A;   /* un paso más oscuro */
  --ink: #151412;
  --muted: #4C4733;
  --accent: #A8231E;    /* rojo de afiche */
  --field: #151412;     /* pie */
  --paper: #F1EB9D;

  --font: "Newsreader", Georgia, "Times New Roman", serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.1rem + 1vw, 2rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);
  --step-giant: clamp(4.5rem, 2rem + 16vw, 20rem);

  --m: 5vw;             /* margen exterior */
  --gap: 16px;
  --sec: clamp(120px, 14vw, 220px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--step-body); line-height: 1.5;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }
figure { margin: 0; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.head-l { font-size: var(--step-head); line-height: .98; }
.head-m { font-size: clamp(2rem, 1rem + 2.6vw, 3.25rem); line-height: 1; }
.head-s { font-size: var(--step-lead); line-height: 1.05; }
.head-i { font-size: var(--step-lead); line-height: 1.1; font-style: italic; }

/* imágenes de archivo: esquinas rectas, un leve tono de papel */
.frame img, .intro__photo img, .how img, .prices__photo img { filter: sepia(.12) contrast(1.02); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 0;
  font: 500 var(--step-body)/1 var(--font); text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #8E1C18; }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: #fff; }
.tlink { display: inline-block; margin-top: 14px; font-size: var(--step-body); }
.tlink span { display: inline-block; transition: transform .2s var(--ease); }
.tlink:hover span { transform: translateX(4px); }

/* ============ PORTADA ============ */
.hero { position: relative; height: 100svh; min-height: 560px; color: #fff; overflow: hidden; background: #2a261c; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: center 35%; opacity: 0; transition: opacity 1.6s ease; transform: scale(1.04); }
.hero__media img.is-on { opacity: 1; animation: drift 14s linear both; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.1); } }
.hero::after { /* velo neutro bajo el texto */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top /* taste-skill-ignore: scrim neutro sobre foto */, rgba(10,9,7,.78) 0%, rgba(10,9,7,.35) 42%, rgba(10,9,7,0) 64%),
              linear-gradient(to bottom, rgba(10,9,7,.45) 0%, rgba(10,9,7,0) 22%); /* taste-skill-ignore */
}
.hero__top { position: absolute; z-index: 2; top: 24px; left: var(--m); right: var(--m); display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: var(--step-small); line-height: 1.25; }
.mark img { width: 22px; height: auto; }
.links { font-size: var(--step-small); }
.links a { text-decoration: none; padding-bottom: 2px; }
.links a:hover, .links a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }
.hero__foot { position: absolute; z-index: 2; left: var(--m); right: var(--m); bottom: 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero h1 { font-size: clamp(3rem, 1.6rem + 4.6vw, 6.25rem); line-height: .95; letter-spacing: -0.03em; }
.hero__lead { margin-top: 36px; max-width: 34ch; font-size: var(--step-lead); line-height: 1.25; }
.hero__act { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; text-align: right; }
.hero__caption { font-size: var(--step-small); font-style: italic; transition: opacity .6s ease; }

/* ============ QUÉ ES ============ */
.intro { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding: var(--sec) var(--m); }
.intro__text { grid-column: 7 / 13; padding-top: 6vh; }
.intro__text h2 { margin-bottom: 28px; color: var(--muted); }
.statement { font-size: clamp(1.375rem, 1rem + 1vw, 2rem); line-height: 1.22; text-indent: 3em; }
.intro__photo { grid-column: 1 / 6; grid-row: 1 / 3; align-self: start; }
.intro__photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.intro figcaption, .prices figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); font-style: italic; }
.intro__note { grid-column: 7 / 11; margin-top: 64px; font-size: var(--step-body); max-width: 40ch; }

/* ============ COLECCIÓN ============ */
.show { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding: 0 var(--m) var(--sec); background: var(--bg); }
.show__side { grid-column: 1 / 4; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-right: 8px; }
.tag { background: var(--surface); padding: 24px; }
.tag__item { display: none; }
.tag__item.is-on { display: block; animation: tagIn .45s var(--ease); }
.no-js .tag__item, html:not(.js) .tag__item { display: block; margin-bottom: 20px; }
@keyframes tagIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tag h3 { font-size: var(--step-lead); line-height: 1.05; margin-bottom: 12px; }
.tag p { font-size: var(--step-body); line-height: 1.45; }
.tag__qr { display: flex; gap: 14px; align-items: center; margin-top: 22px; }
.tag__qr img { width: 72px; height: 72px; flex: none; background: var(--bg); padding: 6px; }
.tag__qr p { font-size: var(--step-small); color: var(--muted); line-height: 1.35; }

.run { grid-column: 4 / 13; display: flex; align-items: flex-end; gap: 6px; }
.run__rest { flex: 1; display: flex; flex-wrap: wrap; align-items: flex-end; align-content: flex-end; gap: 28px 6px; }
.frame { flex: none; scroll-snap-align: start; }
.frame button { display: block; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.frame img { height: 160px; width: auto; transition: transform .5s var(--ease), filter .3s ease; }
.frame--lift img { height: 62vh; min-height: 420px; max-height: 560px; }
.frame button:hover img { transform: scale(1.02); }
.frame button[aria-pressed="true"] { outline: 4px solid var(--accent); outline-offset: -4px; }
.frame button[aria-pressed="true"] img { filter: none; }
.frame figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: var(--step-small); }
.frame figcaption span:last-child { color: var(--muted); }

/* ============ CÓMO FUNCIONA ============ */
.how { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding: 0 var(--m) 120px; }
.how > h2 { grid-column: 8 / 13; grid-row: 1; align-self: start; }
.how__stage { display: grid; grid-template-columns: subgrid; grid-column: 1 / 13; }
.how__stage p { font-size: var(--step-body); max-width: 36ch; }
.how__stage strong { font-weight: 500; }
.how__stage--1 { grid-row: 1; }
.how__stage--1 p { position: relative; z-index: 1; }
.how__stage--1 figure { grid-column: 1 / 5; }
.how__stage--1 img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 30% 40%; width: 100%; }
.how__stage--1 p { grid-column: 5 / 8; align-self: start; margin-top: 16vw; }
.how > h2 { padding-left: 0; }
.how__stage--2 { grid-row: 2; margin-top: -8vw; }
.how__stage--2 figure { grid-column: 6 / 9; }
.how__stage--2 img { aspect-ratio: 1; object-fit: cover; object-position: 50% 45%; width: 100%; }
.how__stage--2 p { grid-column: 9 / 12; align-self: start; }
.how__stage--3 { grid-row: 3; margin-top: 120px; }
.how__stage--3 p { grid-column: 4 / 7; grid-row: 1; align-self: start; padding-top: 24px; }
.how__stage--3 figure { grid-column: 8 / 13; grid-row: 1; }
.how__stage--3 img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* ============ CARTA ============ */
.letter { padding: 120px var(--m); background: var(--surface); display: grid; grid-template-columns: 1fr minmax(0, 560px) 1fr; }
.letter__col { grid-column: 2; }
.letter__face { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; background: var(--bg); padding: 4px 10px; margin-bottom: 28px; }
.letter h2 { margin-bottom: 28px; }
.letter p + p { margin-top: 1.3em; }
.letter p { font-size: var(--step-body); line-height: 1.6; }
.letter mark { background: var(--ink); color: var(--bg); padding: 0 .15em; }
.letter .letter__sign { margin-top: 2em; font-size: var(--step-lead); font-style: italic; }
.letter .letter__role { margin-top: 4px; font-size: var(--step-small); color: var(--muted); }

/* ============ PRECIOS ============ */
.prices { padding: 140px var(--m) var(--sec); }
.prices > h2 { text-indent: 3vw; }
.prices__body { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: 96px; align-items: end; }
.prices__photo { grid-column: 1 / 6; grid-row: 1; }
.prices__photo img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; object-position: 40% 50%; }
.prices__word { grid-column: 7 / 8; grid-row: 1; align-self: start; font-size: var(--step-small); font-style: italic; color: var(--muted); padding-top: 4px; }
.rows { grid-column: 8 / 13; grid-row: 1; align-self: start; border-collapse: collapse; width: 100%; font-size: var(--step-body); }
.rows th, .rows td { text-align: left; font-weight: 400; padding: 13px 0; vertical-align: top; }
.rows th { color: var(--muted); width: 26%; padding-right: 12px; }
.rows td:last-child { text-align: right; padding-left: 16px; }
@media (min-width: 1025px) { .rows td:last-child { white-space: nowrap; } }
.rows tr.gap th, .rows tr.gap td { padding-top: 44px; }

/* ============ PREVENTA ============ */
.cta { position: relative; min-height: 90svh; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding: 0 var(--m); overflow: hidden; color: var(--paper); background: var(--field); }
.cta__media { position: absolute; inset: 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.5) brightness(.42) contrast(1.1); transform: scale(1.06); }
.cta__text { position: relative; grid-column: 8 / 13; align-self: end; padding-bottom: 14vh; }
.cta__text p { margin: 22px 0 32px; max-width: 34ch; }

/* ============ PIE ============ */
.foot { background: var(--field); color: var(--paper); padding: 72px var(--m) 32px; overflow: hidden; }
.foot__name { font-size: var(--step-giant); line-height: .8; letter-spacing: -0.05em; white-space: nowrap; margin-left: -.04em; }
.foot__row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: 72px; }
.foot__places { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 8px; }
.foot__places a { font-size: clamp(1.625rem, 1.2rem + 1vw, 2.25rem); line-height: 1.15; text-decoration: none; color: var(--paper); }
.foot__places a:hover { text-decoration: underline; }
.foot__cols { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.foot__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--step-small); }
.foot__cols a { text-decoration: none; }
.foot__cols a:hover { text-decoration: underline; }
.foot__credits { font-size: var(--step-small); line-height: 1.5; }
.foot__credits a { text-decoration: underline; }
.foot__legal { display: flex; justify-content: space-between; gap: 16px; margin-top: 96px; font-size: var(--step-small); }
.foot__legal a { text-decoration: none; }

/* ============ ENTRADAS ============ */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .frame { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .frame.is-in { opacity: 1; transform: none; }

/* ============ TABLETA ============ */
@media (max-width: 1024px) {
  .intro__text { grid-column: 6 / 13; }
  .show__side { grid-column: 1 / 5; }
  .run { grid-column: 5 / 13; flex-direction: column; align-items: flex-start; gap: 28px; }
  .frame img { height: 150px; min-height: 0; }
  .frame--lift img { height: auto; width: 100%; max-height: none; }
  .frame--lift, .frame--lift button { width: 100%; }
  .how { display: block; }
  .how > h2 { margin-bottom: 48px; }
  .how__stage { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 0 0 72px; align-items: start; }
  .how__stage--2 { margin-top: 0; }
  .how__stage--1 p { margin-top: 0; }
  .how__stage figure, .how__stage p, .how__stage--3 p, .how__stage--3 figure { grid-column: auto; grid-row: auto; padding-top: 0; }
  .prices__photo { grid-column: 1 / 5; }
  .prices__word { display: none; }
  .rows { grid-column: 6 / 13; }
  .cta__text { grid-column: 6 / 13; }
}

/* ============ TELÉFONO ============ */
@media (max-width: 720px) {
  :root { --m: 20px; --sec: 104px; }
  .hero__top .links a:not(:first-child), .hero__top .links { font-size: 0; }
  .hero__top .links a:first-child { font-size: var(--step-small); }
  .hero__foot { flex-direction: column; align-items: flex-start; bottom: 28px; gap: 24px; }
  .hero h1 { font-size: 12.5vw; }
  .hero__lead { margin-top: 24px; font-size: 1.125rem; }
  .hero__act { align-items: stretch; text-align: left; width: 100%; }
  .hero__act .btn { width: 100%; }
  .hero__media img { object-position: center 40%; }

  .intro { display: block; }
  .statement { text-indent: 0; font-size: 1.375rem; }
  .intro__photo { width: 72%; margin: 48px 0 0 auto; }
  .intro__photo img { aspect-ratio: 4 / 5; }
  .intro__note { margin-top: 32px; max-width: none; }

  .show { display: block; padding: 0 var(--m) var(--sec); }
  .show__side { gap: 28px; padding: 0; }
  .run { display: block; padding-top: 28px; }
  .run__rest { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 8px; margin-top: 24px; }
  .run__rest .frame img { height: 44vw; width: 100%; object-fit: cover; }
  .frame--lift img { height: auto; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

  .how { display: block; }
  .how > h2 { margin-bottom: 40px; font-size: 2.25rem; }
  .how__stage { display: block; margin: 0 0 56px; }
  .how__stage figure { margin-bottom: 16px; }
  .how__stage--2 { margin-top: 0; }
  .how__stage--2 figure { width: 62%; margin-left: auto; }
  .how__stage--2 p { margin-left: auto; width: 62%; }
  .how__stage--3 { display: flex; flex-direction: column-reverse; gap: 16px; margin-top: 0; }
  .how__stage--3 figure { width: 84%; margin: 0; }
  .how__stage--3 p { padding: 0; }

  .letter { display: block; }

  .prices > h2 { text-indent: 0; font-size: 9.5vw; }
  .prices__body { display: flex; flex-direction: column-reverse; margin-top: 48px; }
  .prices__word { display: none; }
  .rows, .rows tbody { display: block; font-size: 1rem; }
  .rows tr { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding: 12px 0; }
  .rows tr.gap { padding-top: 36px; }
  .rows th, .rows td, .rows tr.gap th, .rows tr.gap td { padding: 0; width: auto; }
  .rows th { grid-column: 1 / 3; font-size: var(--step-small); }
  .rows td:last-child { padding-left: 0; }
  .prices__photo { width: 60%; margin: 48px 0 0 auto; }

  .cta { display: block; min-height: 0; padding: 0; }
  .cta__media { position: relative; height: 70svh; }
  .cta__text { padding: 40px var(--m) 72px; }
  .cta__text .btn { width: 100%; }

  .foot { padding-top: 48px; }
  .foot__name { font-size: 24vw; }
  .foot__row { display: block; margin-top: 48px; }
  .foot__places a { font-size: 1.625rem; }
  .foot__cols { display: block; margin-top: 40px; }
  .foot__cols ul { grid-template-columns: 1fr 1fr; margin-bottom: 32px; }
  .foot__legal { margin-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media img { transition: none; animation: none !important; transform: none; }
  .js .reveal, .js .frame { opacity: 1; transform: none; transition: none; }
  .tag__item.is-on { animation: none; }
  .frame img { transition: none; }
}
