/* ═══════════════════════════════════════════════════════════════
   destacada.css — Mejoras de la vista #/destacada (Obra)
   2026-07-19 · Carga después de main.css
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Resucitar el lightbox (estaba anulado con display:none !important) ── */
.gallery-lightbox:not([hidden]) {
  display: flex !important;
}

/* Flechas de navegación (estaban ocultas) */
.gallery-lightbox__nav {
  display: flex;
  font-size: 2.2rem;
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
}
.gallery-lightbox__nav:after { content: none; }          /* usa el glifo ‹ › del DOM */
.gallery-lightbox__nav:hover { color: var(--gallery-gold, #d4af37); }

/* En táctil no hay :hover — flechas y metadatos siempre visibles */
@media (hover: none) {
  .gallery-lightbox__nav { opacity: 1; }
}

/* Botón de cierre (no tenía estilo alguno) */
.gallery-lightbox__close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  cursor: pointer;
  z-index: 10002;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: var(--gallery-gold, #d4af37);
  transform: rotate(90deg);
  outline: none;
}

/* Línea de serie bajo los metadatos (sin estilo previo) */
.gallery-lightbox__series {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin: 0.35rem 0 0;
}

/* ── 2. Reveal al hacer scroll (la clase .gallery-reveal no tenía CSS) ──
   Usa `translate` (propiedad individual) para no interferir con el
   `transform` de :hover ya definido en main.css. */
.gallery-reveal {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 0.7s ease,
    translate 0.7s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.gallery-reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* ── 3. Títulos visibles en táctil (el overlay solo aparecía con :hover) ── */
@media (hover: none) {
  .gallery-massive__overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.25) 45%, transparent 70%);
  }
  .gallery-massive__title { transform: none; }
}

/* ── 4. La obra hero también abre el lightbox ── */
.gallery-hero__artwork { cursor: pointer; }
.gallery-hero__artwork:focus-visible {
  outline: 2px solid var(--gallery-gold, #d4af37);
  outline-offset: 6px;
  border-radius: 6px;
}

/* ── 5. Accesibilidad teclado en la cuadrícula ── */
.gallery-massive__item:focus-visible {
  outline: 2px solid var(--gallery-gold, #d4af37);
  outline-offset: 3px;
  z-index: 2;
}
.gallery-massive__item:focus-visible .gallery-massive__overlay { opacity: 1; }
.gallery-massive__item:focus-visible .gallery-massive__title { transform: translateY(0); }

/* ── 6. Contador de obras anulado (Fail-closed) ── */
.gallery-count {
  display: none !important;
}

/* ── 7. Pista visual de que las obras se pueden abrir ── */
.gallery-massive__item::after { z-index: 2; }
.gallery-massive__item .gallery-massive__expand {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.95rem;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: 4;
}
.gallery-massive__item:hover .gallery-massive__expand,
.gallery-massive__item:focus-visible .gallery-massive__expand {
  opacity: 1;
  transform: scale(1);
}
@media (hover: none) {
  .gallery-massive__item .gallery-massive__expand { opacity: 0.85; transform: none; }
}

/* ── 8. Respeta prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  .gallery-reveal {
    opacity: 1;
    translate: none;
    transition: none;
  }
  .gallery-lightbox__close,
  .gallery-massive__item .gallery-massive__expand {
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   9. Menú móvil — el botón hamburguesa no existía en el markup
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    z-index: 9001; /* por encima del overlay .nav__links (9000) */
    -webkit-tap-highlight-color: transparent;
  }
  .nav__toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.2s ease;
  }
  .nav__toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle--open span:nth-child(2) { opacity: 0; }
  .nav__toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__toggle--open { border-color: rgba(212, 175, 55, 0.5); }
}
body.nav-open { overflow: hidden; }

/* ═══════════════════════════════════════════════════════════════
   10. MICA SYSTEM — PURGADO TOTALMENTE (Fail-Closed)
   El arte es el único protagonista absoluto. Cero chatbot flotante.
   ═══════════════════════════════════════════════════════════════ */
.mica-widget, .mica-panel, .mica-trigger, .mica-orb, #mica-chat, #mica-trigger, [class*="mica-"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════
   11. Sección Blog (sincronizada con WordPress)
   ═══════════════════════════════════════════════════════════════ */
.blog {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 5vw, 4rem);
  max-width: 1400px;
  margin: 0 auto;
}
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}
@media (max-width: 1024px) { .blog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .blog__grid { grid-template-columns: 1fr; } }

.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.35s ease, box-shadow 0.45s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(212, 175, 55, 0.08);
}
.blog-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d0d0f;
}
.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.blog-card:hover .blog-card__media img { transform: scale(1.06); }
.blog-card__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, #17171c 0%, #0d0d0f 100%);
}
.blog-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; }
.blog-card__date {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gallery-gold, #d4af37);
}
.blog-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}
.blog-card__excerpt {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__cta {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gallery-gold, #d4af37);
}
.blog__loading, .blog__error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
}
.blog__error a { color: var(--gallery-gold, #d4af37); }
.blog__more { text-align: center; margin-top: 2.5rem; }
.blog__more-link {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
  color: var(--gallery-gold, #d4af37);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.blog__more-link:hover { background: rgba(212, 175, 55, 0.12); border-color: var(--gallery-gold, #d4af37); }

/* ═══════════════════════════════════════════════════════════════
   12. AORAN — las letras se retiran «detrás de la cabeza»
   A los 4 s de contemplar la sección, los caracteres retroceden,
   se encogen y se disuelven; vuelven al pasar el cursor.
   ═══════════════════════════════════════════════════════════════ */
.about__impact-title .aoran-char {
  display: inline-block;
  transition:
    transform 1.5s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 1.5s ease,
    filter 1.5s ease;
  transition-delay: calc(var(--i, 0) * 45ms);
  will-change: transform, opacity;
}
.about__impact-title.aoran-drift .aoran-char {
  transform: translateY(-0.32em) scale(0.8) rotate(var(--r, 5deg));
  opacity: 0.22;
  filter: blur(1px);
}
@media (prefers-reduced-motion: reduce) {
  .about__impact-title .aoran-char { transition: none; }
  .about__impact-title.aoran-drift .aoran-char { transform: none; opacity: 1; filter: none; }
}

/* ═══════════════════════════════════════════════════════════════
   13. INDUSTRIAL NOIR 2026 — SOVEREIGN AESTHETIC POLISH
   ═══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: rgba(43, 59, 229, 0.4);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.nav__link {
  position: relative;
}
.nav__link.active, .nav__link--active {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5), 0 0 20px rgba(43, 59, 229, 0.4) !important;
}
.nav__link.active::after, .nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 15%;
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, #2B3BE5, #d4af37);
  border-radius: 2px;
  box-shadow: 0 0 8px #d4af37;
}

.game-card {
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.4s ease, box-shadow 0.4s ease !important;
}
.game-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-color: rgba(212, 175, 55, 0.5) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(43, 59, 229, 0.25) !important;
}

/* ═══════════════════════════════════════════════════════════════
   14. APEX INDUSTRIAL NOIR POLISH — MICA ORB, CTA & HERO GLOW
   ═══════════════════════════════════════════════════════════════ */
#mica-orb {
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(43, 59, 229, 0.9) 0%, rgba(10, 10, 10, 0.9) 100%) !important;
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  box-shadow: 0 0 20px rgba(43, 59, 229, 0.5), 0 0 35px rgba(212, 175, 55, 0.3) !important;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s ease !important;
  animation: orb-pulse 4s infinite ease-in-out !important;
}
#mica-orb:hover {
  transform: scale(1.12) rotate(10deg) !important;
  box-shadow: 0 0 30px rgba(43, 59, 229, 0.8), 0 0 50px rgba(212, 175, 55, 0.6) !important;
}
@keyframes orb-pulse {
  0%, 100% { box-shadow: 0 0 15px rgba(43, 59, 229, 0.4), 0 0 25px rgba(212, 175, 55, 0.2); }
  50% { box-shadow: 0 0 28px rgba(43, 59, 229, 0.7), 0 0 45px rgba(212, 175, 55, 0.5); }
}

.hero-immersive__cta {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  background: rgba(10, 10, 10, 0.6) !important;
  backdrop-filter: blur(12px) !important;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1) !important;
}
.hero-immersive__cta:hover {
  border-color: rgba(212, 175, 55, 0.8) !important;
  background: rgba(43, 59, 229, 0.25) !important;
  box-shadow: 0 0 25px rgba(43, 59, 229, 0.5), 0 0 15px rgba(212, 175, 55, 0.4) !important;
  transform: translateY(-2px) scale(1.03) !important;
}

.gallery-massive__item {
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.5s ease, border-color 0.5s ease !important;
  border-radius: 12px;
  overflow: hidden;
}
.gallery-massive__item:hover {
  border-color: rgba(212, 175, 55, 0.5) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(43, 59, 229, 0.25) !important;
}

/* ═══════════════════════════════════════════════════════════════
   15. GALLERY MASSIVE GRID & IMAGE STYLING (CRITICAL FIX)
   ═══════════════════════════════════════════════════════════════ */
.gallery-massive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.gallery-massive__item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #111113;
  border: 1px solid rgba(255, 255, 255, 0.12);
  aspect-ratio: 4 / 5;
  cursor: pointer;
}

.gallery-massive__item--colossal {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1 / 1;
}

.gallery-massive__item--large {
  grid-row: span 2;
  aspect-ratio: 3 / 4;
}

.gallery-massive__item--medium {
  aspect-ratio: 4 / 5;
}

.gallery-massive__item--small {
  aspect-ratio: 1 / 1;
}

@media (max-width: 768px) {
  .gallery-massive {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
  .gallery-massive__item--colossal {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gallery-massive__item--large {
    grid-row: span 1;
  }
}

.gallery-massive__item {
  position: relative;
  background: #08080a;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.gallery-massive__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  padding: 8px;
  box-sizing: border-box;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.9));
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

.gallery-massive__item:hover .gallery-massive__img {
  transform: scale(1.035) !important;
}

.gallery-massive__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-massive__item:hover .gallery-massive__overlay {
  opacity: 1;
}

.gallery-massive__title {
  color: #ffffff;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* ═══════════════════════════════════════════════════════════════
   14. HERO MASTERPIECE SHOWCASE (2K/4K) & SWITCHER
   ═══════════════════════════════════════════════════════════════ */
.hero-immersive--showcase {
  position: relative;
  overflow: hidden;
}

.hero-immersive__image-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-immersive__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1), transform 8s ease-out;
}

.hero-immersive__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.hero-immersive__cta--primary {
  background: #ffffff;
  color: #000000 !important;
  font-weight: 700;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}
.hero-immersive__cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.35);
}

.hero-immersive__cta--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border: 1px solid rgba(212, 175, 55, 0.4);
  font-weight: 600;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}
.hero-immersive__cta--secondary:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: #d4af37;
  transform: translateY(-2px);
}

.hero-switcher {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  justify-content: center;
}

.hero-switcher__chips {
  display: flex;
  gap: 0.5rem;
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(14px);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-switcher__chip {
  background: transparent;
  border: 1px solid transparent;
  color: #a1a1aa;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
}
.hero-switcher__chip:hover {
  color: #ffffff;
}
.hero-switcher__chip.active {
  background: rgba(212, 175, 55, 0.22);
  color: #ffffff;
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

/* ═══════════════════════════════════════════════════════════════
   15. SOBRE MÍ & BLOG (FUSIÓN MINIMALISTA)
   ═══════════════════════════════════════════════════════════════ */
.about__impact {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.about__impact-image {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  z-index: 1;
}

.about__impact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(100%) contrast(120%);
}

.about__impact-image:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 15%, #0a0a0c 85%);
}

.about__impact-text {
  position: relative;
  z-index: 2;
  text-align: center;
}

.about__impact-title {
  font-family: var(--font-family-display);
  font-size: clamp(3.5rem, 11vw, 9.5rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.95);
  pointer-events: none;
}

.about__manifesto {
  max-width: 820px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
  text-align: center;
}

.about__quote {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-style: italic;
  color: #d4af37;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.about__bio {
  color: #a1a1aa;
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto;
}
.about__bio strong {
  color: #f4f4f5;
}

.blog--integrated {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ═══════════════════════════════════════════════════════════════
   CINEMATIC INTRO — V1: Flash de Luz Rasante (Puro Arte)
   ═══════════════════════════════════════════════════════════════ */
.cinematic-intro {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  pointer-events: auto;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s;
}

.cinematic-intro.is-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cinematic-intro__veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(20, 20, 25, 0.3) 0%, #050505 85%);
  z-index: 1;
}

.cinematic-intro__beam {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 2;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(212, 175, 55, 0.15) 47%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(212, 175, 55, 0.3) 53%,
    transparent 58%
  );
  transform: translate3d(-100%, -100%, 0) rotate(15deg);
  filter: blur(12px);
  animation: introLightSweep 1.35s cubic-bezier(0.19, 1, 0.22, 1) forwards 0.1s;
}

@keyframes introLightSweep {
  0% {
    transform: translate3d(-80%, -80%, 0) rotate(15deg);
    opacity: 0;
    filter: blur(8px);
  }
  25% {
    opacity: 1;
  }
  70% {
    opacity: 0.95;
    filter: blur(16px);
  }
  100% {
    transform: translate3d(80%, 80%, 0) rotate(15deg);
    opacity: 0;
    filter: blur(28px);
  }
}

.cinematic-intro__glint {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 140px;
  height: 140px;
  margin-top: -70px;
  margin-left: -70px;
  z-index: 3;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(212, 175, 55, 0.45) 35%, transparent 70%);
  filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.8));
  transform: scale(0);
  opacity: 0;
  animation: introGlint 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.45s;
}

@keyframes introGlint {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  40% {
    transform: scale(1.4) rotate(45deg);
    opacity: 1;
  }
  75% {
    transform: scale(1.1) rotate(90deg);
    opacity: 0.7;
  }
  100% {
    transform: scale(0.2) rotate(135deg);
    opacity: 0;
  }
}

/* ── Luz de estudio interactiva sobre la mica del Hero ── */
.hero-immersive__mica-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.5s ease;
  background: radial-gradient(
    circle 340px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(212, 175, 55, 0.22) 0%,
    rgba(255, 255, 255, 0.1) 25%,
    transparent 65%
  );
}

.hero-immersive:hover .hero-immersive__mica-sheen {
  opacity: 1;
}

/* ── Hero Image Crossfade Cinematográfico ── */
.hero-immersive__image {
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.hero-immersive__image.hero-img--exit {
  opacity: 0;
  filter: blur(4px);
}
.hero-immersive__image.hero-img--enter {
  animation: heroEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes heroEnter {
  0%   { opacity: 0; filter: blur(6px); transform: scale(1.02); }
  100% { opacity: 1; filter: blur(0px); transform: scale(1); }
}

/* ══════════════════════════════════════════════════════════════
   FLOATING ENCARGO BAR — WhatsApp CTA Siempre Visible
   ══════════════════════════════════════════════════════════════ */
.encargo-float-bar {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9900;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.encargo-float-bar.encargo-float--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.encargo-float-bar.encargo-float--hidden {
  opacity: 0;
  transform: translateY(16px) scale(0.94);
  pointer-events: none;
}
.encargo-float__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #25D366;
  color: #0a1a0a;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(37,211,102,0.35), 0 1px 4px rgba(0,0,0,0.4);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  white-space: nowrap;
}
.encargo-float__wa:hover,
.encargo-float__wa:focus-visible {
  background: #1ebe5d;
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5), 0 2px 8px rgba(0,0,0,0.4);
  outline: none;
}
.encargo-float__wa svg {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
}
@media (max-width: 600px) {
  .encargo-float-bar { bottom: 1rem; right: 1rem; }
  .encargo-float__wa { font-size: 0.82rem; padding: 0.65rem 1.1rem; }
}

/* ══════════════════════════════════════════════════════════════
   FIDELIDAD MASTER 2K/4K — Obras Completas Sin Recorte
   ══════════════════════════════════════════════════════════════ */
.gallery-hero__image,
.gallery-massive__img,
.lightbox__img {
  image-rendering: -webkit-optimize-contrast;
  object-fit: contain !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

/* ── Hero de Obra Principal (Amy): Cero Recortes & Flujo Natural ── */
.gallery-hero {
  min-height: auto !important;
  height: auto !important;
  padding: 4.5rem 1.5rem 2rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow: visible !important;
  background: transparent !important;
}

.gallery-hero__artwork {
  position: relative !important;
  width: auto !important;
  max-width: 100% !important;
  aspect-ratio: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
  transform: none !important;
}

.gallery-hero__artwork:before,
.gallery-hero__artwork:after {
  display: none !important;
}

.gallery-hero__image {
  max-height: 75vh !important;
  width: auto !important;
  max-width: 92vw !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  transform: none !important;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.95)) !important;
  transition: transform 0.4s ease, filter 0.4s ease !important;
}

.gallery-hero__artwork:hover .gallery-hero__image {
  transform: scale(1.015) !important;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 1)) drop-shadow(0 0 40px rgba(212, 175, 55, 0.25)) !important;
}

.gallery-hero__info {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  margin-top: 1.5rem !important;
  margin-bottom: 2rem !important;
  text-align: center !important;
  opacity: 1 !important;
  animation: none !important;
}

.gallery-hero__title {
  font-size: clamp(1.8rem, 4vw, 3rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  margin: 0 0 0.4rem 0 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8) !important;
}

.gallery-hero__year {
  font-family: var(--font-mono, monospace) !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.22em !important;
  color: #d4af37 !important;
  text-transform: uppercase !important;
  display: block !important;
}

/* Transición limpia y fluida hacia el catálogo */
.gallery-section-header {
  margin: 2rem auto 3rem !important;
  text-align: center !important;
  padding: 0 1rem !important;
}

.gallery-section-header__title {
  display: none !important; /* Elimina el bloque tosco que decía Obra */
}

.gallery-section-header__line {
  max-width: 140px !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent) !important;
  margin: 0 auto !important;
}


