
/* =========================================
   TELEHOT — ESTILOS PRINCIPALES
   Paleta: negro ciruela, vino, cereza y rosa
   ========================================= */

* {
  box-sizing: border-box;
}

:root {
  --bg: #10060d;
  --bg-soft: #190914;
  --surface: #24101d;
  --surface-hover: #321225;
  --wine: #701538;
  --red: #e91e63;
  --red-dark: #bd124d;
  --pink: #ff5796;
  --pink-light: #ffb4d0;
  --text: #fff0f6;
  --muted: #d3b6c5;
  --border: rgba(255, 87, 150, 0.28);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

button {
  font: inherit;
}

/* =========================================
   CABECERA
   ========================================= */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(110deg, #190711, #480e2a);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.header-icon {
  width: 28px;
  height: 28px;
  margin-right: 22px;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  border: 0;
  background: transparent;
}

.header-icon span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.logo {
  color: var(--pink-light);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.search {
  position: relative;
  width: 26px;
  height: 26px;
  margin-left: auto;
  border: 0;
  background: transparent;
}

.search::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  content: "";
  border: 2px solid #fff;
  border-radius: 50%;
}

.search::after {
  position: absolute;
  top: 18px;
  left: 16px;
  width: 9px;
  height: 2px;
  content: "";
  background: #fff;
  border-radius: 2px;
  transform: rotate(45deg);
}

/* =========================================
   CONTENIDO Y TARJETAS
   ========================================= */

.content {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 68px 12px 18px;
}

.channel-list {
  margin-bottom: 16px;
}

.list-title {
  margin: 0 0 9px 6px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.channel-card {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 9px;
  padding: 12px;
  background: linear-gradient(145deg, #2b1423, #1a0b15);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.channel-card:hover {
  background: linear-gradient(145deg, #351428, #210d19);
  border-color: rgba(255, 87, 150, 0.65);
}

.channel-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  overflow: hidden;
  margin-right: 12px;
  background: #3a2030;
  border-radius: 50%;
}

.channel-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px);
}

.channel-info {
  flex: 1;
  min-width: 0;
  padding-right: 18px;
}

.channel-name {
  overflow: hidden;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.channel-description {
  overflow: hidden;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.channel-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #c6a7b7;
  font-size: 11px;
}

.members::before {
  margin-right: 4px;
  content: "👥";
}

.messages::before {
  margin-right: 4px;
  content: "💬";
}

.channel-lock {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 14px;
  height: 14px;
}

.channel-lock::before {
  content: "🔒";
  font-size: 12px;
}

.section-divider {
  margin: 14px 0;
  padding: 9px 12px;
  color: var(--pink-light);
  background: linear-gradient(100deg, #471229, #2b1020);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.footer {
  padding: 18px 4px;
  color: #b99cac;
  font-size: 11px;
  text-align: center;
}

/* Botón flotante: se conserva por si se necesita en el futuro.
   El script actual lo oculta. */

.fab {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 20;
  width: 52px;
  height: 52px;
  color: #fff;
  background: linear-gradient(145deg, var(--pink), var(--red-dark));
  border: 0;
  border-radius: 50%;
  box-shadow: 0 5px 16px rgba(233, 30, 99, 0.35);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

/* =========================================
   MODAL DE OFERTAS
   ========================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 8px;
  background: rgba(13, 0, 8, 0.22);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.modal.is-hidden {
  display: none !important;
}

.locker {
  position: relative;
  width: min(300px, 92vw);
  max-width: 300px;
  max-height: 62dvh;
  overflow-y: auto;
  margin: auto;
  padding: 11px;
  color: var(--text);
  background: linear-gradient(145deg, #2b0b1c, #10060d 72%, #390d23);
  border: 1px solid rgba(255, 87, 150, 0.65);
  border-radius: 13px;
  box-shadow:
    0 12px 38px rgba(0, 0, 0, 0.42),
    0 0 22px rgba(255, 25, 100, 0.14);
}

.verification-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 8px 15px;
  color: #fff;
  background: linear-gradient(100deg, #a81248, #f02d70);
  border-radius: 0 0 10px 10px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transform: translateX(-50%);
}

.ribbon-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  background: #fff;
  border-radius: 50%;
}

.locker-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 39px 3px 12px;
}

.locker-intro h1 {
  margin: 0 0 6px;
  color: var(--pink-light);
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.locker-intro h1 span {
  color: var(--pink);
}

.locker-intro p {
  max-width: 490px;
  margin: 0;
  color: #e6c5d3;
  font-size: 11px;
  line-height: 1.4;
}

.lock-emoji {
  flex: 0 0 auto;
  padding: 4px;
  font-size: 34px;
}

/* Contenedor de las ofertas */

.offers-panel {
  padding: 8px;
  background: linear-gradient(145deg, #3b1228, #210a19);
  border: 1px solid rgba(255, 87, 150, 0.2);
  border-radius: 12px;
}

.offers-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.offer-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 0;
  padding: 8px;
  background: linear-gradient(120deg, #3a1026, #210a19);
  border: 1px solid rgba(255, 91, 151, 0.3);
  border-radius: 9px;
  box-shadow: inset 0 0 12px rgba(255, 25, 100, 0.04);
}

.offer-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--pink);
  background: #4b1832;
  border: 1px solid rgba(255, 87, 150, 0.22);
  border-radius: 9px;
  font-size: 19px;
}

.offer-copy {
  min-width: 0;
}

.offer-title {
  margin: 0 0 3px;
  color: #fff0f6;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.offer-description {
  margin: 0;
  color: #e6c5d3;
  font-size: 10px;
  line-height: 1.35;
}

.offer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.offer-stars {
  color: #ffb4d0;
  font-size: 12px;
  letter-spacing: -1px;
}

/* Botones de oferta */

.offer-button {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  min-height: 30px;
  margin-top: 1px;
  padding: 7px 9px;
  color: #fff;
  background: linear-gradient(100deg, #ff236d, #e90050);
  border: 1px solid #ff6c9e;
  border-radius: 7px;
  box-shadow: 0 3px 12px rgba(255, 0, 80, 0.2);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.offer-button:hover {
  filter: brightness(1.1);
}

.offer-button:active {
  transform: scale(0.98);
}

.offer-button.offer-visited {
  background: linear-gradient(100deg, #8c2451, #601535);
  border-color: #c44d7b;
  box-shadow: none;
}

/* =========================================
   BARRA DE PROGRESO
   ========================================= */

.progress-area {
  margin: 9px -8px 0;
  padding: 13px 10px 10px;
  color: #fff;
  background: linear-gradient(120deg, #4a102c, #260b1b);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0 0 10px 10px;
}

.progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.3px;
}

#progress-count {
  color: var(--pink-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.progress-track {
  height: 7px;
  margin-top: 10px;
  overflow: hidden;
  background: #4d293c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #b80d4c, #f02d70, #ff9ec4);
  border-radius: inherit;
  box-shadow: 0 0 10px rgba(255, 35, 110, 0.3);
  transition: width 0.35s ease;
}

.progress-note {
  margin: 8px 0 0;
  color: #f0c5d7;
  font-size: 10px;
  line-height: 1.4;
}

/* Pie del panel */

.locker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 3px 4px;
  color: #c6a1b4;
  font-size: 10px;
}

.text-button {
  padding: 7px;
  color: var(--pink-light);
  background: transparent;
  border: 0;
  font-weight: 800;
  cursor: pointer;
}

/* Mensajes emergentes */

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 1200;
  width: max-content;
  max-width: calc(100% - 28px);
  padding: 12px 16px;
  color: #fff;
  background: #3a1026;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.modal-open {
  overflow: hidden;
}

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

@media (max-width: 420px) {
  .content {
    padding-right: 9px;
    padding-left: 9px;
  }

  .locker {
    width: min(280px, 90vw);
    max-height: 58dvh;
    padding: 9px;
  }

  .locker-intro {
    gap: 5px;
    padding-top: 39px;
    padding-bottom: 10px;
  }

  .locker-intro p {
    font-size: 10px;
  }

  .lock-emoji {
    font-size: 30px;
  }

  .offer-card {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
  }

  .offer-button {
    grid-column: 1 / -1;
  }
}

@media (max-height: 650px) {
  .modal {
    align-items: flex-start;
  }

  .locker {
    max-height: calc(100dvh - 16px);
  }

  .locker-intro {
    padding-top: 35px;
    padding-bottom: 8px;
  }

  .offer-card {
    padding: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
