/* =============================================
   ANFITRIONAS — estilos v3 (mobile optimized)
   ============================================= */

/* =============================================
   HERO
   ============================================= */

.anf-hero {
  position: relative;
  height: clamp(220px, 28vh, 300px);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
  overflow: hidden;
  margin-top: 104px;
  background: linear-gradient(135deg, rgba(107,33,232,0.2), rgba(6,6,8,1));
}

.anf-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.anf-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 100% at 60% 0%, rgba(232,0,122,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 80% 80% at 10% 100%, rgba(107,33,232,0.25) 0%, transparent 55%),
    linear-gradient(to bottom, rgba(6,6,8,0.35), rgba(6,6,8,0.88));
  z-index: 1;
}

.anf-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.anf-hero-content h1 {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--blanco);
  margin: 8px 0 12px;
  text-wrap: balance;
}

.anf-hero-content p {
  font-size: 14px;
  font-weight: 300;
  color: var(--gris);
  max-width: 460px;
  line-height: 1.55;
  margin: 0 auto;
}

/* =============================================
   GALERÍA — cuadrícula
   ============================================= */

.anf-galeria {
  padding: 30px 72px 72px;
  position: relative;
  z-index: 1;
}

.anf-header {
  max-width: 1400px;
  margin: 0 auto 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.anf-gallery-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--rosa);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.anf-header h2 {
  margin: 0;
  color: var(--blanco);
  font-family: var(--font-body);
  font-size: clamp(1.55rem, 2.8vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.anf-count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gris-oscuro);
  white-space: nowrap;
  padding-bottom: 3px;
}

.anf-count span { color: var(--rosa); }

.anf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1400px;
  margin: 0 auto;
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}


/* =============================================
   CARD
   ============================================= */

.anf-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
  border: 1px solid var(--glass-border);
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
  background: rgba(255,255,255,0.03);
  -webkit-tap-highlight-color: transparent;
}

.anf-card:hover {
  border-color: var(--glass-hover);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(232,0,122,0.15);
}

.anf-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,0,122,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 2;
}

.anf-card:hover::after { opacity: 1; }

.anf-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.7s ease;
  filter: brightness(0.72);
  background: #0b0910;
}

.anf-card:hover .anf-card-img {
  transform: scale(1.07);
  filter: brightness(0.5);
}

.anf-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,6,8,0.96) 0%, rgba(6,6,8,0.35) 35%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 14px;
  transition: background 0.4s;
  z-index: 3;
}

.anf-card:hover .anf-card-overlay {
  background: linear-gradient(to top, rgba(6,6,8,0.92) 0%, rgba(6,6,8,0.5) 45%, rgba(6,6,8,0.1) 70%);
}

.anf-card-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.anf-card-name {
  display: block;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blanco);
  text-align: center;
}

.anf-card-ver {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blanco);
  background: rgba(232,0,122,0.25);
  border: 1px solid rgba(232,0,122,0.5);
  padding: 8px 16px;
  border-radius: 3px;
  backdrop-filter: blur(8px);
  /* En desktop: aparece al hover */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s, transform 0.35s;
  white-space: nowrap;
}

.anf-card-ver svg {
  width: 13px; height: 13px;
  stroke: var(--blanco);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  flex-shrink: 0;
}

.anf-card:hover .anf-card-ver {
  opacity: 1;
  transform: translateY(0);
}

/* En touch — mostrar siempre sin hover */
@media (hover: none) {
  .anf-card-ver { opacity: 1; transform: translateY(0); }
  .anf-card:active .anf-card-img { filter: brightness(0.5); transform: scale(1.03); }
}

/* CTA al pie */
.anf-cta {
  max-width: 1400px;
  margin: 48px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 32px 40px;
  background: rgba(232,0,122,0.04);
  border: 1px solid rgba(232,0,122,0.15);
  border-radius: 12px;
  flex-wrap: wrap;
}

.anf-cta p {
  font-size: 15px;
  font-weight: 300;
  color: var(--gris);
  letter-spacing: 0.5px;
}

.anf-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rosa);
  color: var(--blanco);
  padding: 14px 32px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  box-shadow: 0 0 24px var(--rosa-glow);
  transition: all 0.3s;
  white-space: nowrap;
}

.anf-cta-btn::after { content: '→'; font-size: 13px; }

.anf-cta-btn:hover {
  box-shadow: 0 0 44px var(--rosa-glow);
  transform: translateY(-2px);
}

/* Texto descriptivo visible para clientes y buscadores */
.anf-seo-story {
  max-width: 1120px;
  margin: clamp(38px, 6vw, 72px) auto 0;
  padding: clamp(26px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.45fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  border: 1px solid rgba(232,0,122,.2);
  border-radius: 14px;
  background:
    radial-gradient(circle at 8% 20%, rgba(107,33,232,.16), transparent 38%),
    linear-gradient(135deg, rgba(232,0,122,.07), rgba(255,255,255,.018) 52%, rgba(107,33,232,.06));
}

.anf-seo-story-heading > span {
  display: block;
  margin-bottom: 10px;
  color: var(--rosa);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.anf-seo-story h2 {
  margin: 0;
  max-width: 12ch;
  color: var(--blanco);
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3.2vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.anf-seo-story-copy {
  max-width: 68ch;
}

.anf-seo-story-copy p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.75;
  text-wrap: pretty;
}

.anf-seo-story-copy p + p { margin-top: 13px; }

.anf-seo-story-copy ul {
  margin: 24px 0 0;
  padding: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  list-style: none;
}

.anf-seo-story-copy li {
  position: relative;
  padding-left: 14px;
  color: rgba(255,255,255,.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .35px;
}

.anf-seo-story-copy li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rosa);
  box-shadow: 0 0 8px rgba(232,0,122,.65);
}

/* =============================================
   LIGHTBOX
   ============================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4,4,6,0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 820px;
  max-height: 95vh;
  background: rgba(10,10,14,0.98);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.8);
  transform: scale(0.96);
  transition: transform 0.35s ease;
}

.lightbox.open .lightbox-panel { transform: scale(1); }

.lightbox-panel.foto-vertical .lb-foto-wrap { max-width: 100%; }
.lightbox-panel.foto-horizontal .lb-foto-wrap { max-width: 100%; }

/* Botón cerrar */
.lightbox-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: background 0.3s, border-color 0.3s;
}

.lightbox-close:hover, .lightbox-close:active {
  background: rgba(232,0,122,0.2);
  border-color: var(--rosa);
}

.lightbox-close svg { width: 14px; height: 14px; stroke: var(--blanco); }

/* Flechas entre chicas */
.lb-chica-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(10,10,14,0.85);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2010;
  transition: background 0.3s, border-color 0.3s;
}

.lb-chica-nav:hover { background: rgba(232,0,122,0.2); border-color: var(--rosa); }
.lb-chica-nav svg { width: 18px; height: 18px; stroke: var(--blanco); }
.lb-chica-prev { left: 10px; }
.lb-chica-next { right: 10px; }

/* Zona foto */
.lb-foto-wrap {
  position: relative;
  width: 100%;
  height: 62vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #06060a;
  overflow: hidden;
  flex-shrink: 0;
}

#lb-img-main {
    width: 100%;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center top;
  }

/* Spinner */
.lb-foto-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #06060a;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.lb-foto-loading.visible { opacity: 1; }

.lb-spinner {
  width: 32px; height: 32px;
  border: 2px solid rgba(232,0,122,0.2);
  border-top-color: var(--rosa);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Flechas de foto */
.lb-foto-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
}

.lb-nav {
  width: 40px; height: 40px;
  background: rgba(6,6,8,0.7);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s;
  pointer-events: all;
  flex-shrink: 0;
}

.lb-nav:hover, .lb-nav:active {
  background: rgba(232,0,122,0.25);
  border-color: var(--rosa);
}

.lb-nav svg { width: 15px; height: 15px; stroke: var(--blanco); fill: none; }

/* Contador */
.lb-foto-counter {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gris-oscuro);
  background: rgba(6,6,8,0.6);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Panel derecho */
.lightbox-right {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-left: none;
  border-top: 1px solid var(--glass-border);
  overflow-y: auto;
  padding: 14px 20px 18px;
  -webkit-overflow-scrolling: touch;
  max-height: 38vh;
}

.lb-top { margin-bottom: 8px; }

.lb-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rosa);
  margin-bottom: 6px;
  display: block;
}

.lb-nombre {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: -0.5px;
  color: var(--blanco);
  margin-bottom: 10px;
  line-height: 1;
}

.lb-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--gris);
  line-height: 1.7;
}

/* Thumbnails */
.lb-thumbs-wrap { margin-bottom: 12px; flex: 1; }

.lb-thumbs-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gris-oscuro);
  margin-bottom: 8px;
}

.lb-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(232,0,122,0.3) transparent;
}

.lb-thumbs img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.25s, opacity 0.25s;
  opacity: 0.5;
  flex-shrink: 0;
}

.lb-thumb-video {
  width: 76px;
  height: 76px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid rgba(232,0,122,0.6);
  background: rgba(232,0,122,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 1;
  transition: border-color 0.25s, background 0.25s;
  color: var(--rosa);
}

.lb-thumbs img:hover, .lb-thumbs img:active { opacity: 0.8; transform: scale(1.05); }

.lb-thumbs img.active {
  border-color: var(--rosa);
  opacity: 1;
  box-shadow: 0 0 10px var(--rosa-glow);
}

/* Dots */
.lb-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
}

.lb-dots button {
  width: 18px; height: 3px;
  border-radius: 2px;
  border: none;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.lb-dots button.active {
  background: var(--rosa);
  width: 32px;
  box-shadow: 0 0 8px var(--rosa-glow);
}

/* Botones acción */
.lb-actions { display: flex; flex-direction: row; gap: 10px; margin-top: 12px; }

.lb-wha-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: var(--blanco);
  padding: 13px 12px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s;
}

.lb-wha-btn:hover, .lb-wha-btn:active {
  background: #1fb856;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
}

/* Video */
.lb-video-wrap {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
}

#lb-video {
  width: 100%;
  border-radius: 8px;
  max-height: 180px;
  object-fit: contain;
  background: #06060a;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1200px) {
  .anf-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .anf-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-panel { max-width: 100%; }
  .lb-chica-prev { left: 4px; }
  .lb-chica-next { right: 4px; }
  .lb-chica-nav { width: 36px; height: 36px; }
}

@media (max-width: 768px) {
  /* Hero */
  .anf-hero {
    margin-top: 84px;
    height: auto;
    min-height: 164px;
    padding: 25px 20px 22px;
  }

  .anf-hero-content .section-label { font-size: 8px; letter-spacing: 2px; }
  .anf-hero-content h1 { font-size: clamp(1.75rem, 7.5vw, 2.3rem); letter-spacing: -0.03em; margin: 6px 0 9px; }
  .anf-hero-content p { max-width: 36ch; font-size: 12px; line-height: 1.45; }

  /* Galería */
  .anf-galeria { padding: 24px 16px 52px; }
  .anf-header { align-items: center; gap: 12px; margin-bottom: 14px; }
  .anf-header h2 { max-width: 13ch; font-size: clamp(1.3rem, 6vw, 1.7rem); }
  .anf-gallery-kicker { margin-bottom: 3px; font-size: 8px; letter-spacing: 1.5px; }
  .anf-count { font-size: 9px; letter-spacing: 1.5px; }
  .anf-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .anf-card-name { font-size: 11px; letter-spacing: 2px; }
  .anf-card-ver { font-size: 8px; padding: 6px 12px; letter-spacing: 1.5px; }

  /* CTA */
  .anf-cta { padding: 20px 16px; gap: 14px; margin-top: 32px; }
  .anf-cta p { text-align: center; font-size: 13px; }
  .anf-cta-btn { width: 100%; justify-content: center; font-size: 10px; padding: 13px; }

  .anf-seo-story {
    margin-top: 34px;
    padding: 24px 20px;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .anf-seo-story h2 { max-width: 14ch; font-size: clamp(1.65rem, 8vw, 2.15rem); }
  .anf-seo-story-copy p { font-size: 13px; line-height: 1.68; }
  .anf-seo-story-copy ul { margin-top: 20px; padding-top: 16px; display: grid; gap: 10px; }

  /* Lightbox — pantalla completa en móvil */
  .lightbox { padding: 0; }
  .lightbox-panel {
    border-radius: 0;
    max-height: 100svh;
    max-width: 100%;
    overflow-y: auto;
  }

  .lb-foto-wrap {
    height: 65svh;
    flex-shrink: 0;
    min-height: 0;
  }

  .lb-chica-nav { display: none; } /* swipe reemplaza en móvil */

  .lightbox { padding: 0; align-items: stretch; }
  .lightbox-panel {
    border-radius: 0;
    max-height: 100svh;
    max-width: 100%;
    height: 100svh;
  }
  .lb-foto-wrap {
    height: auto;
    flex: 1;
    min-height: 0;
  }
  #lb-img-main {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
  }
  .lightbox-right {
    max-height: none;
    flex-shrink: 0;
    padding: 10px 16px 14px;
  }
  .lb-thumbs img { width: 58px; height: 58px; }
  .lb-thumb-video { width: 58px; height: 58px; }
  .lb-actions { gap: 8px; }
  .lb-wha-btn { font-size: 9px; padding: 11px 8px; }
  .lb-dots { padding: 6px 0; }
  .lb-thumbs-label { display: none; }
  .lb-chica-nav { display: none; }

  /* Panel info más compacto */
  .lightbox-right { padding: 16px 16px 20px; }
  .lb-nombre { font-size: 1.4rem; }
  .lb-desc { font-size: 12px; display: none; } /* ocultar descripción para ganar espacio */
  .lb-thumbs img { width: 48px; height: 48px; }
  .lb-top { margin-bottom: 12px; }
  .lb-thumbs-wrap { margin-bottom: 8px; }
}

@media (max-width: 480px) {
  .anf-hero { margin-top: 84px; padding: 22px 14px 19px; min-height: 150px; }
  .anf-hero-content h1 { font-size: clamp(1.6rem, 7.5vw, 1.9rem); }
  .anf-header h2 { font-size: clamp(1.2rem, 5.7vw, 1.55rem); }
  .anf-grid { gap: 6px; }
  .anf-card-name { font-size: 10px; letter-spacing: 1.5px; }
  .lb-thumbs img { width: 44px; height: 44px; }
  .lb-nombre { font-size: 1.3rem; }
  .lb-wha-btn { font-size: 9px; padding: 11px 12px; }
  .anf-seo-story { padding: 22px 17px; border-radius: 12px; }
}

/* =============================================
   GALERÍA 2026 — visor inmersivo y adaptable
   ============================================= */

.lightbox {
  padding: clamp(16px, 3vw, 32px);
  background: rgba(2,2,5,0.94);
}

.lightbox-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  width: min(1120px, 100%);
  height: min(86svh, 780px);
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 14px;
  background: #0b0b10;
  box-shadow: 0 28px 80px rgba(0,0,0,0.72);
  transform: translateY(12px) scale(0.985);
  transition: transform 260ms var(--ease-out), opacity 220ms ease;
}

.lightbox.open .lightbox-panel { transform: translateY(0) scale(1); }

.lb-foto-wrap {
  grid-column: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(107,33,232,0.16), transparent 48%),
    #030305;
}

#lb-img-main,
#lb-video-main {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100% !important;
  object-fit: contain;
  object-position: center;
}

.lb-foto-wrap.showing-video .lb-foto-controls,
.lb-foto-wrap.showing-video .lb-foto-counter { display: none; }

.lightbox-right {
  grid-column: 2;
  width: 100%;
  max-height: none;
  min-height: 0;
  padding: 28px 24px 22px;
  border-top: 0;
  border-left: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(232,0,122,0.045), transparent 34%), #0b0b10;
  overflow-y: auto;
}

.lb-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.lb-profile-head > div { min-width: 0; }
.lb-top { margin-bottom: 20px; }
.lb-label { margin-bottom: 8px; font-size: 8px; letter-spacing: 2.2px; }
.lb-nombre { margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -0.035em; overflow-wrap: anywhere; }
.lb-desc { margin-top: 16px; font-size: 12px; line-height: 1.65; text-wrap: pretty; }
.lb-like-btn { flex: 0 0 auto; min-height: 40px; padding: 9px 11px; }

.lb-thumbs-wrap {
  margin: 0;
  padding-top: 17px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.lb-thumbs-label { margin-bottom: 10px; font-size: 8px; letter-spacing: 2px; }
.lb-thumbs { gap: 9px; padding: 2px 1px 9px; scroll-snap-type: x proximity; }
.lb-thumbs img,
.lb-thumb-video {
  width: 64px;
  height: 76px;
  border-radius: 8px;
  scroll-snap-align: start;
}
.lb-thumbs img { border: 0; outline: 2px solid transparent; outline-offset: -2px; }
.lb-thumbs img.active { outline-color: var(--rosa); box-shadow: none; }
.lb-thumb-video { border: 0; background: rgba(232,0,122,0.12); }
.lb-dots { padding: 8px 0 2px; }

.lb-actions {
  position: sticky;
  bottom: -1px;
  z-index: 3;
  margin-top: 18px;
  padding-top: 12px;
  background: linear-gradient(to top, #0b0b10 78%, transparent);
}

.lb-wha-btn { min-height: 46px; border-radius: 7px; }

.lightbox-close {
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  background: rgba(6,6,8,0.78);
}

.lb-nav { width: 44px; height: 44px; }
.lb-chica-nav { width: 46px; height: 46px; }
.lb-chica-prev { left: max(10px, calc((100vw - 1200px) / 2)); }
.lb-chica-next { right: max(10px, calc((100vw - 1200px) / 2)); }

@media (max-width: 768px) {
  .lightbox { padding: 0; }
  .lightbox-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .lb-foto-wrap {
    flex: 0 0 56dvh;
    width: 100%;
    height: 56dvh;
    min-height: 280px;
  }
  .lightbox-right {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding: 17px 16px max(18px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,0.08);
    border-left: 0;
  }
  .lb-profile-head { align-items: center; }
  .lb-label { margin-bottom: 5px; }
  .lb-nombre { font-size: clamp(1.55rem, 8vw, 2rem); }
  .lb-desc { display: block; margin-top: 10px; font-size: 11px; line-height: 1.5; }
  .lb-top { margin-bottom: 13px; }
  .lb-like-label { display: none; }
  .lb-like-btn { min-width: 44px; min-height: 44px; padding: 8px; justify-content: center; }
  .lb-thumbs-wrap { padding-top: 12px; }
  .lb-thumbs-label { display: block; margin-bottom: 7px; }
  .lb-thumbs img,
  .lb-thumb-video { width: 52px; height: 60px; }
  .lb-dots { display: none; }
  .lb-actions { margin-top: 9px; padding-top: 9px; }
  .lb-wha-btn { min-height: 44px; font-size: 9px; letter-spacing: 1px; }
  .lightbox-close { top: max(10px, env(safe-area-inset-top)); right: 10px; }
  .lb-foto-controls { padding-inline: 7px; }
  .lb-nav { width: 44px; height: 44px; }
}

@media (max-width: 390px), (max-height: 700px) and (max-width: 768px) {
  .lb-foto-wrap { flex-basis: 50dvh; min-height: 230px; }
  .lb-desc { display: none; }
  .lightbox-right { padding-top: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-panel,
  #lb-img-main { transition: none; }
}

/* Galería móvil: atmósfera, progreso y descubrimiento */
.lb-foto-wrap::before {
  content: '';
  position: absolute;
  inset: -18px;
  z-index: 0;
  background-image: var(--lb-current-image);
  background-position: center;
  background-size: cover;
  filter: blur(28px) saturate(1.15);
  opacity: 0.2;
  transform: scale(1.08);
  pointer-events: none;
}

#lb-img-main,
#lb-video-main { position: relative; z-index: 1; }

.lb-photo-rail,
.lb-swipe-hint { display: none; }

.lb-swipe-hint[hidden] { display: none !important; }

#lb-img-main.photo-enter { animation: photo-enter 360ms var(--ease-out) both; }

@keyframes photo-enter {
  from { opacity: 0; transform: scale(0.975); filter: saturate(0.8); }
  to { opacity: 1; transform: scale(1); filter: saturate(1); }
}

@media (max-width: 768px) {
  .lb-foto-wrap {
    isolation: isolate;
    border-bottom: 1px solid rgba(232,0,122,0.35);
  }
  .lb-foto-wrap::before { opacity: 0.34; filter: blur(24px) saturate(1.25); }
  .lb-foto-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(3,3,5,0.04) 55%, rgba(3,3,5,0.78) 100%);
    pointer-events: none;
  }
  #lb-img-main,
  #lb-video-main { filter: drop-shadow(0 12px 30px rgba(0,0,0,0.38)); }
  .lb-foto-controls,
  .lb-foto-counter,
  .lb-photo-rail,
  .lb-swipe-hint,
  .lightbox-close { z-index: 4; }
  .lb-foto-loading { z-index: 5; }
  .lb-photo-rail {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    left: 16px;
    right: 68px;
    display: flex;
    gap: 5px;
  }
  .lb-photo-rail[hidden] { display: none; }
  .lb-photo-rail span {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: rgba(255,255,255,0.28);
    transition: background 180ms ease, box-shadow 180ms ease;
  }
  .lb-photo-rail span.active { background: var(--rosa); box-shadow: 0 0 9px rgba(232,0,122,0.75); }
  .lb-swipe-hint {
    position: absolute;
    left: 50%;
    bottom: 38px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    color: rgba(255,255,255,0.88);
    background: rgba(6,6,8,0.64);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transform: translateX(-50%);
    animation: swipe-invite 2.5s 3;
    white-space: nowrap;
  }
  .lb-swipe-hint svg { fill: none; stroke: var(--rosa); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .lb-foto-wrap.has-interacted .lb-swipe-hint,
  .lb-foto-wrap.hint-expired .lb-swipe-hint,
  .lb-foto-wrap.showing-video .lb-swipe-hint { display: none; }
  .lightbox-right {
    background:
      radial-gradient(circle at 88% 0%, rgba(232,0,122,0.16), transparent 36%),
      linear-gradient(180deg, #130a16 0%, #0b0b10 48%);
  }
  .lb-like-label { display: inline; font-size: 8px; letter-spacing: 0.8px; }
  .lb-like-btn {
    min-width: 78px;
    min-height: 44px;
    padding: 8px 10px;
    justify-content: center;
    background: rgba(232,0,122,0.1);
    border-color: rgba(232,0,122,0.42);
    color: rgba(255,255,255,0.9);
  }
  .lb-thumbs img.active { outline-width: 3px; transform: translateY(-2px); }
}

@keyframes swipe-invite {
  0%, 100% { opacity: 0.72; transform: translateX(-50%); }
  48% { opacity: 1; transform: translateX(calc(-50% + 8px)); }
}

@media (prefers-reduced-motion: reduce) {
  #lb-img-main.photo-enter,
  .lb-swipe-hint { animation: none; }
}

/* Desktop estable + atmósfera de corazones */
.lb-heart-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 18;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.lb-floating-heart {
  position: absolute;
  left: var(--heart-x);
  bottom: var(--heart-bottom);
  color: rgba(232,0,122,0.72);
  font-size: var(--heart-size);
  line-height: 1;
  opacity: 0;
  filter: drop-shadow(0 0 7px rgba(232,0,122,0.55));
  animation: gallery-heart-float var(--heart-duration) var(--heart-delay) var(--ease-out) forwards;
  will-change: transform, opacity;
}

.lb-floating-heart.is-burst { color: #ff2b9a; filter: drop-shadow(0 0 10px rgba(232,0,122,0.85)); }

@keyframes gallery-heart-float {
  0% { opacity: 0; transform: translate3d(-50%, 8px, 0) scale(0.55) rotate(-8deg); }
  14% { opacity: 0.95; }
  68% { opacity: 0.72; }
  100% { opacity: 0; transform: translate3d(calc(-50% + var(--heart-drift)), -150px, 0) scale(1.18) rotate(14deg); }
}

@media (min-width: 769px) {
  .lightbox { padding: 32px 72px; }
  .lightbox-panel {
    grid-template-columns: minmax(0, 1fr) 360px;
    width: min(1160px, calc(100vw - 144px));
    height: min(88svh, 800px);
    overflow: visible;
  }
  .lb-foto-wrap {
    overflow: hidden;
    border-radius: 14px 0 0 14px;
  }
  .lightbox-right {
    border-radius: 0 14px 14px 0;
    overflow-x: hidden;
    overflow-y: auto;
    text-align: left;
  }
  .lb-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 18px;
  }
  .lb-profile-head { display: contents; }
  .lb-profile-head > div {
    order: 1;
    width: 100%;
  }
  .lb-label,
  .lb-nombre,
  .lb-desc { text-align: left; }
  .lb-nombre {
    max-width: 100%;
    font-size: clamp(1.9rem, 2.7vw, 2.55rem);
    line-height: 1.02;
  }
  .lb-desc {
    order: 2;
    width: 100%;
    margin: 15px 0 0;
  }
  .lb-like-btn {
    order: 3;
    align-self: flex-start;
    min-height: 44px;
    margin-top: 16px;
    padding: 10px 15px;
    background: rgba(232,0,122,0.1);
    border-color: rgba(232,0,122,0.4);
    color: rgba(255,255,255,0.9);
  }
  .lb-chica-nav {
    position: absolute;
    top: 50%;
    z-index: 25;
  }
  .lb-chica-prev { left: -58px; }
  .lb-chica-next { right: -58px; }
  .lightbox-close { z-index: 26; }
  .lb-foto-loading { z-index: 6; }
}

@media (max-width: 900px) and (min-width: 769px) {
  .lightbox { padding-inline: 58px; }
  .lightbox-panel {
    grid-template-columns: minmax(0, 1fr) 320px;
    width: calc(100vw - 116px);
  }
  .lb-chica-prev { left: -48px; }
  .lb-chica-next { right: -48px; }
  .lightbox-right { padding: 22px 18px 18px; }
}

@media (max-width: 768px) {
  .lb-heart-atmosphere { border-radius: 0; z-index: 18; }
  .lb-floating-heart { z-index: 18; }
  .lightbox-close,
  .lb-photo-rail,
  .lb-swipe-hint,
  .lb-foto-controls,
  .lb-foto-counter { z-index: 20; }
}

@media (prefers-reduced-motion: reduce) {
  .lb-floating-heart { display: none; animation: none; }
}

/* Navegación de fotos diferenciada de la navegación entre anfitrionas */
.lb-foto-controls[hidden] { display: none !important; }

@media (min-width: 769px) {
  .lb-foto-controls {
    inset: auto auto 18px 50%;
    width: auto;
    padding: 6px;
    gap: 4px;
    justify-content: center;
    z-index: 24;
    border-radius: 999px;
    background: rgba(6,6,8,0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateX(-50%);
  }
  .lb-foto-controls .lb-nav {
    width: auto;
    height: 42px;
    gap: 8px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255,255,255,0.82);
    font-family: var(--font-body);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
  }
  .lb-foto-controls .lb-nav span { display: inline; white-space: nowrap; }
  .lb-foto-controls .lb-nav:hover,
  .lb-foto-controls .lb-nav:focus-visible {
    color: #fff;
    background: var(--rosa);
  }
  .lb-foto-counter {
    bottom: 76px;
    z-index: 24;
    color: rgba(255,255,255,0.85);
    background: rgba(6,6,8,0.72);
  }
}

@media (max-width: 768px) {
  .lb-foto-controls {
    inset: 0;
    width: 100%;
    padding: 0 7px;
    gap: 0;
    justify-content: space-between;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
  }
  .lb-foto-controls .lb-nav {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    background: rgba(6,6,8,0.7);
  }
  .lb-foto-controls .lb-nav span { display: none; }
}

/* Liquid controls — prioridad final */
:is(.anf-cta-btn, .lb-wha-btn, .lb-telegram-btn, .lb-nav, .lb-chica-nav, .lightbox-close, .btn-like) { border-radius: 999px; backdrop-filter: blur(16px) saturate(1.25); -webkit-backdrop-filter: blur(16px) saturate(1.25); box-shadow: inset 0 1px rgba(255,255,255,.18), 0 9px 24px rgba(0,0,0,.28); transition-duration: 180ms; }
.anf-cta-btn { border: 1px solid rgba(255,255,255,.18); background: linear-gradient(135deg, rgba(241,11,132,.96), rgba(165,22,188,.9)); }
.lb-wha-btn { border: 1px solid rgba(143,255,190,.22); background: linear-gradient(135deg, rgba(29,190,99,.92), rgba(10,112,62,.9)); }
.lb-telegram-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid rgba(112,211,255,.22);
  color: #fff;
  background: linear-gradient(135deg, rgba(34,158,217,.94), rgba(15,104,153,.92));
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .75px;
  text-align: center;
  text-transform: uppercase;
  transition: transform 180ms var(--ease-out), background 180ms ease;
}
.lb-telegram-btn:hover { color: #fff; background: #229ed9; transform: translateY(-2px); }
.lb-telegram-btn:focus-visible { outline: 2px solid #70d3ff; outline-offset: 2px; }
:is(.lb-nav, .lb-chica-nav, .lightbox-close) { border: 1px solid rgba(255,255,255,.14); background: rgba(10,10,16,.58); }

@media (max-width: 420px) {
  .lb-actions { gap: 7px; }
  .lb-wha-btn,
  .lb-telegram-btn { min-height: 44px; padding-inline: 8px; font-size: 8px; letter-spacing: .45px; }
}
