/* =========================================================
   Charly DZP · charlydzp.com
   Brand book 2026: tinta + hueso, color para encender.
   Anton grita, Archivo conversa, Space Mono anota.
   ========================================================= */

:root {
  --tinta: #121212;
  --hueso: #EFE8DC;
  --rojo: #FF3B2F;
  --amarillo: #FFE100;
  --rosa: #FF4F9A;
  --verde: #B6FF3B;
  --azul: #2B4BFF;

  --f-titular: 'Anton', 'Archivo', system-ui, sans-serif;
  --f-texto: 'Archivo', system-ui, sans-serif;
  --f-mono: 'Space Mono', ui-monospace, monospace;
  --f-serif: 'Fraunces', Georgia, serif;

  --ancho: 1280px;
  --gutter: 24px;
}

/* Tema oscuro (por defecto) */
:root,
[data-theme="dark"] {
  --bg: #121212;
  --fg: #EFE8DC;
  --apagado: #A9A398;
  --linea: rgba(239, 232, 220, 0.16);
  --superficie: #1A1A1A;
  --punto: rgba(239, 232, 220, 0.07);
  --sombra-sobria: #EFE8DC;
  --pie-bg: #EFE8DC;
  --pie-fg: #121212;
  --pie-apagado: #5A554D;
  --pie-linea: rgba(18, 18, 18, 0.2);
  color-scheme: dark;
}

/* Tema claro */
[data-theme="light"] {
  --bg: #EFE8DC;
  --fg: #121212;
  --apagado: #57524A;
  --linea: rgba(18, 18, 18, 0.18);
  --superficie: #E6DECF;
  --punto: rgba(18, 18, 18, 0.08);
  --sombra-sobria: #121212;
  --pie-bg: #121212;
  --pie-fg: #EFE8DC;
  --pie-apagado: #A9A398;
  --pie-linea: rgba(239, 232, 220, 0.2);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-texto);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.contenedor { max-width: var(--ancho); margin: 0 auto; padding-inline: var(--gutter); }

.saltar { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--amarillo); color: var(--tinta); padding: 10px 14px; font-family: var(--f-mono); }
.saltar:focus { left: 8px; top: 8px; }

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

.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.negrita { font-weight: 700; }
.apagado { color: var(--apagado); }
.apagado-oscuro { color: #5A554D; }
.rojo { color: var(--rojo); }
.rosa { color: var(--rosa); }

.etiqueta {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--amarillo); color: var(--tinta); padding: 6px 10px;
}

.enlace-mono {
  font-family: var(--f-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-decoration: none;
  border-bottom: 2px solid var(--azul); padding: 4px 0;
}
.enlace-mono--rosa { border-color: var(--rosa); text-transform: uppercase; }
.enlace-mono:hover { color: var(--rosa); }

/* ---------- Barra superior ---------- */
.barra { border-bottom: 1px solid var(--linea); }
.barra__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 10px; }

.redes { display: flex; gap: 8px; }
.redes a {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--fg); color: var(--fg); transition: background .15s, color .15s;
}
.redes a:hover { background: var(--fg); color: var(--bg); }
.redes svg, .plataforma svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round;
}
svg .relleno { fill: currentColor; }

.tema { display: flex; border: 2px solid var(--fg); }
.tema button {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 14px; min-height: 40px; border: 0; cursor: pointer; background: transparent; color: var(--fg);
}
.tema button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* ---------- Cabecera y menú ---------- */
.cabecera { border-bottom: 3px solid var(--fg); }
.cabecera__in { display: flex; flex-direction: column; gap: 14px; padding-block: 18px 16px; }

.logo { align-self: flex-start; font-family: var(--f-titular); font-size: 40px; line-height: 1; text-decoration: none; letter-spacing: 0.01em; }
.logo span { color: var(--rojo); }

.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.menu > a:not(.btn-mapea) {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--f-titular); font-size: 20px; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none;
  padding: 10px 16px; border: 1px solid var(--linea); white-space: nowrap; transition: background .15s, color .15s;
}
.menu > a:not(.btn-mapea):hover { border-color: var(--fg); }
.menu > a.activo { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.menu i { width: 8px; height: 8px; flex-shrink: 0; background: var(--c); }
.menu i.borde { outline: 1px solid var(--apagado); }

.btn-mapea {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-titular); font-size: 20px; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none;
  padding: 10px 16px; background: var(--azul); color: var(--hueso); border: 2px solid var(--tinta);
  box-shadow: 4px 4px 0 var(--verde); white-space: nowrap; transition: transform .12s, box-shadow .12s;
}
.btn-mapea:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--verde); }
.btn-mapea svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; }
.btn-mapea--movil { display: none; }
.btn-mapea--escritorio { margin-left: 10px; flex-shrink: 0; }

/* ---------- Portada / Música ---------- */
.portada {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--linea);
  background-image: radial-gradient(var(--punto) 1.2px, transparent 1.6px); background-size: 18px 18px;
}
.portada__circulo {
  position: absolute; right: -6vw; top: -10vw; width: clamp(220px, 34vw, 500px); aspect-ratio: 1; border-radius: 50%;
  background-color: var(--rosa);
  background-image: radial-gradient(rgba(18,18,18,0.35) 2px, transparent 2.6px); background-size: 14px 14px;
}
.portada__in { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: clamp(48px, 6vw, 88px); }
.portada__texto { flex: 1.15 1 min(380px, 100%); min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.portada__foto { flex: 1.1 1 min(340px, 100%); min-width: 0; display: flex; justify-content: center; }

.titular { font-family: var(--f-titular); font-weight: 400; font-size: clamp(88px, 12.5vw, 200px); overflow-wrap: anywhere; line-height: 0.86; text-transform: uppercase; }
.titular span { display: block; }

.sticker {
  align-self: flex-start; transform: rotate(-2.5deg);
  font-family: var(--f-texto); font-weight: 900; font-stretch: 85%; font-size: clamp(28px, 3.2vw, 44px); line-height: 1; text-transform: uppercase;
  background: var(--amarillo); color: var(--tinta); padding: 14px 22px; box-shadow: 10px 10px 0 var(--rojo);
}
.bio { margin-top: 8px; max-width: 560px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; }

.escucha { display: flex; flex-direction: column; gap: 10px; }
.escucha__botones { display: flex; flex-wrap: wrap; gap: 12px; }
.plataforma {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px;
  font-family: var(--f-mono); font-size: 14px; font-weight: 700; text-decoration: none;
  background: var(--fondo, var(--amarillo)); color: var(--tinta); border: 3px solid var(--tinta); box-shadow: 5px 5px 0 var(--fg);
  transition: transform .12s, box-shadow .12s;
}
.plataforma:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--fg); }

.foto {
  position: relative; margin: 0; width: 100%; max-width: 560px; aspect-ratio: 3 / 4; transform: rotate(2deg);
  border: 3px solid var(--tinta); box-shadow: 14px 14px 0 var(--amarillo); background: #0B0B0B;
}
.foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.foto__sello {
  position: absolute; right: -14px; top: 26px; transform: rotate(6deg);
  font-family: var(--f-mono); font-size: 12px; font-weight: 700; background: var(--azul); color: var(--hueso); padding: 6px 10px; border: 2px solid var(--tinta);
}

/* ---------- Fechas ---------- */
.fechas { background: var(--superficie); border-bottom: 1px solid var(--linea); }
.fechas__in { padding-block: 64px 72px; max-width: calc(880px + 2 * var(--gutter)); margin-inline: 0; }
@media (min-width: 1328px) { .fechas__in { margin-inline: calc((100vw - var(--ancho)) / 2); } }
.fechas__cab { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.subtitular { font-family: var(--f-titular); font-weight: 400; font-size: clamp(40px, 4.4vw, 60px); line-height: 0.95; text-transform: uppercase; }
.fechas__lista { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--fg); }
.fecha { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--linea); }
.fecha__dia {
  flex-shrink: 0; width: 72px; display: flex; flex-direction: column; align-items: center; padding: 6px 0;
  background: var(--c, var(--amarillo)); color: var(--tinta); border: 2px solid var(--tinta);
}
.fecha__dia b { font-family: var(--f-titular); font-weight: 400; font-size: 30px; line-height: 1; }
.fecha__dia small { font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.fecha__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fecha__lugar { font-weight: 800; font-size: 19px; text-transform: uppercase; }
.fecha__ciudad { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--apagado); }
.fecha__boton {
  flex-shrink: 0; font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--fg); padding: 10px 12px;
}
.fecha__boton:hover { background: var(--fg); color: var(--bg); }
.fechas__vacio { padding: 22px 0; border-bottom: 1px solid var(--linea); font-family: var(--f-mono); font-size: 14px; color: var(--apagado); }

/* ---------- Secciones genéricas ---------- */
.seccion { border-bottom: 1px solid var(--linea); padding-block: 80px 96px; }
.seccion__cab { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.seccion__cab > div { display: flex; flex-direction: column; gap: 14px; }
.titular-seccion { font-family: var(--f-titular); font-weight: 400; font-size: clamp(46px, 6vw, 88px); line-height: 0.92; text-transform: uppercase; }

/* ---------- Instagram ---------- */
.ig { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.ig__post { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--fg); min-width: 0; }
.ig__img {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  border: 3px solid var(--tinta); box-shadow: 6px 6px 0 var(--sombra, var(--amarillo));
  background-color: var(--fondo, var(--rojo));
  background-image: radial-gradient(circle at 50% 42%, rgba(255,255,255,0.28), transparent 62%), radial-gradient(rgba(18,18,18,0.38) 1.5px, transparent 2px);
  background-size: 100% 100%, 8px 8px;
  transition: transform .15s, box-shadow .15s;
}
.ig__post:hover .ig__img { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--sombra, var(--amarillo)); }
.ig__img img { width: 100%; height: 100%; object-fit: cover; }
.ig__tipo {
  position: absolute; left: 8px; top: 8px; z-index: 1;
  font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; background: var(--tinta); color: var(--hueso); padding: 3px 6px;
}
.ig__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; z-index: 1; }
.ig__meta { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--apagado); }
.ig__pista { display: none; }
.ig__puntos { display: flex; gap: 6px; }
.ig__puntos i { width: 6px; height: 6px; background: var(--linea); transition: width .2s, background .2s; }
.ig__puntos i.activo { width: 18px; background: var(--fg); }

/* ---------- Tarjetas (Otros proyectos) ---------- */
.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 32px; }
.tarjeta {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 300px; padding: 26px; background: var(--fondo, var(--rojo)); color: var(--tinta);
  border: 3px solid var(--tinta); box-shadow: 10px 10px 0 var(--sombra, var(--amarillo));
}
.tarjeta[style*="--circulo"]::after {
  content: ""; position: absolute; right: -46px; bottom: -46px; width: 160px; height: 160px; border-radius: 50%;
  background: var(--circulo); border: 3px solid var(--tinta);
}
.tarjeta > * { position: relative; z-index: 1; }
.tarjeta--azul { color: var(--hueso); }
.tarjeta--hueso { background: var(--hueso); box-shadow: 10px 10px 0 var(--rosa); }
.tarjeta--sobria { background: #F4F0E8; box-shadow: 10px 10px 0 var(--sombra-sobria); gap: 32px; }
.tarjeta__trazos { position: absolute !important; right: 18px; top: 18px; width: 92px; height: 92px; fill: none; stroke-width: 5; stroke-linecap: square; }
.tarjeta__eti { font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.tarjeta__eti--sobria { font-weight: 400; color: #5A554D; }
.tarjeta__cuerpo { display: flex; flex-direction: column; gap: 10px; padding-right: 60px; }
.tarjeta--sobria .tarjeta__cuerpo, .tarjeta--hueso .tarjeta__cuerpo { padding-right: 0; }
.tarjeta__cuerpo p { font-size: 17px; line-height: 1.4; }
.tarjeta__titulo { font-family: var(--f-titular); font-weight: 400; font-size: clamp(42px, 4.4vw, 60px); line-height: 0.95; text-transform: uppercase; }
.tarjeta__titulo--mono { font-family: var(--f-mono); font-weight: 700; font-size: clamp(34px, 3.4vw, 46px); line-height: 1; letter-spacing: -0.02em; text-transform: none; }
.tarjeta__titulo--serif { font-family: var(--f-serif); font-weight: 500; font-size: clamp(34px, 3.4vw, 46px); line-height: 1.04; text-transform: none; }
.tarjeta__linea { width: 34px; height: 3px; background: var(--rojo); }
.tarjeta__enlace {
  align-self: flex-start; font-family: var(--f-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  border-bottom: 2px solid currentColor; padding: 4px 0;
}
.tarjeta__enlace--rojo { border-color: var(--rojo); }
.tarjeta__boton {
  align-self: flex-start; font-family: var(--f-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  color: var(--hueso); background: var(--tinta); border: 2px solid var(--tinta); padding: 10px 14px; box-shadow: 5px 5px 0 var(--rojo);
}
.tarjeta__chip {
  align-self: flex-start; font-family: var(--f-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-decoration: none;
  color: var(--tinta); background: var(--verde); border: 2px solid var(--tinta); padding: 8px 12px;
}
.tarjeta a:hover { opacity: .85; }

/* ---------- Bloque Mapea ---------- */
.mapea {
  display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding: clamp(28px, 4vw, 56px);
  background: var(--azul); color: var(--hueso); border: 3px solid var(--tinta); box-shadow: 14px 14px 0 var(--verde);
}
.mapea__texto { flex: 1 1 min(380px, 100%); min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.mapea__titulo { font-family: var(--f-titular); font-weight: 400; font-size: clamp(52px, 7vw, 104px); line-height: 0.9; text-transform: uppercase; }
.mapea__texto p { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.4; max-width: 460px; }
.mapea__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.mapea__chips li { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; border: 2px solid var(--hueso); padding: 5px 9px; }
.mapea__boton {
  align-self: flex-start; margin-top: 8px; font-family: var(--f-mono); font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-decoration: none;
  color: var(--tinta); background: var(--verde); border: 3px solid var(--tinta); padding: 14px 20px; box-shadow: 6px 6px 0 var(--tinta);
  transition: transform .12s, box-shadow .12s;
}
.mapea__boton:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--tinta); }
.mapea__visual { flex: 1 1 min(320px, 100%); min-width: 0; display: flex; justify-content: center; }
.terminal { width: 100%; max-width: 440px; transform: rotate(1.5deg); background: var(--hueso); color: var(--tinta); border: 3px solid var(--tinta); box-shadow: 10px 10px 0 var(--tinta); }
.terminal__barra { display: flex; gap: 6px; padding: 8px 12px; background: var(--verde); border-bottom: 3px solid var(--tinta); }
.terminal__barra i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--tinta); }
.terminal__cuerpo { padding: 20px; display: flex; flex-direction: column; gap: 12px; font-family: var(--f-mono); font-size: 14px; line-height: 1.5; }
.terminal__resalte { align-self: flex-start; background: var(--rosa); padding: 2px 8px; font-weight: 700; }
.terminal__datos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.terminal__datos div { border: 2px solid var(--tinta); padding: 12px 8px; text-align: center; }
.terminal__datos b { font-family: var(--f-titular); font-weight: 400; font-size: 18px; text-transform: uppercase; }

/* ---------- Pie ---------- */
.pie { background: var(--pie-bg); color: var(--pie-fg); }
.pie__in { display: flex; flex-direction: column; gap: 48px; padding-block: 72px 40px; }
.pie__lema { font-family: var(--f-titular); font-size: clamp(56px, 9vw, 140px); line-height: 0.9; text-transform: uppercase; }
.pie__columnas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px; }
.pie__columnas > div { display: flex; flex-direction: column; gap: 10px; font-size: 18px; }
.pie__columnas a { text-decoration: none; }
.pie__columnas a:hover { text-decoration: underline; text-decoration-color: var(--rojo); text-decoration-thickness: 2px; }
.pie__eti { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pie-apagado); }
.pie__base { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--pie-linea); }
.pie__flechas { width: 44px; height: 44px; fill: none; stroke: var(--rojo); stroke-width: 3.5; stroke-linecap: square; }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1100px) {
  .ig { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =========================================================
   Móvil
   ========================================================= */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }

  .redes a { width: 40px; height: 40px; }
  .tema button { padding: 8px 10px; }

  /* Menú: sin deslizar, todo visible; Mapea bajo el título */
  .btn-mapea--movil { display: flex; font-size: 18px; margin-right: 4px; }
  .btn-mapea--escritorio { display: none; }
  .menu > a:not(.btn-mapea) { font-size: 15px; padding: 8px 10px; }

  .portada__in { gap: 40px; }
  .titular { font-size: clamp(88px, 27vw, 120px); }
  .foto { transform: rotate(1.5deg); box-shadow: 10px 10px 0 var(--amarillo); }
  .foto__sello { right: -6px; }

  .fecha { gap: 12px; }
  .fecha__dia { width: 60px; }
  .fecha__boton { padding: 8px 10px; }

  .seccion { padding-block: 64px 72px; }

  /* Instagram: un post a la vez, deslizando */
  .ig {
    display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0 10px 14px 0; margin-right: calc(-1 * var(--gutter)); scrollbar-width: none;
  }
  .ig::-webkit-scrollbar { display: none; }
  .ig__post { flex: 0 0 82%; scroll-snap-align: start; }
  .ig__pista { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }

  .tarjetas { gap: 28px; }
  .tarjeta { min-height: 260px; }
  .mapea { box-shadow: 10px 10px 0 var(--verde); }
}
