/* DM.PHOTOS — pensado primero para celular */
:root {
  --bg: #0d0e10;
  --panel: #16181b;
  --panel-2: #1e2125;
  --text: #f2f2f0;
  --muted: #a3a7ad;
  --accent: #e8402f;
  --wa: #25d366;
  --borde: rgba(255, 255, 255, .14);
  --gap: 10px;
  --barra: 60px;
  --titulo: "Bebas Neue", Impact, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; }
img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Foto de fondo con parallax ---------- */
.fondo {
  position: fixed;
  left: 0;
  right: 0;
  top: -8vh;
  height: 123vh;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
.fondo div {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 28%;
}
.nitido { background-image: url("img/fondo.jpg"); }
.borroso {
  background-image: url("img/fondo-chico.jpg");
  filter: blur(14px) brightness(.4) saturate(1.1);
  transform: scale(1.08);
  opacity: 0;
  will-change: opacity;
}
.velo {
  background: linear-gradient(180deg, rgba(13,14,16,.05) 0%, rgba(13,14,16,.12) 40%, rgba(13,14,16,.55) 68%, rgba(13,14,16,.92) 100%);
}
body.interna .borroso,
body.viendo .borroso { opacity: 1 !important; transition: opacity .35s ease; }

/* ---------- Barra superior ---------- */
.barra {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--barra);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.barra.solida {
  background: rgba(13, 14, 16, .78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: var(--borde);
}
/* Con el menú abierto la barra no puede tener desenfoque: encerraría al menú en su altura */
.barra.con-menu { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: transparent; }
.marca {
  position: relative;
  z-index: 2;
  font-family: var(--titulo);
  font-size: 26px;
  letter-spacing: .05em;
  text-decoration: none;
  line-height: 1;
}
.marca span { color: var(--accent); }
.menu-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  display: grid;
  place-content: center;
  gap: 7px;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.menu-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: transform .3s ease;
}
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.menu {
  position: fixed;
  inset: 0;
  background: rgba(13, 14, 16, .96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s .3s;
}
.menu.abierto { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.menu a {
  font-family: var(--titulo);
  font-size: clamp(40px, 11vw, 56px);
  letter-spacing: .03em;
  line-height: 1.15;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s ease;
}
.menu a:hover, .menu a[aria-current="page"] { color: var(--text); }
.menu a[aria-current="page"]::before { content: "— "; color: var(--accent); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 2px solid var(--text);
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { background: transparent; color: var(--text); }
.btn-borde {
  background: rgba(0, 0, 0, .38);
  color: var(--text);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-borde:hover { background: var(--text); color: var(--bg); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #06210f; }
.btn-wa:hover { background: transparent; color: var(--wa); }
.btn svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Portada ---------- */
.portada {
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 0 16px clamp(72px, 12svh, 120px);
  position: relative;
}
.portada-texto { will-change: transform, opacity; width: 100%; }
.logo {
  font-family: var(--titulo);
  font-weight: 400;
  font-size: clamp(64px, 18vw, 168px);
  letter-spacing: .04em;
  line-height: .85;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .45);
}
.logo span { color: var(--accent); }
.sub {
  margin-top: 14px;
  font-size: clamp(12px, 3vw, 15px);
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .9;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.botones {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(28px, 5svh, 48px);
  flex-wrap: wrap;
}
.botones .btn { flex: 1 1 140px; max-width: 220px; }
.bajar {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.bajar::after {
  content: "";
  width: 1.5px;
  height: 36px;
  background: linear-gradient(var(--text), transparent);
  animation: latir 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes latir {
  0%, 100% { transform: scaleY(.4); opacity: .4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Secciones y títulos ---------- */
.seccion {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 16px;
}
.ceja {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.ceja a { text-decoration: none; color: var(--muted); }
.ceja a:hover { color: var(--text); }
.titulo {
  font-family: var(--titulo);
  font-weight: 400;
  font-size: clamp(44px, 11vw, 80px);
  letter-spacing: .03em;
  line-height: .95;
  margin-top: 6px;
}
.bajada { color: var(--muted); margin-top: 10px; max-width: 560px; }
.centrado { text-align: center; }
.centrado .bajada { margin-left: auto; margin-right: auto; }
.cabecera {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--barra) + 48px) 16px 28px;
}
.vacio {
  text-align: center;
  color: var(--muted);
  padding: 56px 16px;
  border: 1px dashed var(--borde);
  border-radius: 6px;
  background: rgba(13, 14, 16, .45);
}

/* Entrada suave al hacer scroll */
.revelar { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.revelar.visible { opacity: 1; transform: none; }

/* ---------- Panal de sectores (hexágonos) ---------- */
.panal {
  --hex: min(calc((100vw - 40px) / 1.5), 300px);
  --alto: calc(var(--hex) * 1.1547);
  margin: 40px auto 0;
  width: calc(var(--hex) * 1.5 + 8px);
}
.hex {
  display: block;
  position: relative;
  width: var(--hex);
  height: var(--alto);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  text-decoration: none;
  background: var(--panel);
}
.hex + .hex { margin-top: calc(var(--alto) * -.25 + 8px); }
.hex:nth-child(even) { margin-left: calc(var(--hex) * .5 + 8px); }
.hex img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85) brightness(.62);
  transition: transform .6s ease, filter .4s ease;
}
.hex:hover img, .hex:focus-visible img { transform: scale(1.06); filter: saturate(1) brightness(.72); }
.hex-texto {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 14%;
  gap: 8px;
}
.hex-num { font-size: 11px; letter-spacing: .3em; color: var(--accent); font-weight: 600; }
.hex h3 {
  font-family: var(--titulo);
  font-weight: 400;
  font-size: clamp(30px, 8vw, 40px);
  letter-spacing: .06em;
  line-height: .95;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .6);
}
.hex-meta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.hex-ver {
  margin-top: 6px;
  padding: 7px 16px;
  border: 1.5px solid rgba(255, 255, 255, .85);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ---------- Exposición (grilla de fotos) ---------- */
.grilla {
  columns: 2 160px;
  column-gap: var(--gap);
}
.item {
  display: block;
  width: 100%;
  margin-bottom: var(--gap);
  padding: 0;
  border: 0;
  background: var(--panel);
  cursor: zoom-in;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.item img { display: block; width: 100%; height: auto; transition: transform .5s ease; }
.item:hover img { transform: scale(1.04); }

/* ---------- Tarjetas de álbum ---------- */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 16px 14px;
  margin: 0 -16px 10px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  border: 1.5px solid var(--borde);
  background: rgba(13, 14, 16, .55);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.album {
  display: block;
  text-decoration: none;
  background: rgba(22, 24, 27, .82);
  border: 1px solid var(--borde);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.album:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .3); }
.album-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel-2); }
.album-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.album:hover .album-img img { transform: scale(1.05); }
.album-info { padding: 14px 16px 18px; position: relative; }
.album-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  width: 36px;
  height: 3px;
  background: var(--accent);
}
.album-fecha { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.album h3 { font-family: var(--titulo); font-weight: 400; font-size: 30px; letter-spacing: .03em; line-height: 1; margin-top: 6px; }
.album-meta { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ---------- Vista de álbum ---------- */
.acciones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.acciones .btn { min-height: 44px; padding: 0 20px; font-size: 12px; }
.pestanas {
  position: sticky;
  top: var(--barra);
  z-index: 5;
  background: rgba(13, 14, 16, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borde);
  margin-bottom: 18px;
}
.pestanas .chips { max-width: 1200px; margin: 0 auto; padding: 12px 16px; }
.fotos { max-width: 1400px; margin: 0 auto; padding: 0 16px 72px; }
.fotos .grilla { columns: 2 150px; }
.grupo-titulo { font-family: var(--titulo); font-weight: 400; font-size: 26px; letter-spacing: .05em; margin: 0 0 12px; }
.grupo-titulo span { color: var(--muted); font-family: Inter, sans-serif; font-size: 13px; letter-spacing: .08em; margin-left: 8px; }

/* ---------- Información ---------- */
.bloque {
  display: grid;
  gap: 36px;
  align-items: center;
  padding: 36px 0;
}
.marco { position: relative; margin: 0 14px 14px 0; }
.marco::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 2px solid var(--accent);
  z-index: -1;
}
.marco img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.bloque h2 {
  font-family: var(--titulo);
  font-weight: 400;
  font-size: clamp(38px, 9vw, 56px);
  line-height: .95;
  letter-spacing: .03em;
  margin: 8px 0 14px;
}
.bloque p + p { margin-top: 12px; }
.bloque p { color: #d6d8db; }
.lista { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 14px; }
.lista li { padding-left: 22px; position: relative; color: #d6d8db; }
.lista li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--accent); }
.lista strong { color: var(--text); font-weight: 600; }
.etiquetas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.etiquetas span {
  border: 1px solid var(--borde);
  background: rgba(255, 255, 255, .04);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
}
.opcion-ig:hover { border-color: #e1306c; background: rgba(225, 48, 108, .08); }
.opcion-ig::after { color: #e1306c; }
.pie-ig { color: var(--text); text-decoration: none; font-weight: 500; }
.pie-ig:hover { color: var(--accent); }
.cifras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 1px;
  background: var(--borde);
  border: 1px solid var(--borde);
  border-radius: 6px;
  overflow: hidden;
  margin: 24px 0;
}
.cifra { background: rgba(13, 14, 16, .8); padding: 22px 8px; text-align: center; }
.cifra b { display: block; font-family: var(--titulo); font-weight: 400; font-size: clamp(42px, 12vw, 58px); line-height: 1; color: var(--text); }
.cifra span { display: block; margin-top: 6px; font-size: 11px; line-height: 1.35; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cierre { text-align: center; padding: 40px 0 16px; }
.cierre .titulo { font-size: clamp(36px, 9vw, 60px); }
.cierre .btn { margin-top: 22px; }

/* ---------- Contacto ---------- */
.tarjeta {
  max-width: 560px;
  margin: 8px auto 0;
  background: rgba(13, 14, 16, .78);
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 28px 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.tarjeta .btn { width: 100%; letter-spacing: .08em; padding: 0 16px; }
.opcion small { display: block; line-height: 1.4; margin-top: 2px; }
.tarjeta h2 { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 26px 0 12px; }
.opciones { display: grid; gap: 10px; }
.opcion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  padding: 16px 18px;
  border: 1px solid var(--borde);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  transition: border-color .2s ease, background .2s ease;
}
.opcion:hover { border-color: var(--wa); background: rgba(37, 211, 102, .08); }
.opcion b { font-weight: 600; display: block; }
.opcion small { color: var(--muted); font-size: 13px; }
.opcion::after { content: "→"; color: var(--wa); font-size: 20px; }
.aviso { color: var(--muted); text-align: center; font-size: 14px; }

/* ---------- WhatsApp flotante ---------- */
.wa-flotante {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  z-index: 15;
  transition: transform .2s ease;
}
.wa-flotante:hover { transform: scale(1.07); }
.wa-flotante svg { width: 30px; height: 30px; fill: #fff; }
.wa-flotante[hidden] { display: none; }

/* ---------- Visor ---------- */
.visor {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 6, .6);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s .3s;
}
.visor.abierto { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.visor img {
  max-width: 94vw;
  max-height: 78vh;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .7);
  transform: scale(.96);
  transition: transform .3s ease;
}
.visor.abierto img { transform: none; }
.visor-btn {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}
.visor-btn:hover { background: rgba(255, 255, 255, .22); }
.cerrar { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.ant, .sig { bottom: calc(18px + env(safe-area-inset-bottom)); }
.ant { left: 12px; }
.sig { right: 12px; }
.visor-pie {
  position: absolute;
  bottom: calc(18px + env(safe-area-inset-bottom));
  left: 72px;
  right: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.contador { color: var(--muted); font-size: 13px; letter-spacing: .1em; }
.pedir {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--wa);
  color: #06210f;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .04em;
}
.pedir[hidden] { display: none; }

/* ---------- Pie ---------- */
.pie {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 36px 16px calc(90px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--borde);
  background: rgba(13, 14, 16, .7);
}
.pie .marca { display: inline-block; margin-bottom: 10px; color: var(--text); }

/* ---------- Pantallas grandes ---------- */
@media (min-width: 760px) {
  .seccion { padding: 96px 24px; }
  .cabecera { padding-left: 24px; padding-right: 24px; }
  .grilla { columns: 3 220px; }
  .fotos .grilla { columns: 3 260px; }
  .bloque { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .bloque.invertido .marco { order: 2; }
  .panal { --hex: 320px; width: calc(var(--hex) * 2 + 12px); display: flex; flex-wrap: wrap; }
  .hex + .hex, .hex:nth-child(even) { margin: 0; }
  .hex:nth-child(2) { margin-left: 12px; }
  .hex:nth-child(3) { margin: calc(var(--alto) * -.25 + 12px) 0 0 calc(var(--hex) * .5 + 6px); }
  .ant, .sig { top: 50%; bottom: auto; transform: translateY(-50%); }
  .visor img { max-height: 84vh; }
}
/* Pantalla ancha: retrato a la derecha y título a la izquierda, sin tapar la cara */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .fondo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("img/fondo-chico.jpg") center 28% / cover;
    filter: blur(20px) brightness(.38);
    transform: scale(1.1);
  }
  .nitido {
    left: 36% !important;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%);
    mask-image: linear-gradient(90deg, transparent 0, #000 24%);
  }
  .velo { background: linear-gradient(90deg, rgba(13,14,16,.82) 0%, rgba(13,14,16,.45) 38%, rgba(13,14,16,.05) 65%), linear-gradient(180deg, transparent 60%, rgba(13,14,16,.9) 100%); }
  .portada { align-items: flex-start; justify-content: center; text-align: left; padding: 0 0 0 7vw; }
  .portada-texto { width: auto; max-width: 46vw; }
  .botones { justify-content: flex-start; }
  .logo { font-size: clamp(96px, 10vw, 168px); }
}
@media (min-width: 1000px) {
  .barra { padding: 0 32px; }
  .menu-btn { display: none; }
  .menu {
    position: static;
    flex-direction: row;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    padding: 0;
    gap: 28px;
  }
  .menu a {
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(242, 242, 240, .78);
  }
  .menu a[aria-current="page"]::before { content: none; }
  .menu a[aria-current="page"] { color: var(--text); box-shadow: 0 2px 0 var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fondo, .portada-texto { transform: none !important; }
  .revelar { opacity: 1; transform: none; transition: none; }
  .bajar::after { animation: none; }
}
