@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500&display=swap');

:root {
  --bg: #0a0a0a;
  --text: #ededed;
  --muted: #8c8c8c;
  --dim: #6e6e6e;
  --line: #222;
  --ph: #171717;
  --pad: clamp(20px, 3vw, 40px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 13px/1.5 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; transition: color .2s; }
a:hover { color: #9a9a9a; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

/* ---------- Navegación ---------- */
.nav {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px var(--pad);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  position: relative; z-index: 3;
}
.nav .brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; min-height: 44px; }
.nav .brand img { width: 30px; height: 30px; }
.nav .links { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.nav .links a[aria-current="page"] { border-bottom: 1px solid var(--text); }
.nav.over { position: absolute; top: 0; left: 0; right: 0; }

/* ---------- Portada / carrusel ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; max-height: 1100px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hero .track { position: absolute; inset: 0; display: flex; transition: transform 1s cubic-bezier(.7, 0, .2, 1); }
.hero .slide { flex: 0 0 100%; height: 100%; background: var(--ph) center / cover no-repeat; }
.hero .shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.hero .title { position: relative; text-align: center; padding: 0 20px; }
.hero h1 { margin: 0; font-weight: 400; font-size: clamp(30px, 4.4vw, 60px); letter-spacing: .22em; text-transform: uppercase; padding-left: .22em; }
.hero .sub { margin: 16px 0 0; font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: #cfcfcf; padding-left: .4em; }

.expo { position: absolute; right: clamp(16px, 2.4vw, 36px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; z-index: 2; }
.expo button { height: 34px; padding: 0 0 0 16px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .06em; color: rgba(237, 237, 237, .4); }
.expo button i { display: block; height: 1px; width: 12px; background: currentColor; transition: width .4s; }
.expo button.on { color: #fff; }
.expo button.on i { width: 28px; }

.hero .bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 var(--pad); z-index: 2; }
.hero .counter { min-width: 80px; padding-bottom: 26px; font-size: 11px; letter-spacing: .14em; }
.scroll { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.scroll .label { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; padding-left: .3em; }
.scroll .rail { position: relative; width: 1px; height: 56px; background: rgba(237, 237, 237, .2); overflow: hidden; }
.scroll .rail::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 18px; background: var(--text); animation: drop 1.8s cubic-bezier(.6, 0, .4, 1) infinite; }

.vf { position: relative; display: block; width: 34px; height: 34px; animation: breathe 2.6s ease-in-out infinite; }
.vf b { position: absolute; width: 8px; height: 8px; border: 0 solid var(--text); }
.vf b:nth-child(1) { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.vf b:nth-child(2) { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.vf b:nth-child(3) { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.vf b:nth-child(4) { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.vf::before, .vf::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--text); }
.vf::before { width: 10px; height: 1px; margin-left: -5px; }
.vf::after { width: 1px; height: 10px; margin-top: -5px; }

@keyframes breathe { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(.78); } 88% { transform: scale(1.04); } }
@keyframes drop { 0% { transform: translateY(-100%); } 100% { transform: translateY(320%); } }


/* ---------- Secciones ---------- */
.section { padding: 96px var(--pad) 120px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 36px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.section-head h2 span, .crumb, .crumb a { color: var(--muted); }
.crumb { margin: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.page-title { margin: 20px 0 0; font-weight: 400; font-size: clamp(30px, 3.4vw, 48px); letter-spacing: .02em; }

/* ---------- Lista con vista previa ---------- */
.picker { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.picker .list { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; }
.picker .item { display: grid; grid-template-columns: 56px minmax(0, 1fr) 32px; align-items: center; gap: 8px; padding: 18px 0; color: var(--dim); transition: color .3s; }
.picker .item .mark { font-size: 14px; font-weight: 300; letter-spacing: .1em; color: var(--text); opacity: 0; transition: opacity .3s; }
.picker .item .name { font-size: clamp(22px, 2.8vw, 40px); font-weight: 300; letter-spacing: .01em; text-transform: uppercase; line-height: 1.1; }
.picker .item .plus { font-size: 28px; font-weight: 200; color: var(--dim); text-align: right; transition: transform .35s; }
.picker .item.on, .picker .item:focus-visible { color: #fff; }
.picker .item.on .mark { opacity: 1; }
.picker .item.on .plus { transform: rotate(45deg); }
.picker .preview { flex: 1 1 420px; aspect-ratio: 3 / 2; background: var(--ph) center / cover no-repeat; transition: background-image .4s; }
.empty { color: var(--muted); font-size: 15px; padding: 40px 0; }

/* ---------- Galería de carpeta ---------- */
.folder-head { padding: 48px var(--pad) 48px; }
.desc { margin: 18px 0 0; font-size: 14px; letter-spacing: .04em; color: #a8a8a8; line-height: 1.6; max-width: 900px; }
.meta { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 40px; font-size: 12px; }
.meta span:nth-child(-n+3) { color: var(--muted); }
.gallery { --rowh: 420px; padding: 0 var(--pad) 100px; display: flex; flex-wrap: wrap; gap: 12px; }
.gallery::after { content: ''; flex: 999 1 0; }
.gallery button { padding: 0; border: 0; background: var(--ph); cursor: zoom-in; display: block; min-width: 0; }
.gallery img { width: 100%; height: auto; display: block; }
@media (max-width: 1100px) { .gallery { --rowh: 300px; } }
.pager { border-top: 1px solid var(--line); padding: 40px var(--pad); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .96); z-index: 50; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox { overflow: hidden; padding: 56px 0 84px; box-sizing: border-box; }
.lightbox.zoomed .prev, .lightbox.zoomed .next, .lightbox.zoomed .count { opacity: 0; pointer-events: none; }
.lightbox button { z-index: 4; }
.lightbox .lb-cap, .lightbox .count { z-index: 4; }
.lightbox .prev, .lightbox .next, .lightbox .count { transition: opacity .3s; }
.lightbox button { position: absolute; border: 0; background: transparent; color: var(--text); cursor: pointer; min-width: 44px; min-height: 44px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.lightbox .close { top: 16px; right: 20px; }
.lightbox .prev { left: 12px; top: 50%; font-size: 22px; }
.lightbox .next { right: 12px; top: 50%; font-size: 22px; }
.lightbox .count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: .14em; color: var(--muted); }

/* ---------- Sobre mí / servicios ---------- */
.about { padding: 96px var(--pad) 120px; display: flex; flex-wrap: wrap; gap: 72px; align-items: flex-start; }
.about .pic { flex: 1 1 320px; max-width: 460px; aspect-ratio: 4 / 5; background: var(--ph) center / cover no-repeat; }
.about .txt { flex: 1 1 420px; max-width: 620px; display: flex; flex-direction: column; gap: 24px; }
.about p { margin: 0; font-size: 17px; line-height: 1.7; color: #d4d4d4; }
.services { padding: 0 var(--pad) 120px; }
.services h2 { margin: 0; font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); }
.services .intro { margin: 14px 0 48px; font-size: 15px; line-height: 1.6; color: #a8a8a8; max-width: 560px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: 24px; align-items: baseline; padding: 28px 8px; border-bottom: 1px solid var(--line); }
.rows { border-top: 1px solid var(--line); }
.row:hover { background: #121212; color: var(--text); }
.row .t { font-size: 20px; }
.row .d { font-size: 14px; line-height: 1.6; color: #a8a8a8; }
.row .c { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.mk { display: inline-block; margin-right: 14px; color: var(--muted); font-weight: 300; transition: transform .35s; }
.row:hover .mk { transform: rotate(45deg); }

/* ---------- Botones y formularios ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 28px; border: 1px solid #444; background: transparent; color: var(--text); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.btn.solid { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 500; }
.btn:hover { border-color: #999; color: inherit; }
.btn.solid:hover { color: var(--bg); background: #fff; }
.field { display: flex; flex-direction: column; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select { font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid #333; padding: 12px 0; outline: none; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--text); }
.field select option { background: var(--bg); }

.contact { padding: 96px var(--pad) 120px; display: flex; flex-wrap: wrap; gap: 80px; }
.contact .info { flex: 1 1 320px; display: flex; flex-direction: column; gap: 32px; }
.contact .info p { margin: 0; font-size: 16px; line-height: 1.6; color: #a8a8a8; max-width: 420px; }
.contact dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px 16px; margin: 0; font-size: 14px; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; }

/* ---------- Pie ---------- */
.footer { padding: 28px var(--pad); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer div { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Celular ---------- */
@media (max-width: 700px) {
  .nav .links { gap: 18px; }
  .expo { display: none; }
  .picker { gap: 28px; }
  .picker .item { grid-template-columns: minmax(0, 1fr) 28px; gap: 12px; padding: 14px 0; color: var(--text); }
  .picker .item .mark { display: none; }
  .gallery button { flex-basis: 100% !important; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* =====================================================================
   Animaciones
   ===================================================================== */
@keyframes pagein { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: .55; } 100% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }

body { animation: pagein .7s ease-out both; }
html.leaving body { opacity: 0; transition: opacity .32s ease-in; }
.flash { position: fixed; inset: 0; background: #fff; pointer-events: none; z-index: 100; animation: flash .45s ease-out both; }

/* Portada */
.hero h1 { animation: rise 1.3s cubic-bezier(.2, .7, .2, 1) .15s both; }
.hero .sub { animation: rise 1.3s cubic-bezier(.2, .7, .2, 1) .4s both; }
.hero .bottom, .expo { animation: pagein 1s ease-out .9s both; }
.hero .slide { position: relative; overflow: hidden; }
.hero .slide i { position: absolute; inset: 0; background: 50% 30% / cover no-repeat; transform: scale(1.08); transition: transform 7s linear; }
.hero .slide.on i { transform: scale(1); }

/* Aparición al bajar */
.anim [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1); }
.anim [data-reveal].in { opacity: 1; transform: none; }

/* Fotos: entran con un leve acercamiento y crecen un poquito al pasar el mouse */
.gallery button, .strip a, .picker .preview { overflow: hidden; }
.gallery img, .strip img { transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.anim .gallery button[data-reveal] img { transform: scale(1.08); }
.anim .gallery button[data-reveal].in img { transform: scale(1); }
.strip a:hover img { transform: scale(1.04); transition-duration: .9s; }

/* Menú desplegable de categorías (inicio) */
.acc { margin-top: -36px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr) 32px; align-items: center; gap: 8px; padding: 22px 0; border: 0; background: transparent; cursor: pointer; text-align: left; color: var(--dim); transition: color .3s; }
.acc-head .mark { font-size: 14px; font-weight: 300; letter-spacing: .1em; color: var(--text); opacity: 0; transition: opacity .3s; }
.acc-head .name { font-size: clamp(22px, 2.8vw, 40px); font-weight: 300; text-transform: uppercase; line-height: 1.1; }
.acc-head .plus { font-size: 28px; font-weight: 200; text-align: right; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.acc-head:hover, .acc-item.open .acc-head { color: #fff; }
.acc-head:hover .mark, .acc-item.open .acc-head .mark { opacity: 1; }
.acc-item.open .acc-head .plus { transform: rotate(45deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s cubic-bezier(.2, .7, .2, 1); }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; min-height: 0; }
.acc-inner > * { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
.acc-item.open .acc-inner > * { opacity: 1; transform: none; transition: opacity .8s .2s, transform .8s .2s cubic-bezier(.2, .7, .2, 1); }
.strip { overflow: hidden; margin: 4px 0 28px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.strip-track { display: flex; gap: 12px; width: max-content; }
.strip-track.moving { animation: marquee var(--dur, 40s) linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip a { display: block; flex: none; }
.strip img { height: 240px; width: auto; display: block; background: var(--ph); }
.acc-list { margin-left: 56px; margin-top: 4px; }
.acc-list .sub { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 32px; align-items: baseline; gap: 12px; padding: 14px 0; border-top: 1px solid #1a1a1a; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: #bdbdbd; }
.acc-list .sub:hover { color: #fff; }
.acc-list .sub .n, .acc-list .sub .y { font-size: 11px; color: var(--muted); letter-spacing: .12em; }
.acc-list .sub .go { text-align: right; padding-right: 8px; transition: transform .35s; }
.acc-list .sub:hover .go { transform: translateX(6px); }
.acc-all { display: inline-block; margin: 18px 0 36px 56px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid #444; padding-bottom: 4px; }

@media (max-width: 700px) {
  .acc-head { grid-template-columns: minmax(0, 1fr) 28px; color: var(--text); padding: 18px 0; }
  .acc-head .mark { display: none; }
  .acc-list { margin-left: 0; }
  .acc-list .sub { grid-template-columns: 32px minmax(0, 1fr) auto; font-size: 13px; }
  .acc-list .sub .go { display: none; }
  .acc-all { margin-left: 0; }
  .strip img { height: 160px; }
}



/* Categoría: carrusel arriba + álbumes en grilla */
.cat-hero { position: relative; height: 62vh; min-height: 380px; max-height: 720px; overflow: hidden; display: flex; align-items: flex-end; background: var(--ph); }
.cat-slides { position: absolute; inset: 0; }
.cs { position: absolute; inset: 0; background: 50% 30% / cover no-repeat; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 8s linear; }
.cs.on { opacity: 1; transform: scale(1); }
.cs:not(.on) { transition: opacity .9s ease, transform 0s 1s; }
.cs { transition: opacity .9s ease, transform 5s linear; }
.cat-hero .shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .32); }
.cat-hero-txt { position: relative; padding: 0 var(--pad) 40px; animation: rise 1.3s cubic-bezier(.2, .7, .2, 1) .2s both; }
.cat-hero-txt .crumb, .cat-hero-txt .crumb a { color: #d0d0d0; }
.albums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 20px; max-width: 1440px; margin: 0 auto; }
.album { display: flex; flex-direction: column; gap: 14px; }
.album .cover { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ph); }
.album .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.album:hover .cover img { transform: scale(1.04); transition-duration: .9s; }
.album .name { font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.album .sub { margin-top: -8px; font-size: 13px; color: var(--muted); }
.album:hover { color: var(--text); }
@media (max-width: 700px) {
  .cat-hero { height: 52vh; min-height: 300px; }
  .albums { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}


/* Créditos al pie del álbum */
.credits { margin: 0 var(--pad) 80px; padding-bottom: 40px; border-bottom: 1px solid #444; }
.credits p { margin: 0 0 8px; font-size: 18px; line-height: 1.5; }
.credits a { border-bottom: 1px solid #555; word-break: break-all; }

/* Cuestionario de contacto (tarjetas que se deslizan) */
.contact .quiz { flex: 1.2 1 440px; position: relative; max-width: 560px; }
.quiz-ghost { position: absolute; inset: -14px -14px 14px 14px; border: 1px solid #222; border-radius: 14px; background: #0f0f0f; }
.quiz-card { position: relative; background: #141414; border: 1px solid #2a2a2a; border-radius: 14px; padding: 36px 36px 28px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.quiz-top { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.bars { display: flex; gap: 6px; flex: 1; }
.bars i { flex: 1; height: 2px; background: #333; transition: background .4s; }
.bars i.on { background: var(--text); }
.quiz-count { font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.steps { position: relative; overflow: hidden; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; flex-direction: column; gap: 22px; }
.step.on { display: flex; }
.step.out-left, .step.out-right { display: flex; position: absolute; inset: 0; pointer-events: none; }
.step.from-right { animation: qin-r .5s cubic-bezier(.2, .7, .2, 1) both; }
.step.from-left { animation: qin-l .5s cubic-bezier(.2, .7, .2, 1) both; }
.step.out-left { animation: qout-l .45s ease-in both; }
.step.out-right { animation: qout-r .45s ease-in both; }
@keyframes qin-r { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes qin-l { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes qout-l { to { opacity: 0; transform: translateX(-60px); } }
@keyframes qout-r { to { opacity: 0; transform: translateX(60px); } }
.q-n { margin: 0; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.step .q-t, .step h2 { padding: 0; margin: -10px 0 0; font-size: 22px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; }
.q-help { margin: -12px 0 6px; font-size: 12px; color: var(--muted); }
.opts { display: flex; flex-direction: column; border-top: 1px solid #262626; }
.opt { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 6px 0; border-bottom: 1px solid #262626; cursor: pointer; font-size: 14px; color: #cfcfcf; transition: color .2s, padding-left .3s; }
.opt:hover { color: #fff; padding-left: 6px; }
.opt input { appearance: none; width: 16px; height: 16px; margin: 0; border: 1px solid #777; border-radius: 50%; flex: none; display: grid; place-items: center; cursor: pointer; }
.opt input:checked { border-color: var(--text); }
.opt input:checked::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--text); }
.opt input:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.opt:has(input:checked) { color: #fff; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; transition: opacity .3s; }
.two.hide { opacity: .25; pointer-events: none; }
.field input[type="date"] { color-scheme: dark; }
.q-err { min-height: 18px; margin: 14px 0 0; font-size: 12px; color: #e7a3a3; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.quiz-nav .btn { border-radius: 999px; padding: 0 26px; text-transform: none; letter-spacing: .04em; font-size: 13px; margin-left: auto; }
.link-btn { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; letter-spacing: .08em; min-height: 44px; padding: 0 4px; }
.link-btn:hover { color: var(--text); }
.done-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.quiz-card.finished .bars i { background: var(--text); }
@media (max-width: 700px) {
  .quiz-card { padding: 28px 22px 22px; }
  .quiz-ghost { inset: -8px -8px 8px 8px; }
  .two { grid-template-columns: minmax(0, 1fr); }
}


/* Selector de idioma */
.lang { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; letter-spacing: .12em; }
.lang button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 4px; min-height: 32px; font-size: 11px; letter-spacing: .12em; }
.lang button.on { color: var(--text); font-weight: 500; }
.lang span { color: #555; }

/* Portada: base y @ abajo a la derecha */
.hero-info { min-width: 80px; padding-bottom: 26px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #cfcfcf; text-align: right; }
.hero-info b { color: #fff; font-weight: 500; }
.hero-info a { color: #cfcfcf; margin-top: 4px; }
.hero-info a:hover { color: #fff; }
@media (max-width: 700px) {
  .hero .counter, .hero .scroll { display: none; }
  .hero .bottom { justify-content: flex-start; }
  .hero-info { align-items: flex-start; text-align: left; }
}

/* Texto de cada foto */
.gallery button { position: relative; }
.gallery .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; font-size: 12px; letter-spacing: .03em; line-height: 1.4; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; pointer-events: none; }
.gallery button:hover .cap, .gallery button:focus-visible .cap { opacity: 1; transform: none; }
.lightbox .lb-cap { position: absolute; left: 0; right: 0; bottom: 44px; margin: 0; padding: 0 60px; text-align: center; font-size: 13px; letter-spacing: .04em; color: #d6d6d6; z-index: 2; transition: opacity .3s; }
.lightbox.zoomed .lb-cap { opacity: 0; }
@media (hover: none) { .gallery .cap { display: none; } }
@media (max-width: 700px) { .lightbox .lb-cap { padding: 0 20px; bottom: 48px; font-size: 12px; } }

/* Al pasar el mouse: la foto crece un poco y las demás se achican */
@media (hover: hover) {
  .gallery button, .albums .album,
  .anim .gallery button[data-reveal].in, .anim .albums .album[data-reveal].in { transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .6s; }
  .gallery:hover button:not(:hover), .albums:hover .album:not(:hover),
  .anim .gallery:hover button[data-reveal].in:not(:hover), .anim .albums:hover .album[data-reveal].in:not(:hover) { transform: scale(.96); opacity: .55; }
  .gallery button:hover, .albums .album:hover,
  .anim .gallery button[data-reveal].in:hover, .anim .albums .album[data-reveal].in:hover { transform: scale(1.035); z-index: 2; opacity: 1; }
  .albums .album:hover .cover img { transform: none; }
}

/* Portada de álbum que va cambiando */
.album .cover.cycling { position: relative; }
.album .cover.cycling img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.album .cover.cycling img.on { opacity: 1; }

/* Visor: fila de fotos que se desliza; las vecinas quedan a los costados en blanco y negro */
.lightbox .stage { position: absolute; inset: 56px 0 84px; }
.lightbox .slot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none;
  transition: transform .75s cubic-bezier(.22, .7, .15, 1), opacity .75s ease, filter .4s ease; will-change: transform, opacity; }
.lightbox .slot img { max-width: 76vw; max-height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; pointer-events: auto; touch-action: none; }
.lightbox .slot[data-pos="0"] { z-index: 2; transform: none; opacity: 1; filter: none; }
.lightbox .slot[data-pos="0"] img { cursor: zoom-in; will-change: transform; }
.lightbox.zoomed .slot[data-pos="0"] img { cursor: zoom-out; }
.lightbox .slot[data-pos="-1"], .lightbox .slot[data-pos="1"] { z-index: 1; opacity: .45; filter: grayscale(1) brightness(.7); }
.lightbox .slot { --hw: 30vw; --peek: 13vw; }
.lightbox .slot[data-pos="-1"] { transform: translateX(calc(var(--peek) - 50vw - var(--hw) * .62)) scale(.62); }
.lightbox .slot[data-pos="1"] { transform: translateX(calc(50vw - var(--peek) + var(--hw) * .62)) scale(.62); }
.lightbox .slot[data-pos="-1"] img, .lightbox .slot[data-pos="1"] img { cursor: pointer; }
.lightbox .slot[data-pos="-1"]:hover, .lightbox .slot[data-pos="1"]:hover { opacity: .7; }
.lightbox .slot[data-pos="-2"], .lightbox .slot[data-pos="-3"] { transform: translateX(-120vw) scale(.5); opacity: 0; }
.lightbox .slot[data-pos="2"], .lightbox .slot[data-pos="3"] { transform: translateX(120vw) scale(.5); opacity: 0; }
.lightbox.zoomed .slot:not([data-pos="0"]) { opacity: 0; }
@media (max-width: 700px) {
  .lightbox .slot img { max-width: 88vw; }
  .lightbox .slot { --peek: 7vw; }
}


/* Adelanto de fotos al pasar por un álbum (inicio) */
.sub-prev { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s cubic-bezier(.2, .7, .2, 1); }
.sub-prev-in { overflow: hidden; min-height: 0; display: flex; gap: 8px; padding-left: 56px; }
.sub-prev-in a { flex: none; display: block; padding: 0 0 16px; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; transition-delay: calc(var(--i) * 45ms); }
.sub-prev-in img { height: 110px; width: auto; display: block; background: var(--ph); transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .4s; }
.sub-prev-in a:hover img { transform: scale(1.06); }
.sub-prev-in:hover a:not(:hover) img { opacity: .5; }
@media (hover: hover) {
  .sub-wrap:hover .sub-prev, .sub-wrap:focus-within .sub-prev { grid-template-rows: 1fr; }
  .sub-wrap:hover .sub-prev-in a, .sub-wrap:focus-within .sub-prev-in a { opacity: 1; transform: none; }
  .sub-wrap:hover .sub { color: #fff; }
  .sub-wrap:hover .sub .go { transform: translateX(6px); }
}
@media (hover: none) { .sub-prev { display: none; } }

/* Álbum: al pasar el mouse, capa oscura y el nombre en blanco */
.album .cover { position: relative; }
.album .cover img { object-position: 50% 30%; }
.album .ov { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .5s; z-index: 2; }
.album .ov span { font-size: clamp(18px, 2vw, 26px); font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: #fff; text-align: center; transform: translateY(10px); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) {
  .album:hover .ov, .album:focus-visible .ov { opacity: 1; }
  .album:hover .ov span, .album:focus-visible .ov span { transform: none; }
}

/* Al pie del álbum: "Mirá un poco más" con las otras categorías */
.more { padding: 40px var(--pad) 90px; border-top: 1px solid var(--line); }
.more-title { margin: 30px 0 40px; text-align: center; font-weight: 300; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: .14em; text-transform: uppercase; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 420px)); justify-content: center; gap: 40px 20px; max-width: 1440px; margin: 0 auto; }
.more-grid .album .cover { aspect-ratio: 16 / 10; }
@media (hover: hover) {
  .more-grid:hover .album:not(:hover) { transform: scale(.96); opacity: .55; }
  .more-grid .album { transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .6s; }
  .more-grid .album:hover { transform: scale(1.035); }
}

/* Contacto centrado: título, cuestionario y datos abajo */
.contact { flex-direction: column; align-items: center; gap: 56px; text-align: center; padding-top: 72px; }
.contact .info { flex: none; align-items: center; gap: 18px; max-width: 620px; }
.contact .info p { margin: 0 auto; }
.contact .quiz { flex: none; width: 100%; max-width: 580px; text-align: left; }
.contact-data { list-style: none; margin: 8px 0 0; padding: 32px 0 0; border-top: 1px solid var(--line); width: 100%; max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 48px; font-size: 14px; }
.contact-data li { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.contact-data li > span { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
