/* Portafolio público — concepto "visor": marcas de encuadre, punto de enfoque y ráfaga al pasar sobre un álbum. */
body.site { --row: clamp(230px, 31vw, 380px); }

/* ---------- Cabecera ---------- */
.site-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.25rem; padding: 12px var(--gutter); }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1; letter-spacing: .03em; text-transform: uppercase; color: var(--text); text-decoration: none; padding: .3rem 0; min-height: 44px; display: inline-flex; align-items: center; }
.nav { display: flex; gap: .2rem; order: 3; width: 100%; }
@media (min-width: 760px) { .nav { order: 0; width: auto; margin-left: auto; } }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: .55rem .8rem; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--amber); }
.top-r { display: flex; align-items: center; gap: .3rem; }
.ig-link { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); }
.ig-link:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.ig-link svg { width: 22px; height: 22px; }

/* ---------- Visor (portada) ---------- */
.vf { position: relative; isolation: isolate; min-height: clamp(520px, 82svh, 880px); display: grid; align-content: end; overflow: hidden; background: #0b0c0e; }
.vf-stage { position: absolute; inset: 0; z-index: -2; }
.vf-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; opacity: 0; transition: opacity .7s ease; }
.vf-img.on { opacity: 1; }
.vf::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 11, 13, .92) 0%, rgba(10, 11, 13, .55) 32%, rgba(10, 11, 13, 0) 62%), linear-gradient(to bottom, rgba(10, 11, 13, .5), rgba(10, 11, 13, 0) 22%); }
.vf-open { position: absolute; inset: 0; z-index: 1; }
.vf-open:focus-visible { outline: 3px solid var(--amber); outline-offset: -6px; }
.vf.empty .vf-open { display: none; }
.vf.empty { background: radial-gradient(120% 90% at 70% 20%, #1d232b, #0b0c0e); }
.corners { position: absolute; inset: clamp(14px, 2.2vw, 28px); z-index: 2; pointer-events: none; }
.corners i { position: absolute; width: clamp(22px, 3vw, 40px); height: clamp(22px, 3vw, 40px); border: 0 solid rgba(255, 255, 255, .88); }
.corners i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.corners i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.corners i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.corners i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.af { position: absolute; z-index: 2; left: 50%; top: 42%; width: clamp(72px, 9vw, 124px); aspect-ratio: 1.25; border: 2px solid var(--amber); transform: translate(-50%, -50%); opacity: 0; pointer-events: none; }
.af.focus { animation: lock .8s ease-out; }
.vf.empty .af { animation: hunt 2.6s ease-in-out infinite; }
@keyframes lock {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.9); }
  30% { opacity: .95; transform: translate(-50%, -50%) scale(1.25); }
  55% { opacity: 1; transform: translate(-50%, -50%) scale(.95); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}
@keyframes hunt {
  0%, 100% { opacity: .15; transform: translate(-50%, -50%) scale(1.5); }
  45% { opacity: 1; transform: translate(-50%, -50%) scale(.96); }
  60% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.vf-hud { position: absolute; z-index: 3; left: clamp(28px, 4vw, 54px); right: clamp(28px, 4vw, 54px); top: clamp(26px, 3.6vw, 48px); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 600; font-size: .92rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); pointer-events: none; }
.vf-hud .rec { display: inline-flex; align-items: center; gap: .55rem; }
.vf-hud .rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(255, 178, 62, .25); }
.vf-ctl { pointer-events: auto; display: inline-flex; align-items: center; gap: .15rem; }
.vf-ctl .icon-btn { width: 40px; height: 40px; color: #fff; }
.vf-ctl .icon-btn svg { width: 18px; height: 18px; }
.vf-ctl .n { font-variant-numeric: tabular-nums; margin: 0 .35rem; }
.vf-main { position: relative; z-index: 3; padding: 0 clamp(28px, 4vw, 54px) clamp(30px, 5vw, 60px); pointer-events: none; }
.vf-main h1 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(4rem, 17vw, 12.5rem); line-height: .82; letter-spacing: .004em; text-shadow: 0 2px 30px rgba(0, 0, 0, .45); }
.vf-main p { margin-top: 1rem; max-width: 44ch; font-size: clamp(1rem, 1.6vw, 1.2rem); color: #e4e8ec; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.vf-cap { position: absolute; z-index: 3; right: clamp(28px, 4vw, 54px); bottom: clamp(30px, 5vw, 60px); max-width: min(34ch, 40vw); text-align: right; font-size: .92rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); display: none; pointer-events: none; }
.vf-cap strong { display: block; font-size: 1.05rem; }
.vf-cap span { color: #d6dbe0; }
@media (min-width: 900px) { .vf-cap { display: block; } }

/* ---------- Modos (filtro por categoría) ---------- */
.modes { display: flex; gap: .1rem .6rem; flex-wrap: wrap; padding: clamp(1.4rem, 3vw, 2.4rem) var(--gutter) .6rem; }
.modes button { background: none; border: 0; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 1rem; padding: .5rem .35rem; min-height: 44px; border-bottom: 2px solid transparent; }
.modes button:hover { color: var(--text); }
.modes button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--amber); }
.modes .n { font-size: .78rem; color: var(--muted); margin-left: .3rem; font-variant-numeric: tabular-nums; }
.sect-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; padding: clamp(1.6rem, 4vw, 3rem) var(--gutter) .2rem; }

/* ---------- Rejilla de álbumes ---------- */
.albums { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: var(--row); grid-auto-flow: dense; gap: var(--gap); padding: .6rem var(--gutter) 3rem; }
@media (min-width: 760px) { .albums { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .albums { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; display: block; overflow: hidden; border-radius: 4px; background: var(--surface); color: var(--text); text-decoration: none; isolation: isolate; }
.card.wide { grid-column: span 2; }
@media (min-width: 760px) { .card.tall { grid-row: span 2; } }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover img, .card:focus-visible img { transform: scale(1.035); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 9, 11, .9) 0%, rgba(8, 9, 11, .1) 52%, rgba(8, 9, 11, 0) 70%); pointer-events: none; z-index: 1; }
.card:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.card .corners { inset: 10px; opacity: 0; transition: opacity .2s; z-index: 3; }
.card .corners i { width: 18px; height: 18px; }
.card:hover .corners, .card:focus-visible .corners { opacity: 1; }
.card .chip { position: absolute; z-index: 3; top: 12px; left: 12px; padding: .22rem .65rem; border-radius: 999px; background: rgba(14, 16, 19, .62); backdrop-filter: blur(6px); font-size: .8rem; font-weight: 600; }
.card .burst { position: absolute; z-index: 3; top: 12px; right: 14px; font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.card .info { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 1rem 1rem 1.05rem; }
.card h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.6rem, 2.7vw, 2.3rem); line-height: .92; letter-spacing: .01em; overflow-wrap: anywhere; }
.meta-line { display: flex; flex-wrap: wrap; gap: .15rem 1rem; margin-top: .5rem; font-size: .86rem; color: #dde2e7; }
.meta-line span { display: inline-flex; align-items: center; gap: .35rem; }
.meta-line svg { width: 15px; height: 15px; flex: none; opacity: .85; }
.card.bursting .chip { background: var(--amber); color: var(--amber-ink); }
.empty-note { padding: 2rem var(--gutter) 4rem; color: var(--muted); max-width: 52ch; }

/* ---------- Álbum ---------- */
.album-head { padding: clamp(1rem, 3vw, 2rem) var(--gutter) clamp(1.2rem, 3vw, 2rem); }
.back { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); text-decoration: none; font-weight: 600; min-height: 44px; }
.back:hover { color: var(--text); }
.back svg { width: 18px; height: 18px; }
.album-head h1 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(3rem, 12vw, 8.5rem); line-height: .86; text-wrap: balance; max-width: 16ch; overflow-wrap: anywhere; margin-top: .5rem; }
.album-head .meta-line { font-size: 1rem; color: var(--muted); gap: .3rem 1.4rem; margin-top: 1.1rem; }
.album-head .meta-line svg { width: 18px; height: 18px; }
.album-head .desc { margin-top: 1.1rem; max-width: 62ch; color: #cfd5db; font-size: 1.05rem; }
.cat-link { color: var(--amber); font-weight: 600; text-decoration: none; }
.cat-link:hover { text-decoration: underline; }
.lb-title { font-weight: 600; margin-right: auto; padding-left: .2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Sobre mí / Contacto ---------- */
.page { padding: clamp(1.4rem, 4vw, 3rem) var(--gutter) 5rem; max-width: 1180px; }
.page h1 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(3.4rem, 14vw, 9rem); line-height: .85; }
.about-grid { display: grid; gap: 2rem; margin-top: clamp(1.4rem, 4vw, 2.6rem); }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4rem; } }
.role { position: relative; padding: clamp(1.4rem, 3vw, 2.2rem); }
.role .corners { inset: 0; }
.role p { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 4rem); line-height: .92; }
.prose { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.65; max-width: 58ch; display: grid; gap: 1.1rem; color: #dfe4e9; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.contact-grid { display: grid; gap: 2.2rem; margin-top: clamp(1.2rem, 3vw, 2rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 4rem; } }
.lead { color: var(--muted); max-width: 52ch; margin-top: 1rem; font-size: 1.08rem; }
form.contact { display: grid; gap: 1.1rem; }
.contact fieldset { border: 0; padding: 0; margin: 0; }
.contact legend { font-weight: 600; font-size: .95rem; margin-bottom: .5rem; padding: 0; }
.reasons { display: flex; flex-wrap: wrap; gap: .5rem; }
.reasons label { position: relative; cursor: pointer; }
.reasons input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.reasons span { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .95rem; background: var(--surface); transition: background-color .15s, border-color .15s, color .15s; }
.reasons input:checked + span { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.reasons input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.contact .f { display: grid; gap: .35rem; }
.contact .f label { font-weight: 600; font-size: .95rem; }
.contact textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.contact [aria-invalid="true"] { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; gap: .8rem; justify-items: start; }
.sent h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 2.4rem; line-height: 1; }
.ig-card { align-self: start; display: grid; gap: .6rem; align-content: start; padding: 1.3rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--text); }
.ig-card:hover { border-color: #46515c; }
.ig-card svg { width: 30px; height: 30px; }
.ig-card strong { font-size: 1.2rem; }
.ig-card span { color: var(--muted); }
.foot { padding: 2rem var(--gutter) max(2rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .vf-img { transition: none; }
  .card img { transition: none; }
  .af.focus, .vf.empty .af { animation: none; opacity: 1; }
}

/* Solo ver: las fotos no se pueden seleccionar, arrastrar ni guardar con pulsación larga */
.vf img, .card img, .ph img, .lb img { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; pointer-events: none; }
