:root {
  --bg: #050505;
  --bg-2: #0d0d0d;
  --line: rgba(255, 255, 255, .12);
  --text: #f2f0ec;
  --muted: #9a9892;
  --accent: #c9a24b;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-weight: 300; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #000; }

.eyebrow {
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--accent);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }

/* ---------- Header / menú ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter) 22px 28px;
  transition: background .4s, padding .4s, backdrop-filter .4s;
}
.header.scrolled {
  background: var(--bg);
  padding-block: 14px; border-bottom: 1px solid var(--line);
}
.logo { position: relative; display: block; z-index: 60; line-height: 0; transform-origin: left center; transition: transform .6s var(--ease); }
.logo-banner {
  height: 28px; width: auto;
  /* encendido tipo neón; el brillo que respira va en la capa ::after (solo cambia su opacidad: no cansa al celular) */
  filter: drop-shadow(0 0 4px rgba(170, 90, 255, .35));
  animation: neon-on 1.4s steps(1, end) both;
}
.logo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: url(../images/banner.png) left center / contain no-repeat;
  filter: hue-rotate(38deg) brightness(1.15) drop-shadow(0 0 14px rgba(110, 140, 255, .75));
  animation: neon-glow 6s ease-in-out 1.4s infinite;
}
.logo:hover { transform: scale(1.06); }
@keyframes neon-on {
  0% { opacity: 0; } 8% { opacity: 1; } 12% { opacity: .15; } 20% { opacity: 1; }
  28% { opacity: .3; } 34% { opacity: .9; } 44% { opacity: .2; } 56%, 100% { opacity: 1; }
}
@keyframes neon-glow { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .logo-banner { animation: none; } }
@media (max-width: 420px) { .logo-banner { height: 24px; } }

.nav { display: flex; gap: 40px; }
.nav a {
  position: relative; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase;
  padding: 6px 0; color: var(--muted); transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 60; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: var(--text);
  transition: transform .5s var(--ease), top .5s var(--ease), opacity .3s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 55; background: var(--bg);
    flex-direction: column; justify-content: center; align-items: center; gap: 28px;
    clip-path: circle(0% at calc(100% - 44px) 36px); transition: clip-path .8s var(--ease);
  }
  .menu-open .nav { clip-path: circle(150% at calc(100% - 44px) 36px); }
  .nav a { font-family: var(--serif); font-size: 2.6rem; letter-spacing: .08em; text-transform: none; color: var(--text); }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: 110px var(--gutter) clamp(60px, 10vh, 110px); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg .slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.02); transition: opacity 1.8s ease-in-out;
}
.hero-bg .slide.active { opacity: 1; animation: zoom 14s ease-out forwards; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5,5,5,.5) 0%, transparent 65%),
    linear-gradient(180deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,.2) 40%, var(--bg) 100%);
}
@keyframes zoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.hero h1 { font-size: clamp(3.4rem, 12vw, 10rem); letter-spacing: -.01em; margin: 14px 0 22px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p { max-width: 460px; color: var(--muted); font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

.btn {
  display: inline-block; padding: 16px 34px; font-size: .74rem; letter-spacing: .26em; text-transform: uppercase;
  border: 1px solid var(--text); transition: background .4s, color .4s, border-color .4s;
}
.btn:hover { background: var(--text); color: #000; }
.btn.solid { background: var(--accent); border-color: var(--accent); color: #000; }
.btn.solid:hover { background: transparent; color: var(--accent); }

.scroll-hint {
  position: absolute; right: var(--gutter); bottom: 40px; writing-mode: vertical-rl;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.scroll-hint::after { content: ""; display: block; width: 1px; height: 60px; margin: 14px auto 0; background: var(--muted); }
@media (max-width: 600px) { .scroll-hint { display: none; } }

/* ---------- Secciones ---------- */
section { padding: clamp(70px, 12vw, 150px) var(--gutter); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.link-arrow { font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; border-bottom: 1px solid var(--accent); padding-bottom: 4px; }
.link-arrow:hover { color: var(--accent); }

.featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 28px); }
.featured figure { overflow: hidden; aspect-ratio: 3 / 4; background: var(--bg-2); }
.featured figure:nth-child(2) { margin-top: 56px; }
.featured img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.featured figure:hover img { transform: scale(1.06); }
@media (max-width: 700px) {
  .featured { grid-template-columns: 1fr 1fr; }
  .featured figure:nth-child(2) { margin-top: 0; }
  .featured figure:nth-child(3) { display: none; }
}

.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; background: var(--bg-2); }
.about-img { aspect-ratio: 4 / 5; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { margin: 14px 0 24px; }
.about p { color: var(--muted); margin-bottom: 18px; max-width: 520px; }
.stats { display: flex; gap: 40px; margin-top: 36px; }
.stats strong { display: block; font-family: var(--serif); font-size: 2.8rem; font-weight: 400; color: var(--text); }
.stats span { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }

.cta { text-align: center; }
.cta h2 { font-size: clamp(2.6rem, 8vw, 6.5rem); margin: 16px 0 36px; }
.cta h2 em { color: var(--accent); }

/* ---------- Galería ---------- */
.page-top { padding-top: clamp(100px, 9vw, 125px); padding-bottom: 10px; }
.page-top h1 { font-size: clamp(3rem, 9vw, 6.5rem); margin-top: 8px; }
.page-top p:not(.eyebrow) { color: var(--muted); max-width: 480px; margin-top: 18px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 30px var(--gutter) 0; }
.filters button {
  padding: 10px 22px; border: 1px solid var(--line); border-radius: 100px;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  transition: all .3s;
}
.filters button:hover { color: var(--text); border-color: var(--text); }
.filters button.active { background: var(--text); color: #000; border-color: var(--text); }

.gallery { columns: 3; column-gap: clamp(12px, 1.6vw, 24px); padding: 40px var(--gutter) 120px; }
.gallery-item {
  position: relative; break-inside: avoid; margin-bottom: clamp(12px, 1.6vw, 24px);
  overflow: hidden; cursor: zoom-in; background: var(--bg-2);
}
.gallery-item img { width: 100%; height: auto; transition: transform 1.2s var(--ease), filter .6s; }
.gallery-item:hover img { transform: scale(1.05); filter: brightness(.6); }
.gallery-item figcaption {
  position: absolute; left: 20px; bottom: 16px; right: 20px; opacity: 0; transform: translateY(10px);
  transition: opacity .5s, transform .5s var(--ease);
}
.gallery-item:hover figcaption { opacity: 1; transform: none; }
.gallery-item figcaption small { display: block; font-size: .65rem; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); }
.gallery-item figcaption span { font-family: var(--serif); font-size: 1.4rem; }
.gallery-item.hide { display: none; }
@media (max-width: 960px) { .gallery { columns: 2; } }
@media (max-width: 520px) { .gallery { columns: 1; } .gallery-item figcaption { opacity: 1; transform: none; } .gallery-item::after { content:""; position:absolute; inset:0; background: linear-gradient(transparent 60%, rgba(0,0,0,.7)); pointer-events:none; } .gallery-item figcaption { z-index: 1; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .97);
  display: grid; place-items: stretch; padding: 0;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 28vw, 420px); grid-template-rows: minmax(0, 1fr); height: 100vh; height: 100dvh; overflow: hidden; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 56px 70px; min-height: 0; min-width: 0; overflow: hidden; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); width: auto; height: auto; object-fit: contain; }
.lb-info {
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: 56px clamp(24px, 3vw, 48px); border-left: 1px solid var(--line); overflow-y: auto;
}
.lb-count { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); }
.lb-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.6rem); line-height: 1.1; overflow-wrap: anywhere; }
.lb-desc { color: var(--muted); line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.lb-desc.empty { font-size: .85rem; font-style: italic; opacity: .6; }
.lb-meta { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
.lightbox-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.lightbox-actions .btn { padding: 12px 22px; }
@media (max-width: 820px) {
  .lb-layout { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .lb-stage { padding: 56px 12px 8px; }
  .lb-stage img { max-height: calc(58vh - 64px); max-height: calc(58dvh - 64px); }
  .lb-info { border-left: 0; border-top: 1px solid var(--line); padding: 18px 20px 24px; max-height: 42vh; gap: 10px; justify-content: flex-start; }
  .lb-title { font-size: 1.6rem; }
}
.lb-btn { position: absolute; z-index: 2; width: 56px; height: 56px; font-size: 1.6rem; color: var(--text); transition: color .3s, transform .3s; }
.lb-btn:hover { color: var(--accent); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 2.6vw, 36px); align-items: start; padding-top: 34px; }
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 3vw, 40px);
}
.card h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }

/* Formulario: campos con caja, etiqueta arriba y opciones en botones */
.contact-form { max-width: none; gap: 22px; }
.contact-form h2 { margin-bottom: -4px; }
.contact-form .f { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.contact-form label, .contact-form legend { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 0; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; background: rgba(0, 0, 0, .35); color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: .95rem; padding: 14px 16px; outline: none; transition: border-color .3s, box-shadow .3s;
}
.contact-form textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #5f5d58; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201, 162, 75, .15); }
.chips { display: flex !important; flex-wrap: wrap; gap: 10px; }
.chips legend { width: 100%; margin-bottom: 10px; float: left; }
.chips label { display: block; text-transform: none; letter-spacing: 0; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 100px;
  font-size: .85rem; color: var(--muted); transition: all .25s;
}
.chips label:hover span { color: var(--text); border-color: var(--text); }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: #000; }
.chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(201, 162, 75, .35); }
.contact-form .send-btn { width: 100%; justify-self: stretch; padding: 17px 28px; display: flex; justify-content: center; gap: 14px; }
.contact-form .send-btn span { transition: transform .4s var(--ease); }
.contact-form .send-btn:hover span { transform: translateX(6px); }

/* Datos de contacto: filas con ícono, toda la fila es un enlace */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card-head .title-edit { margin: 0; padding: 6px 14px; }
.info-row { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-row .ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(201, 162, 75, .12); color: var(--accent); transition: all .3s; }
.info-row small, .follow small { display: block; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.info-row a, .info-row span:not(.ico) { font-family: var(--serif); font-size: 1.35rem; overflow-wrap: anywhere; }
.info-row a::after { content: ""; position: absolute; inset: 0; }
.info-row:has(a):hover .ico { background: var(--accent); color: #000; }
.info-row:has(a):hover a { color: var(--accent); }
.follow { padding-top: 22px; }
.follow small { margin-bottom: 12px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 100px;
  font-size: .8rem; transition: all .3s;
}
.socials a:hover { background: var(--accent); color: #000; border-color: var(--accent); }

form { display: grid; gap: 18px; max-width: 560px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--text); font: inherit; font-size: .92rem; padding: 18px 0 7px; outline: none; border-radius: 0;
  transition: border-color .3s;
}
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23c9a24b' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 4px bottom 12px;
}
.field select option { background: #111; }
.field textarea { resize: vertical; min-height: 84px; }
.field label {
  position: absolute; left: 0; top: 18px; color: var(--muted); font-size: .9rem; pointer-events: none;
  transition: all .3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label {
  top: 0; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
form .btn { justify-self: start; cursor: pointer; padding: 13px 28px; }
.form-msg { font-size: .9rem; color: var(--accent); min-height: 1.4em; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer-socials { display: inline-flex; flex-wrap: wrap; gap: 14px 28px; }
.footer-social { display: inline-flex; align-items: center; gap: 10px; color: var(--text); transition: color .3s; }
.footer-social:hover { color: var(--accent); }
.footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  padding: 36px var(--gutter); border-top: 1px solid var(--line);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  /* Con "reducir movimiento" se mantienen los fundidos suaves y se quitan el zoom, los desplazamientos y el parpadeo */
  .hero-bg .slide.active { animation: none; }
  .reveal { transform: none; transition: opacity 1s var(--ease); }
}

/* ---------- Acceso y administración ---------- */
.nav-auth { opacity: .6; }
.auth { min-height: 100svh; display: grid; place-items: center; padding: 110px var(--gutter) 60px; }
.auth-card { width: 100%; max-width: 440px; display: flex; flex-direction: column; text-align: center; background: var(--bg-2); }
.auth-ico { width: 56px; height: 56px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(201, 162, 75, .12); color: var(--accent); }
.auth-card h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); margin: 8px 0 10px; }
.auth-sub { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.auth-form { max-width: none; text-align: left; gap: 20px; }
.auth-field { display: grid; gap: 8px; }
.auth-field label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pw-wrap { position: relative; }
.pw-wrap input {
  width: 100%; background: rgba(0, 0, 0, .35); color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: .95rem; padding: 14px 48px 14px 16px; outline: none; transition: border-color .3s, box-shadow .3s;
}
.pw-wrap input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201, 162, 75, .15); }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); transition: color .3s; }
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--accent); }
.auth-form .auth-btn { justify-self: stretch; width: 100%; padding: 16px 28px; text-align: center; }
.auth-btn:disabled { opacity: .6; cursor: wait; }
.auth-form .form-msg { text-align: center; color: #e07a6b; }
.auth-link { margin-top: 22px; font-size: .82rem; color: var(--muted); border-bottom: 1px solid transparent; align-self: center; transition: color .3s, border-color .3s; }
.auth-link:hover { color: var(--accent); border-color: var(--accent); }
.code-input { text-transform: uppercase; letter-spacing: .12em; padding-right: 16px !important; }
.code-box { font-family: var(--sans); font-size: 1.15rem; letter-spacing: .14em; padding: 18px 12px; margin: 4px 0 20px; border: 1px dashed var(--accent); border-radius: 8px; color: var(--accent); background: rgba(201, 162, 75, .08); user-select: all; overflow-wrap: anywhere; }
.auth-note { margin-top: 16px; font-size: .84rem; color: var(--accent); line-height: 1.5; }
.empty { padding: 40px var(--gutter) 120px; color: var(--muted); }

.admin-bar { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; padding: 30px var(--gutter) 0; }
.admin-bar[hidden] { display: none; }
.admin-bar .upload, .admin-bar .album-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.admin-bar .btn { cursor: pointer; padding: 13px 26px; }
.admin-bar select, .admin-bar input[type=text], .admin-bar input:not([type]) {
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line); padding: 12px 14px; font: inherit; font-size: .85rem; border-radius: 4px;
}
.admin-bar input[hidden] { display: none; }
.album-tools button {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line); padding: 4px 0; transition: color .3s;
}
.album-tools button:hover { color: var(--accent); border-color: var(--accent); }
.upload-status { width: 100%; font-size: .85rem; color: var(--accent); }
.upload-status:empty { display: none; }

/* ---------- Vista de álbumes ---------- */
.list-top { position: relative; overflow: hidden; isolation: isolate; }
.list-top::before, .list-top::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: .22; pointer-events: none;
}
.list-top::before { width: 420px; height: 420px; right: 8%; top: 10%; background: var(--accent); animation: drift 14s ease-in-out infinite alternate; }
.list-top::after { width: 320px; height: 320px; right: 28%; top: 40%; background: #7a5cff; opacity: .16; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-80px, 60px) scale(1.25); } }

.list-top h1 { display: flex; flex-wrap: wrap; align-items: center; font-size: clamp(2.6rem, 7vw, 5.8rem); }
.word { display: inline-flex; margin-right: .26em; }
.title-cam { width: .62em; height: .52em; margin-left: .32em; margin-top: .06em; color: inherit; overflow: visible; }
.title-cam .lens { transform-origin: 24px 21px; animation: lens 4.5s ease-in-out 1.6s infinite; }
@keyframes lens { 0%, 88%, 100% { transform: scale(1); } 93% { transform: scale(.72); } }
.list-top h1:hover .title-cam { transform: rotate(-6deg) scale(1.06); transition: transform .5s var(--ease); }
.list-top .ch { display: inline-block; opacity: 0; transform: translateY(60%) rotate(4deg); animation: rise .9s var(--ease) forwards; animation-delay: var(--d); }
@keyframes rise { to { opacity: 1; transform: none; } }

.stats-line { display: flex; align-items: center; gap: 12px; margin-top: 22px !important; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; }
.stats-line b { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; letter-spacing: 0; color: var(--accent); }
.stats-line i { width: 34px; height: 1px; background: var(--line); }

.albums {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(18px, 2.4vw, 34px);
  padding: 40px var(--gutter) 120px;
}
.albums .album-card:first-child { grid-column: span 2; }
.albums .album-card:first-child .album-inner { aspect-ratio: 16 / 10; }
.albums.solo .album-card:first-child { grid-column: 1 / -1; }
.albums.solo .album-card:first-child .album-inner { aspect-ratio: 21 / 9; min-height: 340px; }
@media (max-width: 760px) {
  .albums .album-card:first-child { grid-column: auto; }
  .albums .album-card:first-child .album-inner, .albums.solo .album-card:first-child .album-inner { aspect-ratio: 4 / 5; min-height: 0; }
}

.album-card { display: block; transition-delay: calc(var(--i, 0) * 120ms); }
.album-card.in { transition-delay: 0s; }
.album-card.reveal { transition-delay: calc(var(--i, 0) * 120ms); }
.album-inner {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--bg-2);
  transform-style: preserve-3d; transition: transform .35s var(--ease), box-shadow .5s;
  box-shadow: 0 20px 50px -25px rgba(0, 0, 0, .9);
}
.album-card:hover .album-inner { box-shadow: 0 35px 80px -30px rgba(201, 162, 75, .35); }
/* Collage de fotos del álbum (sin zoom grande: cada foto se mueve apenas dentro de su recuadro) */
.album-collage { position: absolute; inset: 0; display: grid; gap: 3px; background: #000; }
.tile { position: relative; overflow: hidden; min-width: 0; min-height: 0; }
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.72) saturate(.9); transform: scale(1.02);
  transition: transform 1.4s var(--ease), filter .8s;
}
.album-card:hover .tile img { filter: brightness(1) saturate(1.12); transform: scale(1.06) translate(-1.2%, -1.2%); }
.album-card:hover .tile:nth-child(even) img { transform: scale(1.06) translate(1.2%, 1.2%); }
.tile:nth-child(2) img { transition-delay: .05s; } .tile:nth-child(3) img { transition-delay: .1s; }
.tile:nth-child(4) img { transition-delay: .15s; } .tile:nth-child(5) img { transition-delay: .2s; }

/* Distribución vertical (tarjetas normales y celular) */
.album-collage.n2 { grid-template-rows: 1fr 1fr; }
.album-collage.n3 { grid-template: 2fr 1fr / 1fr 1fr; }
.album-collage.n3 .tile:nth-child(1) { grid-column: 1 / -1; }
.album-collage.n4 { grid-template: 1.6fr 1fr 1fr / 1fr 1fr; }
.album-collage.n4 .tile:nth-child(1), .album-collage.n4 .tile:nth-child(4) { grid-column: 1 / -1; }
.album-collage.n5 { grid-template: 1.6fr 1fr 1fr / 1fr 1fr; }
.album-collage.n5 .tile:nth-child(1) { grid-column: 1 / -1; }

/* Distribución en mosaico para la tarjeta ancha */
@media (min-width: 761px) {
  .albums .album-card:first-child .album-collage.n2 { grid-template: 1fr / 1fr 1fr; }
  .albums .album-card:first-child .album-collage.n3 { grid-template: 1fr 1fr / 2fr 1fr; }
  .albums .album-card:first-child .album-collage.n3 .tile:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
  .albums .album-card:first-child .album-collage.n4 { grid-template: 1fr 1fr / 2fr 1fr 1fr; }
  .albums .album-card:first-child .album-collage.n4 .tile:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
  .albums .album-card:first-child .album-collage.n4 .tile:nth-child(4) { grid-column: 2 / 4; grid-row: 2; }
  .albums .album-card:first-child .album-collage.n5 { grid-template: 1fr 1fr / 2fr 1fr 1fr; }
  .albums .album-card:first-child .album-collage.n5 .tile:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
}
.album-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }

/* Luz que sigue al mouse y marco dorado */
.album-shine {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 236, 190, .22), transparent 60%);
}
.album-card:hover .album-shine { opacity: 1; }
.album-inner::after {
  content: ""; position: absolute; inset: 0; border-radius: 6px; pointer-events: none;
  border: 1px solid rgba(201, 162, 75, 0); transition: border-color .5s, inset .5s;
}
.album-card:hover .album-inner::after { border-color: rgba(201, 162, 75, .75); inset: 10px; }

.album-info {
  position: absolute; inset: auto 0 0 0; padding: clamp(60px, 10vw, 120px) clamp(20px, 2.4vw, 34px) clamp(18px, 2vw, 28px);
  background: linear-gradient(0deg, rgba(5, 5, 5, .92) 0%, rgba(5, 5, 5, .55) 55%, transparent 100%);
  transform: translateZ(40px);
}
.album-index { font-family: var(--serif); font-size: .95rem; letter-spacing: .2em; color: var(--accent); }
.album-info h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.05; margin-top: 4px; transition: transform .6s var(--ease); }
.album-desc {
  color: #cfcbc2; font-size: .9rem; max-width: 460px; max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .6s var(--ease), opacity .6s, margin .6s;
}
.album-card:hover .album-desc, .album-card:focus-visible .album-desc { max-height: 90px; opacity: 1; margin-top: 8px; }
.album-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); }
.album-foot small { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.album-cta { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--text); display: inline-flex; gap: 10px; align-items: center; }
.album-cta i { font-style: normal; display: inline-block; transition: transform .5s var(--ease); color: var(--accent); }
.album-card:hover .album-cta i { transform: translateX(8px); }
.album-card:hover .album-info h3 { transform: translateY(-2px); }
@media (hover: none) { .album-desc { max-height: 90px; opacity: 1; margin-top: 8px; } }
@media (prefers-reduced-motion: reduce) { .title-cam .lens { animation: none; } .list-top::before, .list-top::after { animation: none; } .list-top .ch { animation: none; opacity: 1; transform: none; } }

.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; font-style: normal;
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; padding: 5px 11px; border-radius: 100px;
  background: rgba(5,5,5,.7); backdrop-filter: blur(6px); border: 1px solid var(--line); color: var(--text);
}
.badge.paid, .badge.lock { color: var(--accent); border-color: var(--accent); }
.badge.view { color: #b9b4ff; border-color: #b9b4ff; }
.page-top .badge { position: static; display: inline-block; }

.photo-tools { position: absolute; top: 12px; right: 12px; z-index: 3; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; opacity: 0; transition: opacity .3s; }
.gallery-item:hover .photo-tools, .gallery-item:focus-within .photo-tools { opacity: 1; }
.photo-tools button {
  background: rgba(5,5,5,.85); border: 1px solid var(--line); padding: 6px 12px; border-radius: 100px;
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; transition: all .3s;
}
.photo-tools button:hover { background: var(--accent); color: #000; border-color: var(--accent); }
@media (hover: none) { .photo-tools { opacity: 1; } }

dialog { margin: auto; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 36px; width: min(520px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(0,0,0,.8); backdrop-filter: blur(4px); }
dialog h3 { font-size: 2rem; margin-bottom: 26px; }
dialog form { display: grid; gap: 24px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.dialog-actions .btn { cursor: pointer; padding: 13px 26px; }

.album-edit {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  background: rgba(5,5,5,.85); border: 1px solid var(--line); padding: 6px 14px; border-radius: 100px;
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
}
.album-edit:hover { background: var(--accent); color: #000; border-color: var(--accent); }
@media (hover: none) { .album-edit { opacity: 1; } }
dialog .field textarea { min-height: 70px; }

.bar-label { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

.visitor-pill {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 120; max-width: calc(100% - 32px);
  background: var(--accent); color: #000; padding: 12px 22px; border-radius: 100px;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 8px 30px rgba(0,0,0,.5);
}

.title-edit {
  margin-top: 14px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 100px; padding: 8px 18px; transition: all .3s;
}
.title-edit:hover { background: var(--accent); color: #000; }

/* Icono de envío junto al título de Contacto */
.title-with-icon { display: flex; align-items: center; flex-wrap: wrap; }
.title-send { width: .55em; height: .5em; margin-left: .3em; margin-top: -.04em; color: inherit; overflow: visible; opacity: 0; transform: translate(-30px, 24px) rotate(8deg); animation: fly 1.1s var(--ease) .5s forwards; }
@keyframes fly { to { opacity: 1; transform: none; } }
.title-with-icon:hover .title-send { transform: translate(8px, -6px) rotate(-4deg); transition: transform .6s var(--ease); }
@media (prefers-reduced-motion: reduce) { .title-send { animation: none; opacity: 1; transform: none; } }

[hidden] { display: none !important; }
#contact-dialog form { gap: 14px; }

/* ---------- Menú con más opciones ---------- */
@media (min-width: 821px) and (max-width: 1240px) { .nav { gap: 24px; } .nav a { letter-spacing: .16em; font-size: .72rem; } }

/* ---------- Galería de videos ---------- */
.gallery.video-grid { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(14px, 2vw, 26px); }
.video-item { aspect-ratio: 16 / 9; margin-bottom: 0; border-radius: 8px; background: #101010; cursor: pointer; }
.video-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.78); }
.video-item:hover img { transform: scale(1.04); filter: brightness(.55); }
.play-btn {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; z-index: 2; border-radius: 50%;
  background: rgba(5, 5, 5, .55); border: 1.5px solid rgba(255, 255, 255, .85); backdrop-filter: blur(6px);
  transition: transform .5s var(--ease), background .3s, border-color .3s;
}
.play-btn::after { content: ""; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; transition: border-color .3s; }
.video-item:hover .play-btn { transform: scale(1.14); background: var(--accent); border-color: var(--accent); }
.video-item:hover .play-btn::after { border-left-color: #000; }
.badge.yt { color: #ff6b6b; border-color: #ff6b6b; }
.album-play {
  position: absolute; left: 50%; top: 40%; width: 64px; height: 64px; margin: -32px 0 0 -32px; z-index: 2; border-radius: 50%; pointer-events: none;
  background: rgba(5, 5, 5, .5); border: 1.5px solid rgba(255, 255, 255, .8); backdrop-filter: blur(6px); transition: transform .5s var(--ease), background .3s;
}
.album-play::after { content: ""; position: absolute; left: 25px; top: 19px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.album-card:hover .album-play { transform: scale(1.15); background: rgba(201, 162, 75, .85); }

/* Reproductor dentro del visor */
.lb-player { display: block; width: min(100%, calc((100vh - 112px) * 16 / 9)); width: min(100%, calc((100dvh - 112px) * 16 / 9)); aspect-ratio: 16 / 9; border: 0; background: #000; border-radius: 6px; }
video.lb-player { object-fit: contain; }
@media (max-width: 820px) { .lb-player { width: min(100%, calc((58dvh - 64px) * 16 / 9)); } }

/* Edición de textos (solo administrador) */
.edit-bar {
  position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 100px; padding: 8px 8px 8px 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.edit-bar button {
  font-size: .78rem; letter-spacing: .08em; padding: 10px 18px; border-radius: 100px; border: 1px solid var(--accent); color: var(--accent); transition: background .3s, color .3s;
}
.edit-bar button:hover, .edit-bar .edit-save { background: var(--accent); color: #000; }
.edit-bar .edit-cancel { border-color: var(--line); color: var(--muted); }
.edit-bar .edit-cancel:hover { background: transparent; color: var(--text); border-color: var(--text); }
.edit-actions { display: flex; gap: 8px; }
.edit-msg { font-size: .8rem; color: var(--muted); padding-right: 8px; }
.edit-msg:empty { display: none; }
body.editing [data-edit] { outline: 1px dashed var(--accent); outline-offset: 4px; cursor: text; min-width: 1ch; }
body.editing [data-edit]:focus { outline: 2px solid var(--accent); background: rgba(201, 162, 75, .08); }
@media (max-width: 600px) { .edit-bar { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; flex-wrap: wrap; border-radius: 18px; } }

/* Portada: el logo no se muestra sobre la imagen grande; aparece (con su encendido de neón) cuando se baja */
.home .header .logo { transition: opacity .4s ease; }
.home .header:not(.show-logo) .logo { opacity: 0; visibility: hidden; transition: none; }
.home .header:not(.show-logo) .logo-banner, .home .header:not(.show-logo) .logo::after { animation: none; }
