/* ────────────────────────────────────────────────────────────────
   Home de La Cartelera — tema morado/lima (2026-09-11)
   Fondo casi negro con dos resplandores, tarjetas translúcidas,
   morado para rellenos y lima de segundo acento. Móvil = una
   columna de 28rem; web ≥1024px = destacada a la izquierda y
   lista a la derecha. Tokens espejo de static/css/style.css.
   ──────────────────────────────────────────────────────────────── */
:root {
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --bg:        #0B090F;
  --surface:   #141118;
  --surface2:  #1C1822;
  --line:      rgba(255,255,255,0.10);
  --text:      #FFFFFF;
  --text2:     #9CA3AF;
  --text3:     #6B7280;
  --accent:            #A855F7;  /* texto e íconos sobre fondo oscuro */
  --accent-fill:       #7E22CE;  /* rellenos con texto blanco */
  --lime:      #A3E635;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

.lc-body {
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg);
  background-image:
    radial-gradient(at 0% 0%, rgba(126,34,206,0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(163,230,53,0.10) 0px, transparent 50%);
  background-attachment: fixed;
}
.lc-body ::selection { background: var(--lime); color: var(--bg); }

/* :where() deja la especificidad en cero: los links con color propio ganan */
:where(.lc) a { color: inherit; text-decoration: none; }
.lc img { display: block; max-width: 100%; }
.lc h1, .lc h2, .lc h3, .lc p { margin: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ── Barra superior (sólo web) ─────────────────────────────────── */
.lc-topbar { display: none; }
.lc-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 700; font-size: 19px;
  letter-spacing: -0.02em; white-space: nowrap;
}
.lc-brand .brand-mark { width: 24px; height: 24px; color: var(--accent); }
.lc-brand .brand-mark .mark-star { fill: var(--lime); }
.brand-dot { color: var(--lime); }
.lc-nav { display: flex; gap: 24px; flex: 1; justify-content: center; }
.lc-nav a { font-size: 14px; font-weight: 500; color: var(--text2); transition: color .15s var(--ease); }
.lc-nav a:hover, .lc-nav a.active { color: var(--text); }
.lc-topbar-right { display: flex; align-items: center; gap: 10px; }
.alpha-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; line-height: 1.2;
  color: var(--lime);
  background: rgba(163,230,53,0.08);
  border: 1px solid rgba(163,230,53,0.35);
  padding: 3px 8px; border-radius: 999px;
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); transition: all .15s var(--ease);
}
.icon-btn:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.login-btn {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 10px;
  background: #fff; color: var(--bg);
  font-size: 13px; font-weight: 700; white-space: nowrap;
  transition: background-color .15s var(--ease);
}
.login-btn:hover { background: #E5E7EB; }

@media (min-width: 768px) {
  .lc-topbar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 24px;
    padding: 14px 32px;
    background: rgba(11,9,15,0.72);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid var(--line);
  }
}

/* ── Página ────────────────────────────────────────────────────── */
.lc-page {
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 16px calc(104px + env(safe-area-inset-bottom));
}
@media (min-width: 640px) { .lc-page { padding-left: 24px; padding-right: 24px; } }

/* Encabezado tipo perfil: aro degradado con el logo de siempre */
.lc-profile {
  width: 100%; max-width: 28rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  margin-bottom: 32px;
}
.lc-ring {
  width: 96px; height: 96px; padding: 4px; border-radius: 999px;
  background: linear-gradient(to top right, var(--accent-fill), var(--lime));
  margin-bottom: 16px;
  box-shadow: 0 10px 15px -3px rgba(126,34,206,0.2), 0 4px 6px -4px rgba(126,34,206,0.2);
}
.lc-ring-inner {
  width: 100%; height: 100%; border-radius: 999px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.lc-ring-mark { width: 52px; height: 52px; color: #fff; }
.lc-ring-mark .mark-star { fill: var(--lime); }
.lc-title {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1.875rem; line-height: 2.25rem; letter-spacing: -0.025em;
  margin-bottom: 4px;
}
.lc-tagline { color: var(--text2); font-weight: 500; }

/* ── Tarjetas ──────────────────────────────────────────────────── */
.lc-main { width: 100%; max-width: 28rem; display: flex; flex-direction: column; gap: 16px; }
.lc-card {
  display: block;
  background: rgba(20,17,24,0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: all .15s var(--ease);
}
a.lc-card:hover { border-color: rgba(126,34,206,0.5); }
a.lc-card:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* Destacada */
.lc-featured {
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}
.lc-featured-media { position: relative; height: 192px; overflow: hidden; background: var(--surface2); }
.lc-featured-media img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.8;
  transition: transform .7s var(--ease);
}
.lc-featured:hover .lc-featured-media img { transform: scale(1.05); }
.lc-featured-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 96px;
  color: rgba(163,230,53,0.55);
  background: linear-gradient(135deg, #3B0764 0%, #1C1822 60%, #141118 100%);
}
.lc-featured-fade { position: absolute; inset: 0; background: linear-gradient(to top, var(--surface), transparent); }
.lc-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent-fill); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px;
}
.lc-featured-body { position: relative; padding: 20px; }
.lc-featured-head { margin-bottom: 8px; }
.lc-featured-title {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1.5rem; line-height: 1.25; margin-bottom: 4px;
  text-wrap: balance;
}
.lc-featured-sub { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--lime); }
.lc-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; line-height: 16px; color: var(--text2);
  margin-bottom: 16px; min-width: 0;
}
.lc-meta-item { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lc-meta-item svg { flex-shrink: 0; }
.lc-btn-white {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 0; border-radius: 12px;
  background: #fff; color: var(--bg);
  font-weight: 700; font-size: 16px; line-height: 24px;
  transition: background-color .15s var(--ease);
}
.lc-btn-white:hover { background: #E5E7EB; }
.lc-btn-white.is-muted { background: rgba(255,255,255,0.08); color: var(--text2); }

.lc-empty { padding: 28px 20px; text-align: center; }
.lc-empty-title { font-family: var(--font-heading); font-weight: 700; font-size: 20px; margin-bottom: 6px; }
.lc-empty-sub { color: var(--text2); font-size: 14px; }

/* Filas compactas */
.lc-col { display: flex; flex-direction: column; }
.lc-list { display: flex; flex-direction: column; gap: 16px; }
.lc-row { display: flex; align-items: center; gap: 16px; padding: 16px; }
.lc-thumb {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 12px; object-fit: cover;
  background: var(--surface2);
}
.lc-row-body { flex: 1; min-width: 0; }
.lc-row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.lc-when {
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent); white-space: nowrap;
}
.lc-price {
  flex-shrink: 0;
  font-size: 14px; line-height: 20px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,0.10);
  padding: 2px 8px; border-radius: 4px;
}
.lc-price.is-free { color: var(--lime); }
.lc-row-title { display: block; font-weight: 700; font-size: 16px; line-height: 24px; margin-bottom: 2px; }
.lc-row-sub { display: block; font-size: 12px; line-height: 16px; color: var(--text2); margin-bottom: 4px; }
.lc-row-venue {
  display: flex; align-items: center; gap: 4px; min-width: 0;
  font-size: 12px; line-height: 16px; color: var(--text2);
}
.lc-row-venue svg { flex-shrink: 0; }
.lc-row-venue.is-dim { color: var(--text3); }

/* Caja de fecha para shows sin imagen */
.lc-datebox {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
}
.lc-datebox-m { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--lime); }
.lc-datebox-d { font-family: var(--font-heading); font-weight: 700; font-size: 20px; line-height: 1; }

.lc-cta {
  margin-top: 32px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px 24px; border-radius: 16px;
  background: var(--accent-fill); color: #fff;
  font-weight: 700; text-align: center;
  box-shadow: 0 10px 15px -3px rgba(126,34,206,0.2), 0 4px 6px -4px rgba(126,34,206,0.2);
  transition: background-color .15s var(--ease);
}
.lc-cta:hover { background: rgba(126,34,206,0.8); }

/* ── Secciones de apoyo ────────────────────────────────────────── */
.lc-section { width: 100%; max-width: 28rem; margin-top: 48px; }
.lc-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 16px; padding: 0 4px;
}
.lc-section-title { font-family: var(--font-heading); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.lc-section-link { font-size: 13px; font-weight: 600; color: var(--lime); white-space: nowrap; }
.lc-section-link:hover { color: #BEF264; }
.lc-comics { display: flex; flex-direction: column; gap: 12px; }
.lc-comics .lc-row { padding: 12px 16px; }
.lc-avatar {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 999px; object-fit: cover;
  border: 1px solid rgba(126,34,206,0.3);
  background: var(--surface2);
}
.lc-avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: var(--lime);
}
.lc-comics .lc-row-sub { margin-bottom: 0; }
.lc-chev { flex-shrink: 0; color: var(--text3); transition: color .15s var(--ease); }
a.lc-row:hover .lc-chev { color: var(--text); }

.lc-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.lc-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(20,17,24,0.8);
  border: 1px solid var(--line);
  font-size: 13px; font-weight: 600;
  transition: border-color .15s var(--ease);
}
.lc-pill:hover { border-color: rgba(163,230,53,0.5); }
.lc-pill-count { font-size: 12px; font-weight: 700; color: var(--lime); }

/* ── Pie ───────────────────────────────────────────────────────── */
.lc-footer { margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.lc-footer-brand { display: inline-flex; align-items: center; gap: 8px; }
.lc-footer-mark { width: 16px; height: 16px; color: var(--lime); transition: transform .15s var(--ease); }
.lc-footer-brand:hover .lc-footer-mark { transform: scale(1.1); }
.lc-footer-brand span {
  font-family: var(--font-heading); font-weight: 700; font-size: 14px;
  letter-spacing: -0.025em; color: rgba(255,255,255,0.5);
}
.lc-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 12px; color: var(--text3); }
.lc-footer-links a:hover { color: var(--text); }

/* ── Barra de abajo (móvil) ────────────────────────────────────── */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: rgba(11,9,15,0.85);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.bn-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-height: 44px; padding: 6px 4px;
  font-size: 10px; font-weight: 500; color: var(--text3);
}
.bn-item svg { width: 22px; height: 22px; stroke-width: 2; }
.bn-item.active { color: var(--text); }
.bn-item.active svg { color: var(--lime); }
.bn-cuenta { color: var(--accent); }

/* Cross-promo */
.lc-promo {
  align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 16px;
  padding: 20px 16px calc(96px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(20,17,24,0.8);
}
.lc-promo-label { font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--text); }
.lc-promo a { font-weight: 600; font-size: 14px; color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.lc-promo button { background: none; border: 0; color: var(--text3); font-size: 20px; line-height: 1; padding: 4px; cursor: pointer; }

/* ── Web ───────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .bottom-nav { display: none; }
  .lc-page { padding-bottom: 64px; }
  .lc-promo { padding-bottom: 20px; }
}

@media (min-width: 1024px) {
  .lc-page { padding-top: 56px; }
  .lc-profile { margin-bottom: 40px; }
  .lc-main {
    max-width: 1040px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
  .lc-featured { position: sticky; top: 88px; }
  .lc-featured-media { height: 320px; }
  .lc-featured-body { padding: 24px; }
  .lc-featured-title { font-size: 1.875rem; }
  .lc-section { max-width: 1040px; }
  .lc-comics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
