@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* Colores de David: negro y blanco del logo, y el amarillo de sus portadas de Instagram */
:root {
  --marca: #f0d21e;
  --sobre-marca: #000000;
  --plata: #c9c9ce;

  --fondo: #000000;
  --superficie: #0e0e10;
  --campo: #09090a;
  --borde: #2a2a2f;
  --texto: #f5f5f5;
  --suave: #a6a6ab;
  --error: #ff8a7a;

  --titulo: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --cuerpo: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ancho: 1120px;
  --radio: 14px;
  --cabecera: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--cabecera) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--cuerpo);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden], a[data-enlace]:not([href]) { display: none !important; }
html:not(.js) .formulario { display: none; }
:focus-visible { outline: 3px solid var(--marca); outline-offset: 3px; border-radius: 4px; }

.contenedor { width: min(100% - 40px, var(--ancho)); margin-inline: auto; }
.saltar { position: absolute; left: -9999px; }
.saltar:focus { left: 16px; top: 16px; z-index: 100; background: var(--texto); color: var(--fondo); padding: 10px 16px; border-radius: 8px; }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 28px;
  background: var(--marca); color: var(--sobre-marca);
  border: 1px solid var(--marca); border-radius: 10px;
  font-family: var(--titulo); font-weight: 700; font-size: 1.2rem; line-height: 1;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: filter .2s, background-color .2s, border-color .2s;
}
.boton:hover { filter: brightness(.86); }
.boton[disabled] { opacity: .6; cursor: progress; }
.boton--linea { background: transparent; color: var(--texto); border-color: var(--borde); }
.boton--linea:hover { filter: none; border-color: var(--texto); }
.boton--mini { min-height: 44px; padding: 8px 18px; font-size: 1.05rem; }

/* Cabecera */
.cabecera {
  position: sticky; top: 0; z-index: 30; height: var(--cabecera);
  background: rgba(0, 0, 0, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borde);
}
.cabecera .contenedor { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.marca { display: inline-flex; align-items: center; gap: 10px; font-family: var(--titulo); font-weight: 600; font-size: 1.2rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.marca img { width: 40px; height: 40px; }
.menu { display: none; gap: 32px; }
.menu a { color: var(--suave); text-decoration: none; font-weight: 500; font-size: 1rem; padding: 10px 0; transition: color .2s; }
.menu a:hover { color: var(--texto); }

/* Hero */
.hero { position: relative; padding: clamp(56px, 10vw, 112px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -20% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .09), transparent);
  pointer-events: none;
}
.hero .contenedor { position: relative; }
.etiqueta {
  display: flex; align-items: flex-start; gap: 12px;
  color: var(--plata); font-weight: 600; font-size: .875rem; letter-spacing: .16em; text-transform: uppercase;
}
.etiqueta::before { content: ""; width: 28px; height: 2px; margin-top: .72em; background: currentColor; flex: none; }
.hero h1 {
  font-family: var(--titulo); font-weight: 700; text-transform: uppercase;
  font-size: clamp(3.3rem, 14vw, 7.5rem); line-height: .88; letter-spacing: -.01em;
}
.hero h1 span { color: var(--marca); }
.hero h1 .etiqueta { margin-bottom: 20px; font-family: var(--cuerpo); line-height: 1.6; letter-spacing: .16em; }
.hero__logo { display: none; }
.hero__texto { margin-top: 28px; max-width: 34em; font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--suave); }
.hero__texto strong { color: var(--texto); font-weight: 500; }
.hero__acciones { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.firma { margin-top: 32px; display: inline-flex; align-items: center; gap: 14px; min-height: 60px; text-decoration: none; }
.firma img { width: 60px; height: 60px; padding: 2px; border: 2px solid var(--marca); border-radius: 50%; object-fit: cover; }
.firma strong { display: block; font-weight: 600; line-height: 1.3; }
.firma > span > span { display: block; color: var(--suave); font-size: .95rem; }
.firma:hover > span > span { color: var(--texto); }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Cinta con su lema */
.cinta { overflow: hidden; padding: 18px 0; border-top: 1px solid var(--borde); }
.cinta__pista { display: flex; width: max-content; animation: cinta 36s linear infinite; }
.cinta span {
  display: inline-flex; align-items: center; padding-right: .55em; white-space: nowrap;
  font-family: var(--titulo); font-weight: 700; font-size: clamp(2rem, 6vw, 3.75rem); line-height: 1; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px var(--texto);
}
.cinta span:nth-child(even) { color: var(--marca); -webkit-text-stroke: 0; }
.cinta span::after { content: ""; width: .2em; height: .2em; margin-left: .55em; border-radius: 50%; background: var(--marca); }
@keyframes cinta { to { transform: translateX(-50%); } }

/* Sus vídeos de Instagram */
.tira__cabecera { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.tira {
  margin: clamp(28px, 5vw, 48px) -20px 0; padding: 0 20px 4px;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 44%, 210px); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none;
}
.tira::-webkit-scrollbar { display: none; }
.tira li { scroll-snap-align: start; }
.tira a { display: block; overflow: hidden; border: 1px solid var(--borde); border-radius: 12px; }
.tira img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; transition: transform .3s ease; }
.tira a:hover img { transform: scale(1.04); }

.datos { margin-top: clamp(48px, 8vw, 88px); display: grid; gap: 0; border-top: 1px solid var(--borde); }
.datos li { padding: 22px 0; border-bottom: 1px solid var(--borde); }
.datos strong { display: block; font-family: var(--titulo); font-weight: 700; font-size: 1.75rem; line-height: 1.1; text-transform: uppercase; letter-spacing: .01em; }
.datos span { display: block; margin-top: 6px; color: var(--suave); font-size: 1rem; }

/* Secciones sin contenido: solo se ven en local con ?notas */
html:not(.local) [data-pendiente] { display: none !important; }
.pendiente { padding: 20px 0; border-top: 1px dashed var(--borde); }
.pendiente .contenedor { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.pendiente h2 { font-family: var(--titulo); font-weight: 700; font-size: 1.5rem; line-height: 1.2; text-transform: uppercase; }
.menu a[data-pendiente] { text-decoration: underline dashed; text-underline-offset: 6px; }

/* Secciones */
.seccion { padding: clamp(72px, 11vw, 136px) 0; border-top: 1px solid var(--borde); }
.seccion--alt { background: var(--superficie); }
.seccion h2 {
  margin-top: 16px;
  font-family: var(--titulo); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.5rem, 7.5vw, 4.75rem); line-height: .94;
}
.seccion__entrada { margin-top: 20px; max-width: 36em; color: var(--suave); font-size: 1.125rem; }
.seccion h3 { font-family: var(--titulo); font-weight: 700; text-transform: uppercase; font-size: 1.6rem; line-height: 1.1; letter-spacing: .01em; }

.frase { display: inline-block; }

/* Quién soy */
.quien__texto { margin-top: clamp(32px, 5vw, 56px); display: grid; gap: 20px; }
.quien__texto p { max-width: 34em; font-size: 1.15rem; }
.quien__texto p + p { color: var(--suave); }

/* Cómo trabajo */
.pasos { margin-top: clamp(40px, 6vw, 64px); display: grid; gap: 16px; counter-reset: paso; }
.paso { padding: 28px; background: var(--fondo); border: 1px solid var(--borde); border-radius: var(--radio); }
.paso::before {
  counter-increment: paso; content: "0" counter(paso);
  display: block; margin-bottom: 20px;
  font-family: var(--titulo); font-weight: 700; font-size: 4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--marca);
}
.paso p { margin-top: 10px; color: var(--suave); }

/* Qué incluye */
.piezas { margin-top: clamp(40px, 6vw, 64px); display: grid; gap: 16px; }
.pieza { padding: 28px; background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); }
.pieza svg { width: 30px; height: 30px; margin-bottom: 18px; stroke: var(--marca); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pieza p { margin-top: 10px; color: var(--suave); }
.cierre { margin-top: clamp(40px, 6vw, 56px); }

/* Preguntas */
.preguntas { margin-top: clamp(32px, 5vw, 56px); max-width: 820px; border-top: 1px solid var(--borde); }
.preguntas details { border-bottom: 1px solid var(--borde); }
.preguntas summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; min-height: 44px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.15rem;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background: linear-gradient(var(--marca), var(--marca)) center / 100% 2px no-repeat, linear-gradient(var(--marca), var(--marca)) center / 2px 100% no-repeat;
  transition: transform .2s;
}
.preguntas details[open] summary::after { transform: rotate(45deg); }
.preguntas details p { padding: 0 36px 24px 0; color: var(--suave); max-width: 40em; }

/* Alta */
.alta { display: grid; gap: 40px; }
.contacto { margin-top: 28px; display: grid; gap: 12px; }
.contacto a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--texto); text-decoration: none; font-weight: 500; }
.contacto a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contacto svg { width: 22px; height: 22px; flex: none; stroke: var(--marca); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.formulario { padding: clamp(24px, 4vw, 40px); background: var(--fondo); border: 1px solid var(--borde); border-radius: var(--radio); }
.campos { display: grid; gap: 20px; }
.campo label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 1rem; }
.campo small { font-weight: 400; color: var(--suave); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  background: var(--campo); color: var(--texto);
  border: 1px solid var(--borde); border-radius: 10px;
  font: inherit; transition: border-color .2s;
}
.campo textarea { min-height: 112px; resize: vertical; }
.campo select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9a8a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 46px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--marca); box-shadow: 0 0 0 3px color-mix(in srgb, var(--marca) 30%, transparent); }
.casilla { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-size: .95rem; color: var(--suave); cursor: pointer; }
.casilla input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--marca); cursor: pointer; }
.casilla a { color: var(--texto); }
.letra { font-size: .875rem; color: var(--suave); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulario .boton { width: 100%; margin-top: 4px; }
.aviso { font-size: 1rem; }
.aviso--error { color: var(--error); }
.aviso a { color: var(--texto); }
.gracias h3 { font-size: 2.2rem; color: var(--marca); }
.gracias p { margin-top: 12px; color: var(--suave); }

/* Pie */
.pie { padding: 40px 0 120px; border-top: 1px solid var(--borde); color: var(--suave); font-size: .95rem; }
.pie .contenedor { display: grid; gap: 20px; }
.pie nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.pie a, .pie button { display: inline-flex; align-items: center; min-height: 44px; color: var(--suave); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; transition: color .2s; }
.pie a:hover, .pie button:hover { color: var(--texto); }

/* Barra fija de móvil */
.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--borde);
  transform: translateY(110%); transition: transform .25s ease;
}
.barra.visible { transform: none; }
.barra .boton { flex: 1; }
.barra__wa { flex: none !important; width: 52px; padding: 0; }
.barra__wa svg { width: 24px; height: 24px; }

/* Cookies */
.cookies {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 520px;
  padding: 22px; background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.cookies p { font-size: .95rem; color: var(--suave); }
.cookies p a { color: var(--texto); }
.cookies div { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookies .boton { background: var(--texto); border-color: var(--texto); color: var(--fondo); }

/* Aviso de pendientes (solo en local) */
.pendientes {
  position: fixed; top: 76px; right: 12px; z-index: 100; max-width: 280px;
  padding: 14px 16px; background: #fff4c2; color: #1a1a1a; border-radius: 10px;
  font: 500 .85rem/1.45 var(--cuerpo); box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.pendientes strong { display: block; margin-bottom: 4px; }
.pendientes button { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; background: none; border: 0; font-size: 1.1rem; cursor: pointer; }

/* Páginas legales */
.legal { padding: clamp(48px, 8vw, 96px) 0; }
.legal .contenedor { max-width: 760px; }
.legal h1 { font-family: var(--titulo); font-weight: 700; text-transform: uppercase; font-size: clamp(2.4rem, 7vw, 4rem); line-height: .95; }
.legal h2 { margin: 44px 0 12px; font-family: var(--titulo); font-weight: 700; text-transform: uppercase; font-size: 1.6rem; line-height: 1.1; }
.legal p, .legal li { color: var(--suave); }
.legal p + p, .legal ul { margin-top: 14px; }
.legal ul { padding-left: 20px; list-style: disc; }
.legal li + li { margin-top: 8px; }
.legal strong, .legal a { color: var(--texto); }
.legal table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: .95rem; }
.legal th, .legal td { padding: 12px 10px; border-bottom: 1px solid var(--borde); text-align: left; vertical-align: top; color: var(--suave); }
.legal th { color: var(--texto); font-weight: 600; }
.legal .tabla { overflow-x: auto; }

/* Entrada al hacer scroll */
.js .aparece { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js .aparece.dentro { opacity: 1; transform: none; }

@media (min-width: 640px) {
  .campos--dos { grid-template-columns: 1fr 1fr; }
  .datos { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--borde); }
  .datos li { padding: 28px 28px 28px 0; border-bottom: 0; }
  .datos li + li { padding-left: 28px; border-left: 1px solid var(--borde); }
  .piezas { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 359px) {
  .marca span { display: none; }
}
@media (min-width: 860px) {
  .menu { display: flex; }
  .hero__rejilla { display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 30vw, 400px); gap: 48px; align-items: center; }
  .hero__logo { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 48px rgba(255, 255, 255, .16)); }
  .hero h1 { font-size: clamp(4.5rem, 9.2vw, 7.5rem); }
  .tira { margin-inline: 0; padding-inline: 0; grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; }
  .barra { display: none; }
  .pie { padding-bottom: 40px; }
  .pie .contenedor { grid-template-columns: 1fr auto; align-items: center; }
  .quien__texto { grid-template-columns: 1fr 1fr; gap: 64px; }
  .pasos { grid-template-columns: repeat(3, 1fr); }
  .alta { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .alta__intro { position: sticky; top: calc(var(--cabecera) + 32px); }
}
@media (min-width: 1040px) {
  .piezas { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .aparece { opacity: 1; transform: none; }
}
