/* Dakota Producciones · web estática
   Sin JavaScript, sin cookies, sin recursos externos. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2-variations"), url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1D1D1B;
  --magenta: #FA4B8E;
  --magenta-dark: #D42E6E;
  --link: #B8245C;
  --grey: #6B6B6B;
  --mist: #F5F5F5;
  --line: #E2E2E2;
  --paper: #FFFFFF;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --space: clamp(4.5rem, 10vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.02; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.dot { color: var(--magenta); }

/* Cabecera */

.site-header { background: var(--paper); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1.4rem; padding-bottom: 1.4rem;
}
.logo { display: block; color: var(--ink); line-height: 0; }
.logo svg { width: clamp(7.5rem, 11vw, 9.5rem); height: auto; display: block; }
.logo:hover .ld { fill: var(--ink); }
.nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); list-style: none; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 0.25rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }

.site-header.on-magenta { background: var(--magenta); }
.on-magenta .logo .ld, .on-magenta .logo:hover .ld { fill: var(--paper); }

@media (max-width: 520px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .nav { gap: 1.4rem; }
}

/* Portada: hero */

.hero {
  background: var(--magenta);
  color: var(--paper);
  min-height: calc(100svh - 5rem);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero h1 {
  font-size: clamp(4.2rem, 21vw, 16.5rem);
  font-weight: 900;
  font-stretch: 68%;
  line-height: 0.84;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  padding-top: 2rem;
}
.hero h1 .dot { color: var(--ink); }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 0.5rem 3rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding: 1.1rem 0 1.6rem;
  border-top: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 600;
  list-style: none;
}
@media (max-width: 600px) {
  .hero { min-height: 72svh; }
  .hero-facts { gap: 0.3rem 1.4rem; }
}

/* Bloques generales */

.section { padding: var(--space) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head h2, .h2 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-stretch: 72%;
  letter-spacing: -0.005em;
}
.section-head p { margin-top: 1.1rem; font-size: 1.25rem; color: var(--grey); }

.lead { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.5; max-width: 40em; }
.muted { color: var(--grey); }

/* Portada: los dos pilares */

.pillars { display: grid; grid-template-columns: 1fr 1fr; }
.pillar { padding: clamp(2.5rem, 6vw, 5.5rem) var(--gutter); display: flex; flex-direction: column; }
.pillar h3 {
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  font-weight: 900; font-stretch: 66%; line-height: 0.9;
  margin-bottom: 1.6rem;
}
.pillar .claim { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.6rem; }
.pillar p { max-width: 32em; }
.pillar .scope { margin: 1.4rem 0 2rem; color: inherit; opacity: 0.8; max-width: 32em; }
.pillar .btn { margin-top: auto; align-self: flex-start; }
.pillar-dark { background: var(--ink); color: var(--paper); }
.pillar-light { background: var(--mist); color: var(--ink); }

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

.btn {
  display: inline-block; font-weight: 700; font-size: 1rem;
  padding: 0.95rem 1.5rem; border-radius: 999px; text-decoration: none;
  border: 2px solid currentColor; color: inherit;
}
.btn:hover { background: var(--magenta); border-color: var(--magenta); color: var(--paper); }
.btn-solid { background: var(--magenta); border-color: var(--magenta); color: var(--paper); }
.btn-solid:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* Portada: índice de proyectos */

.index { list-style: none; border-top: 2px solid var(--ink); }
.index li { border-bottom: 1px solid var(--line); }
.index a {
  display: grid; grid-template-columns: 1.4fr 1fr 0.7fr; gap: 1rem; align-items: baseline;
  padding: 1.35rem 0.25rem; color: var(--ink); text-decoration: none;
}
.index .name { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 800; font-stretch: 72%; line-height: 1.05; }
.index .role { color: var(--grey); }
.index .place { color: var(--grey); text-align: right; }
.index a:hover .name { color: var(--magenta-dark); }
.index a:hover { background: var(--mist); }

@media (max-width: 720px) {
  .index a { grid-template-columns: 1fr; gap: 0.2rem; }
  .index .place { text-align: left; }
}

/* Estudio */

.studio { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.studio .big {
  font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 900; font-stretch: 66%; line-height: 0.92;
}
@media (max-width: 860px) { .studio { grid-template-columns: 1fr; } }

/* Páginas interiores */

.page-hero { padding: clamp(3rem, 8vw, 7rem) 0 clamp(2.5rem, 6vw, 5rem); border-bottom: 2px solid var(--ink); }
.page-hero h1 {
  font-size: clamp(4rem, 15vw, 13rem);
  font-weight: 900; font-stretch: 66%; line-height: 0.86; letter-spacing: -0.01em;
}
.page-hero p { margin-top: 1.6rem; font-size: clamp(1.2rem, 2.2vw, 1.6rem); max-width: 34em; line-height: 1.4; }

.intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.intro h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-stretch: 74%; margin-bottom: 1.4rem; }
.aside-claim {
  font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; font-stretch: 74%; line-height: 1.1;
  border-left: 6px solid var(--magenta); padding-left: 1.4rem; align-self: start;
}
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

/* Servicios de Producción */

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem); list-style: none; }
.services h3 { font-size: 1.7rem; font-stretch: 78%; margin-bottom: 0.6rem; }
.services p { color: var(--grey); }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

.band { background: var(--mist); }

/* Fichas de proyecto */

.project {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}
.project:first-of-type { border-top: 2px solid var(--ink); }
.project .client { font-weight: 700; color: var(--magenta-dark); margin-bottom: 0.7rem; }
.project h3 { font-size: clamp(2rem, 4vw, 3.2rem); font-stretch: 70%; font-weight: 900; line-height: 0.98; }
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  margin: 0 0 1.8rem; border: 1px solid var(--line);
}
.facts div { padding: 0.85rem 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.facts dt { font-size: 0.85rem; color: var(--grey); }
.facts dd { margin: 0.15rem 0 0; font-weight: 700; line-height: 1.3; }
.project .note { font-size: 0.95rem; color: var(--grey); }
@media (max-width: 860px) { .project { grid-template-columns: 1fr; } }

/* Servicios de Tecnología */

.toc { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin-top: 2rem; }
.toc a {
  display: inline-block; padding: 0.55rem 1rem; border: 1.5px solid var(--ink); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.toc a:hover { background: var(--ink); color: var(--paper); }

.service {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}
.service:first-of-type { border-top: 2px solid var(--ink); }
.service h3 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-stretch: 68%; font-weight: 900; line-height: 0.95; }
.service .promise { margin-top: 1rem; font-size: 1.25rem; font-weight: 600; line-height: 1.35; max-width: 22em; }
.caps { list-style: none; margin: 1.6rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 2rem; }
.caps li { padding-left: 1.1rem; position: relative; }
.caps li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--magenta);
}
.caps strong { display: block; }
.caps span { color: var(--grey); font-size: 0.97rem; }
.refs { font-size: 0.97rem; color: var(--grey); }
.credential { margin-top: 1.6rem; padding: 1.3rem 1.4rem; background: var(--paper); border-left: 4px solid var(--magenta); }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .caps { grid-template-columns: 1fr; } }

.case { background: var(--ink); color: var(--paper); }
.case .client { color: var(--magenta); font-weight: 700; margin-bottom: 0.8rem; }
.case h2 { font-size: clamp(2.6rem, 6vw, 5rem); font-stretch: 66%; font-weight: 900; line-height: 0.92; max-width: 12em; }
.case .grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.5rem, 5vw, 5rem); margin-top: 2.5rem; }
.case .facts { border-color: #3d3d3b; }
.case .facts div { border-color: #3d3d3b; }
.case .facts dt { color: #B5B5B2; }
@media (max-width: 860px) { .case .grid { grid-template-columns: 1fr; } }

/* Páginas legales */

.legal { max-width: 46rem; padding: clamp(3rem, 7vw, 6rem) 0 var(--space); }
.legal h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-stretch: 70%; font-weight: 900; margin-bottom: 0.8rem; }
.legal .updated { color: var(--grey); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.45rem; font-stretch: 85%; margin: 2.4rem 0 0.8rem; line-height: 1.2; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4rem; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.4rem; margin: 0 0 1em; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; gap: 0.1rem; } .legal dd { margin-bottom: 0.6rem; } }

/* Cierre y pie */

.closing { padding: var(--space) 0; }
.closing p {
  font-size: clamp(2.4rem, 6.5vw, 5.4rem); font-weight: 900; font-stretch: 66%; line-height: 0.95;
  max-width: 14em;
}

.site-footer { background: var(--ink); color: var(--paper); padding-top: var(--space); overflow: hidden; scroll-margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: end; }
.site-footer h2 { font-size: clamp(3rem, 8vw, 6.5rem); font-stretch: 66%; font-weight: 900; line-height: 0.9; }
.site-footer .lead { margin-top: 1.2rem; color: #D8D8D5; }
.mail {
  display: inline-block; margin-top: 1.8rem;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem); font-weight: 700; font-stretch: 85%;
  color: var(--paper); text-decoration: underline; text-decoration-color: var(--magenta);
  text-decoration-thickness: 3px; text-underline-offset: 0.2em; word-break: break-word;
}
.mail:hover { color: var(--magenta); }
.footer-side { display: grid; gap: 1.4rem; }
.footer-side h3 { font-size: 1rem; font-weight: 700; color: #B5B5B2; margin-bottom: 0.4rem; font-stretch: 100%; }
.footer-side ul { list-style: none; }
.footer-side a { color: var(--paper); text-decoration: none; font-weight: 600; }
.footer-side a:hover { color: var(--magenta); }
.footer-side address { font-style: normal; color: #D8D8D5; }

.wordmark { margin: clamp(3.5rem, 9vw, 7rem) 0 clamp(1.5rem, 3vw, 2.5rem); color: var(--paper); }
.wordmark svg { width: 100%; height: auto; display: block; }
.legal-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem;
  padding: 1.6rem 0 2rem; border-top: 1px solid #3d3d3b; font-size: 0.92rem; color: #B5B5B2;
}
.legal-bar ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; list-style: none; }
.legal-bar a { color: #D8D8D5; }
.legal-bar a:hover { color: var(--paper); }

@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; align-items: start; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer .wordmark { display: none; }
  .hero, .case, .site-footer { background: none; color: var(--ink); }
}

/* ===== Imagen y movimiento ===== */

/* Entrada del titular: una sola secuencia al cargar */
.rise { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.rise > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .rise > span { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
  .rise:nth-child(2) > span { animation-delay: 0.12s; }
  .hero-facts { animation: fade 0.8s ease 0.55s both; }
  .page-hero p { animation: fade 0.8s ease 0.35s both; }
}
@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Tira de imágenes en movimiento bajo el hero */
.reel { background: var(--ink); padding: clamp(0.9rem, 2vw, 1.4rem) 0; overflow: hidden; }
.reel-track { display: flex; width: max-content; list-style: none; }
.reel-track li { padding-right: clamp(0.6rem, 1.2vw, 1rem); flex: none; }
.reel figure { margin: 0; position: relative; width: clamp(16rem, 30vw, 30rem); aspect-ratio: 16 / 9; overflow: hidden; }
.reel img { width: 100%; height: 100%; object-fit: cover; }
.reel figcaption {
  position: absolute; left: 0; bottom: 0; padding: 0.55rem 0.8rem; color: var(--paper);
  font-weight: 700; font-size: 0.95rem; background: linear-gradient(to top, rgba(29,29,27,0.85), rgba(29,29,27,0));
  width: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .reel-track { animation: reel 70s linear infinite; }
  .reel:hover .reel-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .reel { overflow-x: auto; }
  .reel-track li[aria-hidden="true"] { display: none; }
}
@keyframes reel { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Pilares con imagen */
.pillar { position: relative; overflow: hidden; min-height: clamp(30rem, 48vw, 40rem); isolation: isolate; }
.pillar > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.pillar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(29,29,27,0.95) 30%, rgba(29,29,27,0.55) 70%, rgba(29,29,27,0.35));
}
.pillar:hover > img { transform: scale(1.06); }
.pillar-light { background: var(--ink); color: var(--paper); }
.pillar .btn { color: var(--paper); }

/* Imágenes a sangre en páginas interiores */
.banner { margin: 0; overflow: hidden; height: clamp(16rem, 42vw, 34rem); background: var(--ink); }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.service figure { margin: 2rem 0 0; aspect-ratio: 4 / 3; overflow: hidden; max-width: 30rem; }
.service figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .service figure { aspect-ratio: 16 / 9; } }

/* Zoom suave ligado al scroll (solo navegadores que lo soportan) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .banner img, .service figure img {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 55%;
    }
  }
}
@keyframes settle { from { transform: scale(1.18); } to { transform: scale(1); } }

/* Índice de proyectos: desplazamiento al pasar */
.index .name { transition: transform 0.35s ease, color 0.2s ease; }
.index a:hover .name, .index a:focus-visible .name { transform: translateX(0.6rem); }

/* Cierre en magenta */
.closing { background: var(--magenta); color: var(--paper); }
.closing .dot { color: var(--ink); }
.pillar { justify-content: flex-end; }
.pillar .btn { margin-top: 0.4rem; }
.pillar .scope { margin: 1rem 0 1.8rem; }
.pillar { min-height: clamp(34rem, 56vw, 46rem); }
.pillar::before { background: linear-gradient(to top, rgba(29,29,27,0.94) 0%, rgba(29,29,27,0.82) 38%, rgba(29,29,27,0.2) 75%, rgba(29,29,27,0.05) 100%); }
