:root {
  --bg-main: #050509;
  --bg-card: rgba(15, 15, 20, 0.9);
  --accent: #e50914;
  --accent-soft: rgba(229, 9, 20, 0.3);
  --text-main: #f9f9f9;
  --text-muted: #bbbbbb;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: #000;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.app {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
  position: relative;
    background-image: url('/images/logos/fondo_1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* capa oscura encima del fondo */
.app::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0,0,0,0.4), rgba(0,0,0,0.9));
  pointer-events: none;
  z-index: 0;
}

.header,
.main,
.footer {
  position: relative;
  z-index: 1;
}

/* HEADER */
.header {
  text-align: center;
  padding-top: 4px;
}

.header-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-subtitle {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* MAIN */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.logo-card {
  margin: 0 auto;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  padding: 14px;
  background:
    radial-gradient(circle at 30% 0%, var(--accent-soft) 0, transparent 55%),
    radial-gradient(circle at 70% 100%, #1f1f1f 0, transparent 55%),
    #111;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.02),
    0 18px 45px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-card img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 50%;
  display: block;
}

.play-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.play-button {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: none;
  outline: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow:
    0 10px 25px rgba(229, 9, 20, 0.6),
    0 0 0 3px rgba(229, 9, 20, 0.25);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.play-button:active {
  transform: scale(0.96);
  box-shadow:
    0 4px 12px rgba(229, 9, 20, 0.45),
    0 0 0 2px rgba(229, 9, 20, 0.25);
}

.play-button.playing {
  background: #15b374;
  box-shadow:
    0 10px 25px rgba(21, 179, 116, 0.7),
    0 0 0 3px rgba(21, 179, 116, 0.3);
}

.status-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(229, 9, 20, 0.16);
  border: 1px solid rgba(229, 9, 20, 0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 auto;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(229, 9, 20, 0.7);
  animation: blink 1s infinite alternate;
}

@keyframes blink {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* AVISO PRINCIPAL */
.notice-card {
  margin-top: 4px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.notice-header span:first-child {
  font-weight: 600;
  color: #f5f5f5;
}

.notice-image-wrapper {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 4px;
  aspect-ratio: 16 / 9;   /* tus cards son 1200x675 */
  background: #000;
  cursor: pointer;
}

.notice-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;  /* mostrar completa la card */
  display: block;
}

/* GALERÍA */
.gallery-card {
  margin-top: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: none; /* se muestra solo si hay elementos */
  flex-direction: column;
  gap: 8px;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.gallery-header span:first-child {
  font-weight: 600;
  color: #f5f5f5;
}

/* contenedor del botón de refresco, abajo y centrado */
.gallery-refresh-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

/* botón redondo bonito */
.gallery-refresh-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: radial-gradient(circle at 30% 0%, var(--accent-soft), #111);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.7),
    0 0 0 2px rgba(0, 0, 0, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.gallery-refresh-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.8),
    0 0 0 2px rgba(0, 0, 0, 0.5);
}

.gallery-refresh-btn:active:not(:disabled) {
  transform: scale(0.96);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.8),
    0 0 0 2px rgba(0, 0, 0, 0.5);
}

.gallery-refresh-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.gallery-thumbs-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  flex: 1;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}

.gallery-thumb {
  position: relative;
  flex: 0 0 80px;
  height: 80px;
  border-radius: 18px;
  border: none;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb.is-video {
  background: radial-gradient(circle at top, rgba(229, 9, 20, 0.6), #000);
  flex: 0 0 90px;
  height: 90px;
}

.gallery-thumb-video-icon {
  font-size: 1.6rem;
}

.gallery-thumb-label {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 999px;
}

.gallery-arrow {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* FOOTER / REDES */
.footer {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.social-link {
  flex: 1 1 40%;
  min-width: 120px;
  text-decoration: none;
  font-size: 0.8rem;
  padding: 8px 10px;
  border-radius: 999px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 15, 0.95);
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.social-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  filter: brightness(1.05);
}

/* Colores por red */
.btn-whatsapp {
  background: #128c7e;
  border-color: #25d366;
}

.btn-facebook {
  background: #1877f2;
  border-color: rgba(24, 119, 242, 0.8);
}

.btn-instagram {
  background: radial-gradient(circle at 30% 0%, #fdf497, transparent 55%),
              linear-gradient(45deg, #fd1d1d, #833ab4);
  border-color: rgba(253, 29, 29, 0.8);
}

.btn-tiktok {
  background: linear-gradient(135deg, #25f4ee, #000000 50%, #fe2c55);
  border-color: rgba(0, 0, 0, 0.8);
}

.btn-extra {
  background: #e50914;
  border-color: rgba(229, 9, 20, 0.9);
}

.raw-link {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  text-decoration: none;
}

.raw-link span {
  text-decoration: underline;
}

/* LIGHTBOX FULLSCREEN */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  background: #050509;
  border-radius: 20px;
  padding: 12px 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.lightbox-media-wrapper {
  flex: 1;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

.lightbox-media-wrapper img,
.lightbox-media-wrapper video {
  max-width: 100%;
  max-height: 75vh;
  display: block;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}

.lightbox-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

.lightbox-nav {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.lightbox-nav button {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 15, 20, 0.9);
  color: var(--text-main);
  font-size: 0.8rem;
  padding: 6px 0;
  cursor: pointer;
}

@media (min-width: 900px) {
  .lightbox-content {
    width: 70%;
    max-width: 960px;
    max-height: 80vh;
  }

  .lightbox-media-wrapper img,
  .lightbox-media-wrapper video {
    max-height: 70vh;
  }
}

@media (max-width: 480px) {
  .lightbox-content {
    width: 94%;
  }
}

@media (min-height: 700px) {
  .main {
    gap: 26px;
  }
}

@media (min-width: 480px) {
  .app {
    border-radius: 24px;
    margin: 16px auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  }
}
