/* ============================================================
   Bariloche 2026 — diario de fotos familiar
   Paleta: lago Nahuel Huapi de noche, glaciar, nieve, atardecer
   ============================================================ */

:root {
  --lago:          #12333E;
  --lago-profundo: #0C242C;
  --glaciar:       #7FB5AE;
  --glaciar-dim:   rgba(127, 181, 174, 0.35);
  --nieve:         #F7F5F0;
  --nieve-dim:     rgba(247, 245, 240, 0.62);
  --ambar:         #E8A852;
  --sombra:        rgba(5, 16, 20, 0.55);

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body:    "Instrument Sans", system-ui, sans-serif;
  --caption: "Cormorant Garamond", "Georgia", serif;

  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--lago);
  color: var(--nieve);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; }

/* ---------- Cursor personalizado ---------- */

body {
  cursor: url("/assets/img/cursor.svg?v=2") 3 2, auto;
}

a,
button,
[role="button"],
input[type="button"],
input[type="submit"],
input[type="checkbox"],
input[type="radio"],
label[for],
select,
summary {
  cursor: url("/assets/img/cursor-pointer.svg?v=2") 3 2, pointer !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea {
  cursor: text;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--ambar);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Tipos compartidos ---------- */

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--glaciar);
}

/* ---------- Logo ---------- */

.logo-badge {
  width: 96px;
  height: auto;
  margin: 0 auto 18px;
  border-radius: 18px;
  border: 1px solid var(--glaciar-dim);
  box-shadow: 0 14px 34px -16px var(--sombra);
}

.logo-badge--hero {
  width: clamp(88px, 16vw, 120px);
  border-radius: 22px;
  transition: box-shadow 0.5s ease, transform 0.5s ease;
}

/* Glow detrás del logo y rayo luminoso sobre el título al pasar el mouse por cualquiera de los dos */
.hero-inner:hover .logo-badge--hero {
  box-shadow:
    0 0 30px 10px rgba(232, 168, 82, 0.55),
    0 0 70px 26px rgba(127, 181, 174, 0.4);
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner:hover .logo-badge--hero { transform: none; }
}

/* ---------- Cordillera (signature) ---------- */

.ridge {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: clamp(120px, 26vw, 240px);
  pointer-events: none;
}

.ridge-line {
  stroke: var(--glaciar);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  animation: dibujar 2.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.ridge-line--far  { opacity: 0.25; animation-delay: 0s; }
.ridge-line--mid  { opacity: 0.5;  animation-delay: 0.35s; }
.ridge-line--near { opacity: 0.9;  animation-delay: 0.7s; }

@keyframes dibujar {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ridge-line { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(127, 181, 174, 0.10), transparent 60%),
    linear-gradient(rgba(12, 36, 44, 0.92), rgba(12, 36, 44, 0.97)),
    url("/assets/img/wallpaper.jpg") center 30% / cover no-repeat,
    var(--lago-profundo);
  padding: calc(env(safe-area-inset-top, 0px) + clamp(56px, 12vh, 120px)) var(--gutter) clamp(130px, 30vw, 250px);
  text-align: center;
}

/* Fondo con recuerdos del álbum: mismas capas de oscurecido que el wallpaper */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transform-origin: center center;
  transition: opacity 1.1s ease;
}

.hero-bg-layer.is-visible {
  opacity: 1;
  animation: hero-kenburns var(--kb-duration, 6.5s) ease-in forwards;
}

/* La foto ya tapa todo el fondo (cover); el zoom + paneo lento solo agrega movimiento */
@keyframes hero-kenburns {
  from { transform: scale(1.02) translate(0, 0); }
  to   { transform: scale(var(--kb-s2, 1.16)) translate(var(--kb-x2, 2%), var(--kb-y2, 1%)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-layer.is-visible { animation: none; }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(127, 181, 174, 0.10), transparent 60%),
    linear-gradient(rgba(12, 36, 44, 0.74), rgba(12, 36, 44, 0.82));
}

.hero-inner { position: relative; z-index: 1; }

.hero-title {
  position: relative;
  display: inline-block;
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: clamp(64px, 16vw, 150px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--nieve);
  text-transform: uppercase;
  transition: text-shadow 0.6s ease;
}

/* Rayo luminoso: una franja brillante recorre las letras de la primera a la última */
.hero-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  background-image: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255, 255, 255, 0.9) 47%,
    var(--ambar) 50%,
    rgba(255, 255, 255, 0.9) 53%,
    transparent 70%
  );
  background-size: 250% 100%;
  background-position: -120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 1.1s ease;
}

.hero-inner:hover .hero-title {
  text-shadow: 0 0 34px rgba(232, 168, 82, 0.4);
}

.hero-inner:hover .hero-title::after {
  background-position: 120% 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-title { transition: none; }
  .hero-title::after { transition: none; }
}

.hero-sub {
  margin: 14px auto 0;
  max-width: 34ch;
  color: var(--nieve-dim);
  font-size: clamp(15px, 2.6vw, 18px);
}

.hero-quote {
  margin: 18px auto 0;
  max-width: 40ch;
  font-family: var(--display);
  font-weight: 600;
  font-stretch: 90%;
  font-style: italic;
  font-size: clamp(15px, 3vw, 19px);
  color: var(--glaciar);
}

.hero-count {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  margin: 22px 0 0;
  padding: 8px 18px;
  border: 1px solid var(--glaciar-dim);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  color: var(--ambar);
  font-size: 15px;
}

#photo-count-label { color: var(--nieve-dim); font-family: var(--body); font-weight: 400; }

/* ---------- Marquesina de últimas fotos ---------- */

.hero-marquee {
  margin: 18px auto 0;
  max-width: min(640px, 100%);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.hero-marquee-track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: marquee-ltr 45s linear infinite;
}

.hero-marquee:hover .hero-marquee-track { animation-play-state: paused; }

/* El contenido está duplicado: al mover de -50% a 0 el desfile va de izquierda a derecha sin cortes */
@keyframes marquee-ltr {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.marquee-item {
  position: relative;
  flex: 0 0 auto;
  width: 72px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--glaciar-dim);
  border-radius: 8px;
  overflow: hidden;
  background: none;
  cursor: pointer;
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.marquee-item:hover { border-color: var(--glaciar); }

.marquee-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-marquee-track { animation: none; }
}

.logout {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: 14px;
  z-index: 2;
  background: none;
  border: 1px solid var(--glaciar-dim);
  border-radius: 999px;
  color: var(--nieve-dim);
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  cursor: pointer;
}
.logout:hover { color: var(--nieve); border-color: var(--glaciar); }

/* ---------- Secciones ---------- */

.section { padding: clamp(28px, 6vw, 56px) var(--gutter) 0; }

.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(16px, 3vw, 26px);
}

.section-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: clamp(22px, 5vw, 32px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.section-rule {
  flex: 1;
  height: 10px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--glaciar-dim) 0 1px,
    transparent 1px 4px
  );
  opacity: 0.8;
}

/* ---------- Destacadas ---------- */

.featured-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72vw, 340px);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--glaciar-dim) transparent;
}

.featured-card {
  position: relative;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--glaciar-dim);
  padding: 0;
  background: var(--lago-profundo);
  cursor: pointer;
  box-shadow: 0 12px 30px -14px var(--sombra);
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card::after {
  content: "★";
  position: absolute;
  top: 10px;
  right: 12px;
  color: var(--ambar);
  font-size: 18px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* ---------- Grilla ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding-bottom: clamp(40px, 8vw, 80px);
}

@media (min-width: 640px)  { .grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }

.grid-item {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--lago-profundo);
  cursor: pointer;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.4s ease;
  opacity: 0;
}

.grid-item img.loaded { opacity: 1; }

@media (hover: hover) {
  .grid-item:hover img { transform: scale(1.04); }
}

.grid-item .star-mark {
  position: absolute;
  top: 8px;
  right: 10px;
  color: var(--ambar);
  font-size: 15px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.empty-state {
  padding: 40px 0 80px;
  text-align: center;
  color: var(--nieve-dim);
  max-width: 40ch;
  margin: 0 auto;
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  padding: 20px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 26px);
  text-align: center;
  color: var(--nieve-dim);
  font-size: 13px;
  background: var(--lago-profundo);
}

.contour {
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 40px;
}

.contour path {
  stroke: var(--glaciar-dim);
  stroke-width: 1.5;
  fill: none;
}

.heart-red { color: #E5484D; }

/* ---------- FAB de subida ---------- */

.fab {
  position: fixed;
  right: 18px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  z-index: 40;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  background: var(--ambar);
  color: var(--lago-profundo);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 26px -8px rgba(232, 168, 82, 0.65);
  transition: transform 0.2s ease;
}
.fab:active { transform: scale(0.92); }

.upload-progress {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 92px);
  transform: translateX(-50%);
  z-index: 41;
  width: min(88vw, 380px);
  background: var(--lago-profundo);
  border: 1px solid var(--glaciar-dim);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: 0 18px 40px -12px var(--sombra);
}

.upload-progress p { margin: 0 0 10px; font-size: 14px; color: var(--nieve); }

.upload-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(247, 245, 240, 0.12);
  overflow: hidden;
}

.upload-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--ambar);
  transition: width 0.25s ease;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(6, 18, 22, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox .lb-img,
.lightbox .lb-video {
  max-width: 100vw;
  max-height: 100dvh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.lb-btn {
  background: rgba(12, 36, 44, 0.75);
  border: 1px solid var(--glaciar-dim);
  border-radius: 50%;
  color: var(--nieve);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
}

.lb-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 14px); right: 14px; z-index: 2; }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  z-index: 2;
}
.lb-prev { left: 10px; }
.lb-next { right: 10px; }

@media (max-width: 639px) {
  .lb-nav { display: none; } /* en el celular se navega con swipe */
}

.lb-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px calc(env(safe-area-inset-bottom, 0px) + 14px);
  background: linear-gradient(to top, rgba(6, 18, 22, 0.9), transparent);
}

.lb-date { font-size: 13px; color: var(--nieve-dim); letter-spacing: 0.06em; }

.lb-actions { display: flex; gap: 10px; }

.lb-star.is-featured { color: var(--ambar); border-color: var(--ambar); }
.lb-star.is-featured .star-shape { fill: var(--ambar); }

/* ---------- Login ---------- */

.login-body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(127, 181, 174, 0.10), transparent 60%),
    linear-gradient(rgba(12, 36, 44, 0.90), rgba(12, 36, 44, 0.96)),
    url("/assets/img/wallpaper.jpg") center / cover no-repeat,
    var(--lago-profundo);
  padding: var(--gutter);
}

.login-card {
  position: relative;
  overflow: hidden;
  width: min(92vw, 460px);
  text-align: center;
  border: 1px solid var(--glaciar-dim);
  border-radius: 22px;
  padding: clamp(36px, 8vw, 56px) clamp(22px, 6vw, 44px) clamp(120px, 30vw, 170px);
  background: rgba(18, 51, 62, 0.55);
  box-shadow: 0 30px 70px -30px var(--sombra);
}

.ridge--login { height: clamp(100px, 28vw, 150px); }

.login-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: clamp(52px, 13vw, 76px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}

.login-promo {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--glaciar);
}

.login-sub {
  margin: 14px auto 26px;
  max-width: 30ch;
  color: var(--nieve-dim);
  font-size: 15px;
}

.login-field {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
}

.login-field input {
  flex: 1;
  min-width: 0;
  background: rgba(6, 18, 22, 0.6);
  border: 1px solid var(--glaciar-dim);
  border-radius: 12px;
  color: var(--nieve);
  font-family: var(--body);
  font-size: 16px;
  padding: 13px 16px;
}

.login-field input::placeholder { color: rgba(247, 245, 240, 0.4); }

.login-field input:focus {
  outline: none;
  border-color: var(--glaciar);
}

.login-field button {
  background: var(--ambar);
  color: var(--lago-profundo);
  border: 0;
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 20px;
  cursor: pointer;
}

.login-error {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: #F2B8A0;
  font-size: 14px;
}

/* ---------- Login con Google ---------- */

.google-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--glaciar-dim);
  background: var(--nieve);
  color: #1f1f1f;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.google-btn:hover { box-shadow: 0 10px 26px -12px var(--sombra); transform: translateY(-1px); }

.login-hint {
  position: relative;
  z-index: 1;
  margin: 10px auto 0;
  max-width: 34ch;
  color: var(--nieve-dim);
  font-size: 12.5px;
}

.login-divider {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
  color: var(--nieve-dim);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--glaciar-dim);
}

.login-field--single button {
  flex: 1;
  padding: 13px 20px;
}

.link-btn {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  background: none;
  border: 0;
  color: var(--glaciar);
  font-family: var(--body);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Header: acciones ---------- */

.hero-actions {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.hero-actions .logout { position: static; }

.admin-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  line-height: normal;
}

.pending-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ambar);
  color: var(--lago-profundo);
  font-size: 11px;
  font-weight: 700;
}

/* ---------- Likes y comentarios en el lightbox ---------- */

.lb-like,
#lb-comments-toggle {
  width: auto;
  min-width: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 13px;
}

.lb-count { font-size: 13px; font-family: var(--body); }
.lb-count:empty { display: none; }

.lb-like.is-liked {
  color: #FF6E9C;
  border-color: rgba(255, 110, 156, 0.6);
}
.lb-like.is-liked .heart-shape { fill: #FF6E9C; stroke: #FF6E9C; }

.lb-comments {
  position: absolute;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 78px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: min(calc(100vw - 24px), 400px);
  max-height: min(60dvh, 480px);
  background: var(--lago-profundo);
  border: 1px solid var(--glaciar-dim);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 24px 60px -20px var(--sombra);
}

.lb-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.lb-comments-head h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lb-comments-head .lb-btn {
  width: 32px;
  height: 32px;
  font-size: 14px;
  border: 0;
  background: none;
  color: var(--nieve-dim);
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--glaciar-dim) transparent;
}

.comment {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.comment-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.comment-avatar--fallback {
  display: grid;
  place-items: center;
  background: var(--glaciar-dim);
  color: var(--nieve);
  font-size: 14px;
  font-weight: 600;
}

.comment-body { flex: 1; min-width: 0; }

.comment-head {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--glaciar);
}

.comment-when {
  margin-left: 8px;
  font-weight: 400;
  font-size: 11.5px;
  color: var(--nieve-dim);
}

.comment-text {
  margin: 2px 0 0;
  font-size: 14px;
  overflow-wrap: break-word;
}

.comment-delete {
  background: none;
  border: 0;
  color: var(--nieve-dim);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
}
.comment-delete:hover { color: #F2B8A0; }

.comments-empty {
  margin: 8px 0;
  font-size: 13.5px;
  color: var(--nieve-dim);
}
.comments-empty a { color: var(--glaciar); }

.comment-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.comment-form input {
  flex: 1;
  min-width: 0;
  background: rgba(6, 18, 22, 0.6);
  border: 1px solid var(--glaciar-dim);
  border-radius: 10px;
  color: var(--nieve);
  font-family: var(--body);
  font-size: 15px;
  padding: 9px 12px;
}
.comment-form input:focus { outline: none; border-color: var(--glaciar); }

.comment-form button {
  background: var(--ambar);
  color: var(--lago-profundo);
  border: 0;
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 14px;
  cursor: pointer;
}

/* ---------- Panel de admin ---------- */

.admin-body { min-height: 100dvh; }

.admin-header {
  padding: calc(env(safe-area-inset-top, 0px) + 28px) var(--gutter) 10px;
  max-width: 760px;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--glaciar);
  font-size: 14px;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

.admin-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: clamp(34px, 8vw, 52px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.admin-sub {
  margin: 10px 0 0;
  color: var(--nieve-dim);
  font-size: 15px;
  max-width: 48ch;
}

.admin-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 10px var(--gutter) 80px;
}

.admin-section { margin-top: 34px; }
.admin-section .section-title { font-size: clamp(18px, 4vw, 24px); margin-bottom: 14px; }

.user-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--glaciar-dim);
  border-radius: var(--radius);
  background: rgba(18, 51, 62, 0.55);
}

.user-card--pending { border-color: rgba(232, 168, 82, 0.55); }
.user-card--blocked { opacity: 0.6; }

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.user-avatar--fallback {
  display: grid;
  place-items: center;
  background: var(--glaciar-dim);
  color: var(--nieve);
  font-size: 17px;
  font-weight: 600;
}

.user-name {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
}

.user-badge {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(232, 168, 82, 0.18);
  border: 1px solid rgba(232, 168, 82, 0.5);
  color: var(--ambar);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.user-email {
  margin: 1px 0 0;
  font-size: 13px;
  color: var(--nieve-dim);
  overflow-wrap: anywhere;
}

.user-meta {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--nieve-dim);
}

.user-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.user-action {
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--glaciar-dim);
  background: none;
  color: var(--nieve);
}
.user-action:disabled { opacity: 0.5; cursor: default; }

.user-action--approve {
  background: var(--ambar);
  border-color: var(--ambar);
  color: var(--lago-profundo);
}

.user-action--block { border-color: rgba(242, 184, 160, 0.5); color: #F2B8A0; }
.user-action--admin { color: var(--glaciar); }
.user-action--upload { color: var(--ambar); border-color: rgba(232, 168, 82, 0.5); }

/* ---------- Videos ---------- */

.play-mark {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(6, 18, 22, 0.75);
  color: var(--nieve);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}

.lb-video { background: #000; }

/* ---------- Pestañas de admin ---------- */

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.admin-tab {
  background: none;
  border: 1px solid var(--glaciar-dim);
  border-radius: 999px;
  color: var(--nieve-dim);
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 18px;
  cursor: pointer;
}

.admin-tab.is-active {
  background: var(--ambar);
  border-color: var(--ambar);
  color: var(--lago-profundo);
}

/* ---------- Estadísticas ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.stat-card {
  border: 1px solid var(--glaciar-dim);
  border-radius: var(--radius);
  background: rgba(18, 51, 62, 0.55);
  padding: 14px 16px;
  text-align: center;
}

.stat-value {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 85%;
  font-size: 30px;
  color: var(--ambar);
  line-height: 1.1;
}

.stat-label {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--nieve-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.top-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 130px;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--glaciar-dim) transparent;
}

.top-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--glaciar-dim);
  background: var(--lago-profundo);
}

.top-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-count {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(6, 18, 22, 0.8);
  color: var(--nieve);
  font-size: 12px;
  font-weight: 600;
}

.top-card .play-mark { left: auto; right: 6px; top: 6px; bottom: auto; padding: 2px 7px; font-size: 10px; }

/* ============================================================
   Portada por días: chips, packs y collage
   ============================================================ */

.day-chips {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  gap: 8px;
  padding: 10px var(--gutter);
  overflow-x: auto;
  background: rgba(12, 36, 44, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glaciar-dim);
  scrollbar-width: none;
}
.day-chips::-webkit-scrollbar { display: none; }

.day-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--glaciar-dim);
  background: none;
  color: var(--nieve);
  font-family: var(--body);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.day-chip:hover { border-color: var(--glaciar); }
.day-chip strong { font-weight: 600; }
.day-chip span { color: var(--nieve-dim); font-size: 11.5px; }

.news-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px var(--gutter) 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(232, 168, 82, 0.5);
  background: rgba(232, 168, 82, 0.12);
  color: var(--ambar);
  font-size: 14px;
  text-align: center;
}
.news-banner button {
  background: none;
  border: 0;
  color: var(--ambar);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 4px;
}

/* ---------- Cabecera de cada día ---------- */

.day-pack { padding-bottom: clamp(18px, 4vw, 34px); }

.pack-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(14px, 3vw, 22px);
}

.pack-head .eyebrow { margin-bottom: 4px; }
.pack-title { font-size: clamp(24px, 5.4vw, 36px); white-space: normal; }

.pack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pack-tag {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--glaciar-dim);
  background: none;
  color: var(--glaciar);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.pack-tag--place { color: var(--nieve-dim); }
.pack-tag--count { border-style: dashed; color: var(--nieve-dim); font-weight: 400; }
.pack-tag--album {
  color: var(--ambar);
  border-color: rgba(232, 168, 82, 0.45);
  background: rgba(232, 168, 82, 0.1);
  text-decoration: none;
  cursor: pointer;
}
.pack-tag--album:hover { background: rgba(232, 168, 82, 0.18); border-color: var(--ambar); }
.pack-tag--album.is-off {
  color: var(--nieve-dim);
  background: none;
  border-color: var(--glaciar-dim);
  opacity: 0.6;
}
.pack-tag--album.is-off:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--glaciar); }

.pack-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.pack-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--glaciar-dim);
  background: none;
  color: var(--nieve-dim);
  font-family: var(--body);
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
.pack-btn:hover { color: var(--nieve); border-color: var(--glaciar); }
.pack-btn:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.pack-pin.is-pinned {
  color: var(--ambar);
  border-color: var(--ambar);
  background: rgba(232, 168, 82, 0.12);
}

.day-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px dashed var(--glaciar-dim);
  border-radius: var(--radius);
}
.day-editor input {
  background: rgba(6, 18, 22, 0.6);
  border: 1px solid var(--glaciar-dim);
  border-radius: 10px;
  color: var(--nieve);
  font-family: var(--body);
  font-size: 15px;
  padding: 9px 12px;
}
.day-editor input:focus { outline: none; border-color: var(--glaciar); }
.day-editor-actions { display: flex; gap: 8px; }
.day-editor-save { background: var(--ambar); border-color: var(--ambar); color: var(--lago-profundo); font-weight: 700; }

/* ---------- Barra de selección múltiple (mover a otro día o álbum) ---------- */

.select-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px dashed var(--ambar);
  border-radius: var(--radius);
  background: rgba(232, 168, 82, 0.08);
}
.select-toolbar.is-busy { opacity: 0.6; pointer-events: none; }
.select-toolbar-count {
  font-size: 13px;
  color: var(--nieve-dim);
  margin-right: auto;
}
.select-toolbar-select,
.select-toolbar-input {
  background: rgba(6, 18, 22, 0.6);
  border: 1px solid var(--glaciar-dim);
  border-radius: 10px;
  color: var(--nieve);
  font-family: var(--body);
  font-size: 14px;
  padding: 8px 10px;
}
.select-toolbar-select:focus,
.select-toolbar-input:focus { outline: none; border-color: var(--glaciar); }
.select-toolbar-input { width: 200px; max-width: 40vw; }

.collage-item.is-selectable { cursor: pointer; }
.collage-item.is-selectable .select-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  background: rgba(5, 16, 20, 0.55);
  color: transparent;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.collage-item.is-selectable.is-selected .select-check {
  background: var(--ambar);
  border-color: var(--ambar);
  color: var(--lago-profundo);
}
.collage-item.is-selectable.is-selected { outline: 2.5px solid var(--ambar); outline-offset: -2.5px; }
.collage-item.is-selectable:hover .select-check { border-color: var(--ambar); }

/* ---------- Modal de álbumes (subtítulos dentro de un día) ---------- */

.album-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 16, 20, 0.72);
  backdrop-filter: blur(3px);
  z-index: 70;
}

.album-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, calc(100vw - 32px));
  max-height: min(86vh, 720px);
  max-height: min(86dvh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--lago-profundo);
  border: 1px solid var(--glaciar-dim);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px var(--sombra);
  padding: 16px;
  z-index: 71;
}

.album-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.album-modal-title {
  flex: 1;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--nieve);
}

.album-modal-body {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.album-empty {
  margin: 0;
  font-size: 14px;
  color: var(--nieve-dim);
}

.album-new-form { display: flex; gap: 8px; flex-shrink: 0; }
.album-new-form input[type="text"] {
  flex: 1;
  min-width: 0;
  background: rgba(6, 18, 22, 0.6);
  border: 1px solid var(--glaciar-dim);
  border-radius: 10px;
  color: var(--nieve);
  font-family: var(--body);
  font-size: 15px;
  padding: 9px 12px;
}
.album-new-form input[type="text"]:focus { outline: none; border-color: var(--glaciar); }

.album-hint { margin: 0; font-size: 12px; color: var(--nieve-dim); flex-shrink: 0; }

.album-groups { display: flex; flex-direction: column; gap: 16px; }

.album-group {
  border: 1px solid var(--glaciar-dim);
  border-radius: var(--radius);
  padding: 12px;
}

.album-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.album-group-title {
  flex: 1;
  color: var(--nieve);
  font-weight: 700;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.album-group-head .pack-btn { min-width: 32px; height: 32px; padding: 0 8px; font-size: 14px; flex-shrink: 0; }

.album-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
}

.album-photo-cell { display: flex; flex-direction: column; gap: 4px; }
.album-photo-cell img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.album-photo-select {
  width: 100%;
  box-sizing: border-box;
  background: rgba(6, 18, 22, 0.6);
  border: 1px solid var(--glaciar-dim);
  border-radius: 6px;
  color: var(--nieve);
  font-family: var(--body);
  font-size: 11px;
  padding: 3px 4px;
}
.album-photo-select:focus { outline: none; border-color: var(--glaciar); }

/* ---------- Tramos por álbum dentro de un día ---------- */

.day-segments {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.day-segment:first-child .segment-divider { margin-top: 0; }

.segment-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 12px;
}
.segment-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glaciar-dim) 20%, var(--glaciar-dim) 80%, transparent);
}
.segment-divider-label {
  flex-shrink: 0;
  padding: 4px 14px;
  border: 1px solid rgba(232, 168, 82, 0.45);
  border-radius: 999px;
  color: var(--ambar);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Collage ---------- */

.collage-wrap { position: relative; }

.collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 88px;
  grid-auto-flow: dense;
  gap: 6px;
  transition: opacity 0.3s ease;
}
@media (min-width: 640px)  { .collage { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 105px; gap: 8px; } }
@media (min-width: 1024px) { .collage { grid-template-columns: repeat(8, 1fr); grid-auto-rows: 115px; gap: 10px; } }

.collage.page-turn { opacity: 0.25; }

.collage-item {
  position: relative;
  grid-column: span 2;
  grid-row: span 2;
  border: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--lago-profundo);
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: 0 8px 22px -12px var(--sombra);
}

/* Leve aire de "fotos pegadas en un álbum" */
.collage-item:nth-child(3n)  { transform: rotate(0.4deg); }
.collage-item:nth-child(5n)  { transform: rotate(-0.45deg); }
.collage-item:nth-child(7n)  { transform: rotate(0.25deg); }

.collage-item.size-big  { grid-column: span 4; grid-row: span 4; }
.collage-item.size-wide { grid-column: span 4; grid-row: span 2; }
.collage-item.size-tall { grid-column: span 2; grid-row: span 4; }
/* Celdas pensadas para fotos verticales: proporción ~3:4 para recortar lo mínimo */
.collage-item.size-port    { grid-column: span 2; grid-row: span 3; }
.collage-item.size-bigtall { grid-column: span 4; grid-row: span 6; }

@media (max-width: 639px) {
  .collage-item.size-big { grid-column: span 4; grid-row: span 3; }
  .collage-item.size-bigtall { grid-column: span 3; grid-row: span 4; }
}

.collage-item img,
.collage-item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.45s ease;
}
.collage-item img.loaded,
.collage-item video.loaded { opacity: 1; }

@media (hover: hover) {
  .collage-item:hover img,
  .collage-item:hover video { transform: scale(1.045); }
}

.collage-item.is-fading  { opacity: 0; transform: scale(0.97); }
.collage-item.is-entering { opacity: 0; }

.collage-item .cell-likes {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(6, 18, 22, 0.75);
  color: #FF6E9C;
  font-size: 11.5px;
  font-weight: 600;
  pointer-events: none;
}

.collage-item .cover-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(232, 168, 82, 0.92);
  color: var(--lago-profundo);
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.collage-item .new-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ambar);
  box-shadow: 0 0 0 2px rgba(6, 18, 22, 0.6);
  pointer-events: none;
}

.collage-item .star-mark {
  position: absolute;
  top: 8px;
  left: 10px;
  color: var(--ambar);
  font-size: 14px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}
.collage-item .cover-badge ~ .star-mark { display: none; }

.collage-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glaciar-dim);
  background: rgba(12, 36, 44, 0.85);
  color: var(--nieve);
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.collage-prev { left: -8px; }
.collage-next { right: -8px; }
@media (max-width: 639px) { .collage-arrow { display: none; } } /* en el celular se desliza */

.collage-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.collage-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--glaciar);
  background: none;
  cursor: pointer;
}
.collage-dot.is-active { background: var(--ambar); border-color: var(--ambar); }

/* ============================================================
   Lightbox: reacciones y comentarios con respuestas
   ============================================================ */

.lb-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lb-place { font-size: 12.5px; color: var(--glaciar); }

.lb-react-wrap { position: relative; }

.lb-react-picker {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--lago-profundo);
  border: 1px solid var(--glaciar-dim);
  box-shadow: 0 16px 40px -14px var(--sombra);
  z-index: 6;
}

.react-option {
  background: none;
  border: 0;
  font-size: 24px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.15s ease;
}
.react-option:hover { transform: scale(1.3) translateY(-3px); }

.lb-like-emoji { display: inline-flex; align-items: center; font-size: 17px; line-height: 1; }

.lb-reactions-summary {
  position: absolute;
  left: 16px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 64px);
  z-index: 2;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(6, 18, 22, 0.7);
  color: var(--nieve-dim);
  font-size: 13px;
  white-space: pre;
}

.comment--reply {
  margin-left: 34px;
  padding-left: 8px;
  border-left: 2px solid var(--glaciar-dim);
}

.comment-actions {
  display: flex;
  gap: 14px;
  margin: 4px 0 0;
}

.comment-action {
  background: none;
  border: 0;
  padding: 0;
  color: var(--nieve-dim);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.comment-action:hover { color: var(--nieve); }
.comment-like.is-liked { color: #FF6E9C; }

.reply-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(127, 181, 174, 0.12);
  color: var(--glaciar);
  font-size: 12.5px;
}
.reply-banner button {
  background: none;
  border: 0;
  color: var(--glaciar);
  cursor: pointer;
  font-size: 12px;
}

/* ============================================================
   Mural
   ============================================================ */

.mural-body { background: var(--lago-profundo); }

.mural-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gutter) 14px;
}

.mural-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: clamp(22px, 5vw, 34px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.mural-header .back-link { margin: 0; }
.projector-btn { position: static; }

.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  grid-auto-rows: 110px;
  grid-auto-flow: dense;
  gap: 3px;
  padding: 0 3px calc(env(safe-area-inset-bottom, 0px) + 3px);
}
@media (min-width: 640px) {
  .wall { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 150px; }
}
@media (min-width: 1200px) {
  .wall { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); grid-auto-rows: 180px; }
}

.wall-tile {
  position: relative;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: var(--lago);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease var(--reveal-delay, 0ms), transform 0.55s ease var(--reveal-delay, 0ms);
}
.wall-tile.is-revealed { opacity: 1; transform: none; }

.wall-tile--big  { grid-column: span 2; grid-row: span 2; }
.wall-tile--wide { grid-column: span 2; }
.wall-tile--tall { grid-row: span 2; }

.wall-tile img,
.wall-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.wall-tile video { opacity: 1; } /* el poster se ve enseguida */
.wall-tile img.loaded { opacity: 1; }

@media (hover: hover) {
  .wall-tile:hover img,
  .wall-tile:hover video { transform: scale(1.06); }
  .wall-tile:hover .wall-overlay { opacity: 1; }
}

.wall-tile--kenburns img.loaded {
  animation: kenburns 14s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.12) translate(2%, -2%); }
}

@media (prefers-reduced-motion: reduce) {
  .wall-tile--kenburns img.loaded { animation: none; }
  .wall-tile { transition: none; opacity: 1; transform: none; }
}

.wall-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 10px 8px;
  background: linear-gradient(to top, rgba(6, 18, 22, 0.85), transparent);
  color: var(--nieve);
  font-size: 11.5px;
  text-align: left;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

/* ---------- Modo proyector ---------- */

.projector {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #000;
}

.projector-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.projector-layer.is-showing { opacity: 1; }

.projector-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.projector-layer img.kb-in  { animation: kb-slow-in 7s ease-in-out forwards; }
.projector-layer img.kb-out { animation: kb-slow-out 7s ease-in-out forwards; }

@keyframes kb-slow-in  { from { transform: scale(1); }    to { transform: scale(1.08); } }
@keyframes kb-slow-out { from { transform: scale(1.08); } to { transform: scale(1); } }

.projector-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 26px);
  z-index: 2;
  text-align: center;
  color: var(--nieve);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(15px, 2.4vw, 22px);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

/* ============================================================
   Admin: rankings nuevos
   ============================================================ */

.liked-comment-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--glaciar-dim);
  border-radius: var(--radius);
  background: rgba(18, 51, 62, 0.55);
}

.liked-comment-card .top-thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.liked-comment-body { flex: 1; min-width: 0; }
.liked-comment-text { margin: 2px 0 0; font-size: 14px; overflow-wrap: break-word; }

.liked-comment-likes {
  flex-shrink: 0;
  align-self: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 110, 156, 0.14);
  border: 1px solid rgba(255, 110, 156, 0.45);
  color: #FF6E9C;
  font-weight: 700;
  font-size: 13px;
}

.rank-num {
  flex-shrink: 0;
  width: 26px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  color: var(--glaciar);
  text-align: center;
}

/* ---------- Reproductor de música ---------- */

.player {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Logo redondo transparente de 3DAi: el botón que despliega el reproductor */
.pl-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}
.pl-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pl-logo:hover { transform: scale(1.08); }
.player.is-open .pl-logo { box-shadow: 0 0 0 2px rgba(232, 168, 82, 0.55); }
.player.is-playing .pl-logo { box-shadow: 0 0 0 3px rgba(232, 168, 82, 0.4); }

.pl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--glaciar-dim);
  border-radius: 999px;
  background: rgba(247, 245, 240, 0.04);
  color: var(--nieve-dim);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.pl-btn:hover { color: var(--nieve); border-color: var(--glaciar); }

.pl-btn--main {
  background: var(--ambar);
  border-color: var(--ambar);
  color: var(--lago-profundo);
}
.pl-btn--main:hover { color: var(--lago-profundo); border-color: var(--ambar); filter: brightness(1.05); }

.player.is-playing .pl-btn--main { box-shadow: 0 0 0 3px rgba(232, 168, 82, 0.28); }

/* Modal centrado del reproductor */
.pl-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 16, 20, 0.72);
  backdrop-filter: blur(3px);
  z-index: 60;
}

.pl-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(400px, calc(100vw - 32px));
  max-height: min(78vh, 560px);
  max-height: min(78dvh, 560px);
  display: flex;
  flex-direction: column;
  background: var(--lago-profundo);
  border: 1px solid var(--glaciar-dim);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px var(--sombra);
  padding: 16px;
  z-index: 61;
}

.pl-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.pl-modal-logo { border-radius: 50%; flex-shrink: 0; }
.pl-modal-title {
  flex: 1;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: var(--nieve);
}
.pl-close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--glaciar-dim);
  border-radius: 999px;
  background: none;
  color: var(--nieve-dim);
  font-size: 15px;
  cursor: pointer;
}
.pl-close:hover { color: var(--nieve); border-color: var(--glaciar); }

.pl-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}
.pl-controls .pl-btn { width: 40px; height: 40px; }
.pl-controls .pl-btn--main { width: 52px; height: 52px; }

.pl-now {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--nieve-dim);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-now.is-active { color: var(--ambar); }

.pl-search {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--glaciar-dim);
  border-radius: 999px;
  background: rgba(247, 245, 240, 0.05);
  color: var(--nieve);
  font-family: var(--body);
  font-size: 14px;
}
.pl-search::placeholder { color: var(--nieve-dim); }
.pl-search:focus { outline: 2px solid var(--ambar); outline-offset: 1px; }

.pl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.pl-item + .pl-item { border-top: 1px solid rgba(127, 181, 174, 0.14); }

.pl-item-btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 9px 8px;
  border: 0;
  background: none;
  color: var(--nieve);
  cursor: pointer;
  border-radius: 8px;
}
.pl-item-btn:hover { background: rgba(247, 245, 240, 0.06); }

.pl-item.is-current .pl-item-btn { color: var(--ambar); }
.pl-item.is-current .pl-item-title::before { content: "▶ "; font-size: 10px; }

.pl-item-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}
.pl-item-meta {
  font-size: 12px;
  color: var(--nieve-dim);
}

.pl-msg {
  margin: 8px 4px 2px;
  font-size: 13px;
  color: var(--nieve-dim);
  text-align: center;
}

.pl-app-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--ambar);
  background: rgba(232, 168, 82, 0.1);
  color: var(--ambar);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s, filter 0.15s;
}
.pl-app-link:hover { background: rgba(232, 168, 82, 0.18); filter: brightness(1.05); }
.pl-app-icon { flex-shrink: 0; }

/* ---------- Vista compacta de la galería ---------- */

.pack-btn.is-active { color: var(--ambar); border-color: rgba(232, 168, 82, 0.55); }

/* Todas las celdas pasan a 1x2 chiquitas: entran el doble por fila */
.vista-compacta .collage { grid-auto-rows: 44px; gap: 5px; }
@media (min-width: 640px) { .vista-compacta .collage { grid-auto-rows: 52px; gap: 6px; } }

.vista-compacta .collage-item,
.vista-compacta .collage-item.size-big,
.vista-compacta .collage-item.size-wide,
.vista-compacta .collage-item.size-tall {
  grid-column: span 1;
  grid-row: span 2;
  transform: none;
}

/* En compacta, el badge de likes y "foto del día" se reemplazan por la barra social */
.vista-compacta .cell-likes,
.vista-compacta .cover-badge { display: none; }
.vista-compacta .star-mark { font-size: 11px; top: 4px; left: 6px; }
.vista-compacta .new-dot { width: 8px; height: 8px; top: 5px; right: 5px; }
.vista-compacta .play-mark { transform: scale(0.85); transform-origin: bottom left; }

.cell-social {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 12px 4px 3px;
  background: linear-gradient(to top, rgba(6, 18, 22, 0.88), transparent);
  font-size: 11px;
  line-height: 1;
}

.cell-soc-btn {
  color: var(--nieve);
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 999px;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.cell-soc-btn:active { background: rgba(247, 245, 240, 0.15); }
.cell-soc-like.is-liked { color: #FF6E9C; }

/* ============================================================
   Video dedicado: modal de una sola vez al entrar
   ============================================================ */

.dv-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 16, 20, 0.82);
  backdrop-filter: blur(4px);
  z-index: 80;
}

.dv-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, calc(100vw - 28px));
  max-height: 88vh;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--lago-profundo);
  border: 1px solid var(--glaciar-dim);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px var(--sombra);
  padding: 16px;
  z-index: 81;
}

.dv-title {
  margin: 0;
  padding-right: 36px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(17px, 4.5vw, 22px);
  color: var(--nieve);
}

.dv-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(247, 245, 240, 0.12);
  color: var(--nieve);
  font-size: 16px;
  cursor: pointer;
}
.dv-close:hover { background: rgba(247, 245, 240, 0.22); }

.dv-video-wrap { position: relative; }

.dv-video {
  display: block;
  width: 100%;
  max-height: min(66vh, 520px);
  max-height: min(66dvh, 520px);
  border-radius: 10px;
  background: #000;
}

.dv-sound {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  background: var(--ambar);
  color: var(--lago-profundo);
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  animation: dv-pulse 1.6s ease-in-out infinite;
}
.dv-sound[hidden] { display: none; }

@keyframes dv-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%      { transform: translateX(-50%) scale(1.06); }
}

/* Panel de admin del video dedicado */
.dv-status { margin-top: 4px; color: var(--nieve-dim); font-size: 15px; }

.dv-preview {
  display: block;
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  background: #000;
}

.dv-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.dv-btn {
  border: 1px solid var(--glaciar-dim);
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(127, 181, 174, 0.12);
  color: var(--nieve);
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.dv-btn:hover { background: rgba(127, 181, 174, 0.22); }
.dv-btn:disabled { opacity: 0.5; cursor: default; }
.dv-btn--danger { border-color: rgba(255, 110, 156, 0.4); color: #FF9CB8; background: rgba(255, 110, 156, 0.08); }
.dv-btn--danger:hover { background: rgba(255, 110, 156, 0.16); }

/* ============================================================
   Dedicatorias: mensajes de las familias
   ============================================================ */

.ded-section { margin-top: 60px; }

.ded-sub {
  margin: 12px 0 16px;
  color: var(--nieve-dim);
  font-size: 15px;
}

.ded-form {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  max-width: 620px;
}

.ded-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--glaciar-dim);
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(247, 245, 240, 0.06);
  color: var(--nieve);
  font-family: var(--body);
  font-size: 15px;
}
.ded-form input::placeholder { color: var(--nieve-dim); }
.ded-form input:focus { outline: 2px solid var(--glaciar-dim); }

.ded-form button {
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  background: var(--ambar);
  color: var(--lago-profundo);
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.ded-form button:hover { filter: brightness(1.08); }

.ded-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.ded-card {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(127, 181, 174, 0.08);
  border: 1px solid var(--glaciar-dim);
  border-radius: var(--radius);
}

.ded-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ded-avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glaciar-dim);
  color: var(--nieve);
  font-weight: 700;
}

.ded-body { min-width: 0; }

.ded-name {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 13px;
  color: var(--glaciar);
}

.ded-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--nieve);
  overflow-wrap: break-word;
}

.ded-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--nieve-dim);
  font-size: 12px;
  cursor: pointer;
}
.ded-delete:hover { background: rgba(247, 245, 240, 0.12); color: var(--nieve); }

.ded-empty {
  color: var(--nieve-dim);
  font-size: 15px;
}

/* Tira de dedicatorias en el mural */
.ded-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px var(--gutter) 18px;
  -webkit-overflow-scrolling: touch;
}

.ded-card--strip {
  flex: 0 0 auto;
  flex-direction: column;
  gap: 6px;
  max-width: 300px;
}
.ded-card--strip .ded-text { font-size: 14px; }
.ded-card--strip .ded-name { margin: 0; }

/* Dedicatoria en el modo proyector */
.proj-ded {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 100%;
  height: 100%;
  padding: 8vw;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(127, 181, 174, 0.14), transparent 65%),
    var(--lago-profundo);
}

.proj-ded-text {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 4.5vw, 56px);
  line-height: 1.25;
  color: var(--nieve);
  max-width: 24ch;
}

.proj-ded-who {
  margin: 0;
  font-size: clamp(16px, 2vw, 26px);
  color: var(--ambar);
}

/* ============================================================
   Descripción de la foto (lápiz arriba a la derecha del lightbox)
   ============================================================ */

.lb-desc-wrap {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 18px);
  left: 16px;
  right: 70px; /* deja lugar para el botón de cerrar */
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  pointer-events: none;
}

.lb-desc {
  margin: 2px 0 0;
  pointer-events: auto;
  font-family: var(--caption);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(18px, 2.6vw, 26px);
  line-height: 1.3;
  letter-spacing: 0.015em;
  text-align: right;
  color: var(--nieve);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 0 3px rgba(0, 0, 0, 0.6);
  max-width: 44ch;
  overflow-wrap: break-word;
}

.lb-desc-edit {
  pointer-events: auto;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  font-size: 14px;
}

.lb-desc-form {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 16px);
  right: 70px;
  z-index: 3;
  display: flex;
  gap: 8px;
  width: min(460px, calc(100vw - 100px));
}

.lb-desc-form[hidden] { display: none; }

.lb-desc-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--glaciar-dim);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(12, 36, 44, 0.92);
  color: var(--nieve);
  font-family: var(--body);
  font-size: 15px;
}
.lb-desc-form input:focus { outline: 2px solid var(--glaciar-dim); }

.lb-desc-form button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  background: var(--ambar);
  color: var(--lago-profundo);
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

/* Descripción escrita dentro de la foto, arriba a la derecha:
   Tahoma en mayúsculas, amarillo profesional y sombra fuerte para que
   se lea sobre cualquier imagen (galería y mosaicos del mural) */
.cell-desc {
  position: absolute;
  top: 7px;
  right: 10px;
  left: auto;
  max-width: calc(100% - 20px);
  z-index: 2;
  font-family: Tahoma, Verdana, Geneva, sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: right;
  color: var(--ambar);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 2px 6px rgba(0, 0, 0, 0.85),
    0 0 12px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* En la vista compacta las celdas son más chicas: una sola línea */
.vista-compacta .cell-desc {
  font-size: 9.5px;
  -webkit-line-clamp: 1;
}

/* ============================================================
   Música en el mural: logo en el encabezado + cartelito de ayuda
   ============================================================ */

.mural-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pl-hint {
  position: absolute;
  top: calc(100% + 12px);
  right: -10px;
  width: max-content;
  max-width: min(300px, 80vw);
  padding: 10px 14px;
  background: var(--ambar);
  color: var(--lago-profundo);
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 55;
}

/* Flechita que apunta al logo */
.pl-hint::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: var(--ambar);
  transform: rotate(45deg);
}

.pl-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ícono al lado del título del día: abre el mural filtrado por ese día */
.pack-mural-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 12px;
  vertical-align: middle;
  border: 1px solid var(--glaciar-dim);
  border-radius: 50%;
  color: var(--glaciar);
  background: rgba(127, 181, 174, 0.08);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(127, 181, 174, 0.25), 0 0 12px rgba(127, 181, 174, 0.22);
  animation: mural-link-glow 2.4s ease-in-out infinite;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pack-mural-link:hover {
  color: var(--ambar);
  border-color: rgba(232, 168, 82, 0.55);
  background: rgba(232, 168, 82, 0.1);
  box-shadow: 0 0 0 3px rgba(232, 168, 82, 0.2), 0 0 18px rgba(232, 168, 82, 0.45);
  transform: scale(1.08);
  animation: none;
}

@keyframes mural-link-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(127, 181, 174, 0.25), 0 0 10px rgba(127, 181, 174, 0.2);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(127, 181, 174, 0.14), 0 0 16px rgba(127, 181, 174, 0.38);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pack-mural-link {
    animation: none;
    box-shadow: 0 0 0 2px rgba(127, 181, 174, 0.2), 0 0 12px rgba(127, 181, 174, 0.28);
  }
}
