/* =========================================================
   NORTE — hoja de estilos principal
   Estructura:
   1. Fuentes      5. Cabecera y menú     9. Páginas internas
   2. Variables    6. Botones y enlaces  10. Formulario
   3. Base         7. Hero               11. Pie de página
   4. Utilidades   8. Secciones          12. Movimiento
   ========================================================= */

/* 1. Fuentes (alojadas en el propio servidor: sin Google Fonts) */
@font-face {
  font-family: "Inter Display";
  src: url("../fonts/inter-display-black.woff") format("woff");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-semibold.woff") format("woff");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-italic.woff") format("woff");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* 2. Variables de marca (los "tokens" de DESIGN.md) */
:root {
  --black: #0a0a0a;
  --oxblood: #3d0808;
  --white: #f7f6f3;
  --grey: #a3a3a3;          /* texto secundario sobre negro (7.8:1) */
  --grey-dark: #5c5c5c;     /* texto secundario sobre blanco (6:1) */
  --red: #ea1725;           /* rojo Norte: punto, acentos, botón */
  --red-ink: #c8101e;       /* rojo para texto sobre fondo claro */
  --line: rgba(247, 246, 243, 0.14);
  --line-dark: rgba(10, 10, 10, 0.14);

  --f-display: "Inter Display", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Lora", Georgia, "Times New Roman", serif;

  --fs-display: clamp(3.4rem, 14vw, 9rem);
  --fs-h2: clamp(2.3rem, 6vw, 5rem);
  --fs-h3: clamp(1.5rem, 2.6vw, 2.1rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --space: clamp(80px, 12vw, 160px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Grano de película sobre toda la web, como en las piezas de marca */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 900; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* 4. Utilidades */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space); position: relative; }
.light { background: var(--white); color: var(--black); }
.light .muted { color: var(--grey-dark); }
.muted { color: var(--grey); }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.5; max-width: 38ch; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Titulares de marca: serif cursiva + grotesca negra en minúsculas + punto rojo */
.display, .h2 {
  font-family: var(--f-display);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.92;
}
.nw { white-space: nowrap; }
.display { font-size: var(--fs-display); }
.h2 { font-size: var(--fs-h2); }
.display .serif, .h2 .serif {
  display: block;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 0.56em;
  line-height: 1.1;
  margin-bottom: 0.04em;
}
.dot {
  display: inline-block;
  width: 0.2em; height: 0.2em;
  margin-left: 0.04em;
  border-radius: 50%;
  background: var(--red);
  vertical-align: baseline;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: var(--fs-h3);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.section-head { display: grid; gap: 24px; margin-bottom: clamp(48px, 7vw, 96px); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 48px; }
  .section-head p { margin: 0; }
}

/* 5. Cabecera y menú */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .page-inner .site-header {
  background: rgba(10, 10, 10, 0.94);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; flex-shrink: 0; color: var(--white); text-decoration: none; }
.logo .logo-full { width: 112px; height: auto; }
.logo .logo-icon { display: none; width: 34px; height: auto; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 32px; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.main-nav ul a { position: relative; padding-block: 6px; }
.main-nav ul a::after {
  content: ""; position: absolute; left: 50%; bottom: -4px;
  width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: var(--red); transform: scale(0); transition: transform 0.25s var(--ease);
}
.main-nav ul a:hover::after, .main-nav ul a[aria-current="page"]::after { transform: scale(1); }
.lang { display: flex; gap: 4px; font-size: var(--fs-small); font-weight: 600; }
.lang a, .lang span { padding: 6px 8px; border-radius: 999px; text-decoration: none; }
.lang span { background: var(--white); color: var(--black); }
.lang a { color: var(--grey); }
.lang a:hover { color: var(--white); }
.menu-toggle {
  display: none; margin-left: auto;
  background: none; border: 0; color: var(--white);
  width: 44px; height: 44px; padding: 0; cursor: pointer;
  position: relative; z-index: 60;
}
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  .site-header .logo .logo-full { display: none; }
  .site-header .logo .logo-icon { display: block; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 40px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background: var(--black);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
  }
  .menu-open .main-nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .main-nav ul { flex-direction: column; gap: 8px; }
  .main-nav ul a {
    font-family: var(--f-display); font-weight: 900; font-size: clamp(2.6rem, 12vw, 4rem);
    letter-spacing: -0.04em; line-height: 1.1;
  }
  .main-nav ul a::after { left: auto; right: -0.35em; bottom: 0.3em; width: 10px; height: 10px; }
}

/* 6. Botones y enlaces */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  border-radius: 999px; border: 2px solid var(--red);
  background: var(--red); color: #fff;
  font: 600 1rem/1.2 var(--f-body);
  text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.light .btn.ghost:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.btn.small { min-height: 40px; padding: 8px 18px; font-size: 0.9rem; }
.text-link {
  font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  padding-bottom: 3px; transition: background-size 0.3s var(--ease);
}
.text-link:hover { background-size: 0 2px; background-position: 100% 100%; }
.arrow { display: inline-block; transition: transform 0.25s var(--ease); }
a:hover .arrow { transform: translateX(4px); }

/* 7. Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: clamp(48px, 8vw, 96px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 90% 90%, rgba(120, 14, 14, 0.55), transparent 70%),
    var(--black);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.5; filter: saturate(0.75) contrast(1.05);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.55) 55%, rgba(40,4,4,0.35) 100%),
    linear-gradient(0deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0) 45%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero .display { max-width: 11ch; }
.hero-foot {
  display: grid; gap: 28px; margin-top: clamp(28px, 4vw, 48px);
}
.hero-foot p { margin: 0; max-width: 46ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
@media (min-width: 900px) {
  .hero-foot { grid-template-columns: 1fr auto; align-items: end; }
}
.video-toggle {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 20px); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10,10,10,0.5); color: var(--white);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font: 600 0.8rem/1 var(--f-body); cursor: pointer;
  min-height: 36px;
}

/* 8. Secciones */
/* Lista de servicios */
.service-list { border-top: 2px solid currentColor; }
.service-row {
  display: grid; gap: 10px 32px;
  padding-block: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--line-dark);
  text-decoration: none; color: inherit;
  position: relative;
}
.service-row .h3 { transition: transform 0.35s var(--ease); display: flex; align-items: center; }
.service-row .h3::before {
  content: ""; width: 0.38em; height: 0.38em; border-radius: 50%;
  background: var(--red); margin-right: 0; transform: scale(0); width: 0;
  transition: transform 0.35s var(--ease), width 0.35s var(--ease), margin 0.35s var(--ease);
}
.service-row:hover .h3::before, .service-row:focus-visible .h3::before {
  transform: scale(1); width: 0.38em; margin-right: 0.3em;
}
.service-row p { margin: 0; }
.service-row .go { font-weight: 600; white-space: nowrap; display: none; }
@media (min-width: 900px) {
  .service-row { grid-template-columns: 1.1fr 1.2fr auto; align-items: center; }
  .service-row .go { display: block; }
}

/* Forma de trabajar */
.steps { display: grid; gap: 40px 32px; }
.step { border-top: 1px solid var(--line); padding-top: 24px; }
.step .word {
  font-family: var(--f-serif); font-style: italic; font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.1; margin-bottom: 14px; display: flex; align-items: center; gap: 12px;
}
.step .word::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.step p { color: var(--grey); margin: 0; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.statement {
  display: grid; gap: 32px; margin-bottom: clamp(56px, 8vw, 112px);
}
@media (min-width: 900px) {
  .statement { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 64px; }
}

/* Bloque imagen + texto */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split figure { margin: 0; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.1fr 1fr; }
  .split.reverse > :first-child { order: 2; }
}
.split .h2 { margin-bottom: 28px; }
.split .actions { margin-top: 32px; }

/* Tarjeta de proyecto */
.case-card {
  display: grid; gap: 0; text-decoration: none; color: inherit;
  border-radius: 8px; overflow: hidden; background: #141414;
}
.case-visual {
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: radial-gradient(ellipse 80% 80% at 85% 85%, #5a0c0c, transparent 70%), #0d0d0d;
  color: var(--white); overflow: hidden;
}
.case-visual svg { width: min(58%, 520px); transition: transform 0.6s var(--ease); }
.case-card:hover .case-visual svg { transform: scale(1.04); }
.case-meta { padding: 24px clamp(20px, 3vw, 32px) 28px; display: grid; gap: 6px; }
.case-meta .h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.case-meta p { margin: 0; color: var(--grey); }

/* Llamada final */
.cta-band {
  background:
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(120, 14, 14, 0.6), transparent 70%),
    var(--black);
  border-top: 1px solid var(--line);
}
.cta-band .display { font-size: clamp(3.4rem, 14vw, 8rem); margin-bottom: 40px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }

/* 9. Páginas internas */
.page-inner main {
  background: radial-gradient(ellipse 900px 640px at 100% 0%, rgba(120, 14, 14, 0.42), transparent 70%) no-repeat;
}
.page-hero {
  padding-top: calc(var(--header-h) + clamp(64px, 10vw, 140px));
  padding-bottom: clamp(56px, 8vw, 112px);
}
.page-hero .display { font-size: clamp(3.3rem, 13vw, 7.5rem); max-width: 14ch; }
.page-hero .lead { margin-top: 32px; color: var(--grey); max-width: 52ch; }

.service-detail {
  display: grid; gap: 20px 48px;
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line-dark);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.service-detail:first-child { border-top: 2px solid var(--black); }
.service-detail .h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.service-detail ul { display: grid; gap: 8px; margin-top: 16px; }
.service-detail li { padding-left: 22px; position: relative; }
.service-detail li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
}
.service-detail .for { margin-top: 18px; color: var(--grey-dark); font-size: 0.95rem; }
@media (min-width: 900px) { .service-detail { grid-template-columns: 1fr 1.25fr; } }

.faq { display: grid; gap: 0; border-top: 2px solid currentColor; }
.faq details { border-bottom: 1px solid var(--line); }
.light .faq details { border-bottom-color: var(--line-dark); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding-block: 22px; font-weight: 600; font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--f-display); font-size: 1.6rem; line-height: 1;
  transition: transform 0.3s var(--ease); flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--red); }
.faq details p { max-width: 64ch; padding-bottom: 24px; margin: 0; color: var(--grey); }
.light .faq details p { color: var(--grey-dark); }

/* Galería del estudio */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; overflow: hidden; border-radius: 6px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.gallery .wide { grid-column: span 2; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery .wide { grid-column: span 2; grid-row: span 2; }
  .gallery .wide img { aspect-ratio: auto; }
}

.film { position: relative; border-radius: 8px; overflow: hidden; background: #000; }
.film video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.values { display: grid; gap: 40px 32px; }
.values .h3 { margin-bottom: 12px; display: flex; gap: 12px; align-items: center; }
.values .h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.values p { color: var(--grey); margin: 0; }
@media (min-width: 800px) { .values { grid-template-columns: repeat(3, 1fr); } }

.places { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.places li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.95rem; }

/* Proyectos */
.brand-board { display: grid; gap: 12px; }
.brand-tile {
  border-radius: 8px; overflow: hidden; display: grid; place-items: center;
  min-height: 280px; padding: 40px;
}
.brand-tile.black { background: #050505; color: var(--white); }
.brand-tile.white { background: var(--white); color: var(--black); }
.brand-tile.oxblood {
  background: radial-gradient(ellipse 90% 90% at 90% 90%, #5e0d0d, transparent 70%), #0b0505;
  place-items: center start;
}
.brand-tile.red { background: var(--red); color: #fff; }
.brand-tile svg { width: min(70%, 420px); }
.brand-tile .n svg { width: 120px; }
.brand-tile .display { font-size: clamp(2.6rem, 6vw, 5rem); }
.brand-tile figcaption, .tile-label {
  align-self: end; justify-self: start; font-size: var(--fs-small); color: inherit; opacity: 0.75;
}
@media (min-width: 900px) {
  .brand-board { grid-template-columns: repeat(6, 1fr); }
  .brand-board > :nth-child(1) { grid-column: span 4; }
  .brand-board > :nth-child(2) { grid-column: span 2; }
  .brand-board > :nth-child(3) { grid-column: span 3; }
  .brand-board > :nth-child(4) { grid-column: span 3; }
}
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.swatch { min-width: 0; overflow-wrap: anywhere; }
.swatch { border-radius: 8px; padding: 20px; min-height: 140px; display: flex; flex-direction: column; justify-content: flex-end; font-size: var(--fs-small); }
.swatch b { font-size: 1rem; }
.swatch.s-black { background: #0a0a0a; border: 1px solid var(--line); }
.swatch.s-white { background: #fff; color: #0a0a0a; }
.swatch.s-red { background: var(--red); color: #fff; }

.next-card {
  border: 1px dashed rgba(247,246,243,0.35); border-radius: 8px;
  padding: clamp(32px, 5vw, 64px); display: grid; gap: 20px; justify-items: start;
}

/* Texto legal */
.prose { max-width: 72ch; }
.prose h2 { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.1; margin: 56px 0 16px; }
.prose h3 { font-size: 1.15rem; font-weight: 600; margin: 32px 0 8px; }
.prose p, .prose li { color: #d4d4d4; }
.prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--white); text-underline-offset: 3px; }
.placeholder { background: rgba(234, 23, 37, 0.18); color: #ffb3b8; padding: 0 6px; border-radius: 4px; font-weight: 600; }
.updated { color: var(--grey); font-size: var(--fs-small); }

/* 10. Formulario */
.contact-grid { display: grid; gap: clamp(48px, 6vw, 96px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.4fr; } }
.contact-info { display: grid; gap: 28px; align-content: start; }
.contact-info h2 { font-size: var(--fs-small); font-weight: 600; color: var(--grey); margin-bottom: 4px; font-family: var(--f-body); }
.contact-info p { margin: 0; font-size: 1.15rem; }
.form { display: grid; gap: 22px; }
.form .row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field label .opt { color: var(--grey); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--white);
  background: #151515; border: 1px solid #333; border-radius: 6px;
  padding: 14px 16px; min-height: 52px;
  transition: border-color 0.2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--white) 50%), linear-gradient(135deg, var(--white) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #555; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(234, 23, 37, 0.25); }
.field .error { color: #ff8a92; font-size: 0.9rem; min-height: 0; }
.field.invalid input, .field.invalid textarea { border-color: #ff5a66; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: #d4d4d4; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--red); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; font-weight: 600; }
.form-status.ok { color: #9be7a8; }
.form-status.err { color: #ff8a92; }

/* 11. Pie de página */
.site-footer { border-top: 1px solid var(--line); padding-block: 72px 40px; }
.footer-top { display: grid; gap: 40px; }
.footer-top .logo-full { width: 180px; color: var(--white); }
.footer-cols { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-cols a, .contact-info a { overflow-wrap: anywhere; }
.footer-top > * { min-width: 0; }
@media (max-width: 479px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-cols h2 { font: 600 var(--fs-small)/1.4 var(--f-body); color: var(--grey); margin-bottom: 12px; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--grey); font-size: var(--fs-small); }
.footer-bottom a { color: var(--grey); }
@media (min-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1.6fr; }
  .footer-cols { grid-template-columns: 0.8fr 1.3fr 1.1fr; }
}

/* 12. Movimiento */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.hero .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero .dot { transform: scale(0); animation: pop 0.6s var(--ease) 0.9s forwards; }
@keyframes rise { to { transform: none; } }
@keyframes pop { 60% { transform: scale(1.35); } to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Pantalla de carga (solo inicio, una vez por visita) */
.loader { display: none; }
.intro .loader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 300;
  background: var(--black);
  animation: loader-out 0.7s var(--ease) 1.5s forwards;
}
.loader-mark { width: clamp(90px, 16vw, 150px); height: auto; color: var(--white); overflow: visible; }
.loader-mark path { opacity: 0; transform: translateY(14px) scale(0.92); transform-origin: 50% 60%; animation: mark-in 0.7s var(--ease) 0.1s forwards; }
.loader-mark circle { transform: scale(0); transform-box: fill-box; transform-origin: center; animation: pop 0.5s var(--ease) 0.7s forwards; }
@keyframes mark-in { to { opacity: 1; transform: none; } }
@keyframes loader-out { to { transform: translateY(-100%); visibility: hidden; } }
.intro .hero .line > span { animation-delay: 1.7s; }
.intro .hero .line:nth-child(2) > span { animation-delay: 1.82s; }
.intro .hero .dot { animation-delay: 2.5s; }

/* Mensaje de gracias del formulario */
.form-thanks { display: grid; gap: 20px; align-content: start; justify-items: start; padding-top: 8px; }
.form-thanks[hidden], .form[hidden] { display: none; }
.form-thanks:focus { outline: none; }
.form button[disabled] { opacity: 0.6; cursor: progress; }

/* Utilidades (sustituyen a los estilos en línea, para una CSP estricta) */
.u-pt0 { padding-top: 0 !important; }
.u-pt-m { padding-top: clamp(56px, 8vw, 96px) !important; }
.u-m0 { margin: 0 !important; }
.u-mt12 { margin-top: 12px; }
.u-mt20 { margin-top: 20px; }
.u-mt24 { margin-top: 24px; }
.u-mt-l { margin-top: clamp(64px, 9vw, 120px); }
.u-mb12 { margin-bottom: 12px; }
.u-mb16 { margin-bottom: 16px; }
.u-block { display: block; }
.u-start { align-items: start !important; }
.u-404 { min-height: 80svh; display: flex; align-items: center; }
.u-actions { margin-top: 32px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }

/* Páginas legales */
.legal-title { font-size: clamp(2.6rem, 7vw, 6rem); }
.legal-section { padding-top: 0; }
.legal-layout { display: grid; gap: 40px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.legal-nav a {
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.legal-nav a:hover { border-color: var(--white); }
.legal-nav a[aria-current="page"] { background: var(--white); color: var(--black); border-color: var(--white); }
@media (min-width: 1000px) {
  .legal-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; }
  .legal-nav { flex-direction: column; position: sticky; top: calc(var(--header-h) + 24px); }
  .legal-nav a { justify-content: flex-start; }
}
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table-wrap.wide table { min-width: 640px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: #d4d4d4; }
.prose th { color: var(--white); font-weight: 600; white-space: nowrap; }
.prose tr:last-child th, .prose tr:last-child td { border-bottom: 0; }
.prose thead th { background: #151515; }
.prose code { font-size: 0.9em; background: #1c1c1c; padding: 2px 6px; border-radius: 4px; }
.form-info { font-size: 0.85rem; line-height: 1.5; color: var(--grey); margin: 0; }
.form-info a { color: var(--white); }
.legal-layout > * { min-width: 0; }

@media (max-width: 700px) {
  .table-wrap.wide { border: 0; overflow: visible; }
  .table-wrap.wide table { min-width: 0; }
  .table-wrap.wide thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-wrap.wide tr { display: block; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; padding: 6px 0; }
  .table-wrap.wide td { display: grid; grid-template-columns: 96px 1fr; gap: 12px; border: 0; padding: 8px 14px; }
  .table-wrap.wide td::before { content: attr(data-label); color: var(--grey); font-weight: 600; font-size: 0.85rem; }
}

/* ---------- Trabajo reciente: tira de fotos que se desplaza sola ---------- */
.work-strip { padding-bottom: clamp(56px, 8vw, 112px); }
.work-strip .section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.marquee { position: relative; overflow: hidden; }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track, .marquee.is-paused .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.mq-item { margin: 0; flex: 0 0 auto; border-radius: 6px; overflow: hidden; background: #141414; }
.mq-item img { height: clamp(220px, 30vw, 400px); width: auto; display: block; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-toggle {
  position: absolute; right: var(--gutter); bottom: 14px; z-index: 2;
  background: rgba(10,10,10,0.7); color: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; min-height: 36px; font: 600 0.8rem/1 var(--f-body); cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  .marquee-track > [aria-hidden="true"] { display: none; }
  .marquee-toggle { display: none; }
}

/* ---------- Servicios: carrusel de ejemplos ---------- */
.rotator { display: grid; gap: 12px; }
.rot-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: #e8e6e1; }
.rot-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.8s var(--ease); }
.rot-slide.is-active { opacity: 1; }
.rot-slide img { width: 100%; height: 100%; object-fit: cover; }
.rot-dots { display: flex; gap: 4px; }
.rot-dots button {
  width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
}
.rot-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(10,10,10,0.25); transition: transform 0.25s var(--ease), background-color 0.25s; }
.rot-dots button[aria-current="true"]::before { background: var(--red); transform: scale(1.3); }
@media (min-width: 900px) {
  .service-detail { grid-template-columns: 1fr 1.1fr; }
  .service-detail .rotator { grid-column: 1 / -1; max-width: 520px; }
}
@media (min-width: 1100px) {
  .service-detail { grid-template-columns: 1fr 1fr minmax(260px, 0.85fr); align-items: start; }
  .service-detail .rotator { grid-column: auto; max-width: none; }
}

/* ---------- Portfolio: carteles, filtros, mosaico y visor ---------- */
.brand-tile.poster { padding: 0; min-height: 0; background: #0b0505; margin: 0; }
.brand-tile.poster img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .brand-board > :nth-child(5), .brand-board > :nth-child(6) { grid-column: span 3; }
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  font: 600 0.9rem/1 var(--f-body); color: var(--white); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--white); }
.chip[aria-pressed="true"] { background: var(--white); color: var(--black); border-color: var(--white); }
.masonry { columns: 2 160px; column-gap: 12px; }
@media (min-width: 700px) { .masonry { columns: 3; } }
@media (min-width: 1100px) { .masonry { columns: 4; } }
.m-item { break-inside: avoid; margin-bottom: 12px; }
.m-item[hidden] { display: none; }
.m-open {
  display: block; width: 100%; padding: 0; border: 0; background: #141414; cursor: zoom-in;
  border-radius: 6px; overflow: hidden; position: relative; color: inherit;
}
.m-open img { width: 100%; height: auto; transition: transform 0.6s var(--ease); }
.m-open:hover img, .m-open:focus-visible img { transform: scale(1.04); }
.m-cat {
  position: absolute; left: 10px; bottom: 10px; font: 600 0.75rem/1 var(--f-body);
  background: rgba(10,10,10,0.72); padding: 6px 10px; border-radius: 999px;
  opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s var(--ease);
}
.m-open:hover .m-cat, .m-open:focus-visible .m-cat { opacity: 1; transform: none; }
.m-item.is-in { animation: m-in 0.5s var(--ease) both; }
@keyframes m-in { from { opacity: 0; transform: translateY(12px); } }

.lightbox {
  border: 0; padding: 0; background: transparent; color: var(--white);
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
}
.lightbox::backdrop { background: rgba(5,5,5,0.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; gap: 14px; justify-items: center; padding: 64px 16px 24px; max-width: 100%; }
.lightbox img { max-width: min(92vw, 1600px); max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 4px; }
.lightbox figcaption { color: var(--grey); font-size: 0.95rem; text-align: center; max-width: 60ch; }
.lb-btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(10,10,10,0.6); color: var(--white); font: 600 1.2rem/1 var(--f-body); cursor: pointer;
}
.lb-btn:hover { background: var(--white); color: var(--black); }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 16px; top: 16px; }
@media (max-width: 700px) { .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }

/* Galería "Dentro del estudio" con fotos de rodaje */
.gallery figure img { aspect-ratio: 16 / 10; }
@media (max-width: 699px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .rot-frame { aspect-ratio: 1 / 1; }
}

/* 13. Precios */
.pr-anchor { scroll-margin-top: var(--header-h); }
.pr-tagline { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3; margin: 28px 0 0; max-width: 34ch; }
.section-head .pr-tagline { margin: 0; }
.pr-lead { margin-top: 20px; max-width: 46ch; }
.pr-label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); }
.light .pr-label { color: var(--grey-dark); }
.pr-jump { display: grid; gap: 16px; margin-top: 48px; max-width: 900px; }
@media (min-width: 700px) { .pr-jump { grid-template-columns: 1fr 1fr; } }
.pr-jump-card {
  display: grid; gap: 6px; padding: 24px 28px; text-decoration: none;
  border: 1px solid var(--line); border-radius: 8px; background: #121212;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.pr-jump-card:hover { border-color: var(--red); transform: translateY(-2px); }
.pr-jump-name { font-family: var(--f-display); font-weight: 900; font-size: 1.45rem; letter-spacing: -0.03em; }

.pr-plans { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 960px) { .pr-plans { grid-template-columns: repeat(3, 1fr); } }
.pr-plan {
  display: flex; flex-direction: column; gap: 24px; padding: 36px 32px;
  background: #fff; border: 1px solid var(--line-dark); border-radius: 8px;
}
.pr-plan.is-featured { background: var(--black); color: var(--white); border-color: var(--black); }
.pr-plan.is-featured .pr-label, .pr-plan.is-featured .pr-plan-desc, .pr-plan.is-featured .pr-vat, .pr-plan.is-featured .pr-per { color: var(--grey); }
.pr-plan-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.pr-badge { background: var(--red); color: #fff; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.pr-plan-desc { margin: -12px 0 0; color: var(--grey-dark); }
.pr-price { margin: 4px 0 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pr-plan .pr-amount { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.8rem, 5vw, 3.6rem); letter-spacing: -0.045em; line-height: 1; }
.pr-per { color: var(--grey); font-size: 0.95rem; }
.light .pr-per { color: var(--grey-dark); }
.pr-vat { margin: 8px 0 0; font-size: var(--fs-small); color: var(--grey-dark); }
.pr-plan .btn { width: 100%; }
.pr-plan.is-featured .btn:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.pr-list { display: grid; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.pr-plan.is-featured .pr-list { border-top-color: var(--line); }
.pr-list li { padding-left: 22px; position: relative; }
.pr-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.pr-note { margin: 28px 0 0; font-size: var(--fs-small); color: var(--grey); max-width: 82ch; }
.light .pr-note { color: var(--grey-dark); }

.pr-compare-title { margin: clamp(72px, 10vw, 128px) 0 28px; }
.pr-table-wrap { overflow-x: auto; border: 1px solid var(--line-dark); border-radius: 8px; background: #fff; }
.pr-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.95rem; }
.pr-table th, .pr-table td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--line-dark); }
.pr-table thead th { font-weight: 600; }
.pr-table thead th:first-child, .pr-table tbody th { color: var(--grey-dark); font-weight: 600; }
.pr-table tbody tr:last-child > * { border-bottom: 0; }
.pr-table .is-featured { background: var(--black); color: var(--white); font-weight: 600; border-bottom-color: var(--line); }

.pr-groups { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 1000px) { .pr-groups { grid-template-columns: repeat(3, 1fr); } }
.pr-group { display: flex; flex-direction: column; gap: 16px; padding: 32px; background: #121212; border: 1px solid var(--line); border-radius: 8px; }
.pr-group > p { margin: 0; }
.pr-group .pr-rows { flex: 1; }
.pr-group .btn { width: 100%; }
.pr-rows { margin: 0; }
.pr-row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: flex-end; padding: 18px 0; border-top: 1px solid var(--line); }
.pr-row dt { flex: 1 1 200px; display: grid; gap: 4px; }
.pr-row dt .muted { font-size: 0.9rem; }
.pr-row dd { margin: 0; text-align: right; white-space: nowrap; }
.pr-row-name { font-weight: 600; font-size: 1.05rem; }
.pr-row .pr-amount { font-family: var(--f-display); font-weight: 900; font-size: 1.6rem; letter-spacing: -0.03em; }
.pr-small { margin: 0; font-size: var(--fs-small); color: var(--grey); }
.light .pr-small { color: var(--grey-dark); padding-top: 16px; border-top: 1px solid var(--line-dark); }
.pr-detail .pr-row { border-top-color: var(--line-dark); padding-block: 24px; }
.pr-detail .pr-row dt { flex-basis: 340px; gap: 8px; }
.pr-detail .pr-row-name { font-size: 1.25rem; }
.pr-row-text { color: #333; }
.pr-detail .pr-row .pr-amount { font-size: 2rem; }

.pr-gap { margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 800px) { .pr-values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pr-values { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .pr-steps { grid-template-columns: repeat(3, 1fr); } }
.pr-cta-lead { margin: 28px 0 0; max-width: 46ch; }
.pr-row { flex-wrap: nowrap; }
.pr-row dt { min-width: 0; flex: 1 1 auto; }
.pr-row dd { flex: none; }
@media (min-width: 900px) { .service-detail.pr-detail { grid-template-columns: 1fr 2fr; } }
.pr-values .h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
.cta-band .pr-cta-lead { margin-bottom: 28px; }
/* Con cinco enlaces en el menú: sin saltos de línea en pantallas medianas */
.main-nav ul a { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1060px) { .main-nav { gap: 20px; } .main-nav ul { gap: 18px; } }

/* 14. Formulario: detalles opcionales */
.extras { border: 1px solid #2a2a2a; border-radius: 8px; padding: 22px 20px 24px; margin: 0; display: grid; gap: 18px; min-width: 0; }
.extras legend { padding: 0 8px; margin-left: -8px; font-weight: 600; font-size: 0.95rem; }
.extras legend .opt { color: var(--grey); font-weight: 400; }
.extras-help { margin: -6px 0 0; color: var(--grey); font-size: 0.92rem; }
.extras .row { display: grid; gap: 18px; }
@media (min-width: 640px) { .extras .row { grid-template-columns: 1fr 1fr; } }
.extras .field label { font-weight: 400; color: #d4d4d4; }
.field select:invalid, .field select option[value=""] { color: var(--grey); }
