/* ============================================================================
   Centro Cultural Cotesma — diseño cine, tema claro
   ============================================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-elev: #ffffff;
  --bg-dark: #0e1320;            /* hero, footer */
  --fg: #0f172a;
  --fg-soft: #6b7280;
  --fg-mute: #9ca3af;
  --fg-invert: #ffffff;
  --accent: #e0162b;             /* rojo CCC */
  --accent-hover: #b80f22;
  --accent-soft: #fff0f1;
  --accent-2: #f5a623;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --line: #e6e8ec;
  --line-soft: #f1f3f7;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow: 0 6px 18px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 50px rgba(15,23,42,.15);
  --radius: 14px;
  --radius-lg: 20px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }
h1,h2,h3,h4 { color: var(--fg); margin-top: 0; }
::selection { background: var(--accent); color: #fff; }

/* ===== HEADER (claro, logo protagonista) ===== */
.ccc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  background: #ffffff;
  border-bottom: 3px solid var(--accent);
  position: sticky; top: 0; z-index: 50;
  color: var(--fg);
  box-shadow: 0 2px 12px rgba(15,23,42,.05);
  gap: 16px;
}
.ccc-brand { display: flex; align-items: center; color: var(--fg); flex-shrink: 0; }
.ccc-brand:hover { color: var(--fg); }
.ccc-logo {
  height: 56px; width: auto;
  display: block;
  /* Fondo oscuro porque el texto del logo está en blanco */
  background: var(--bg-dark);
  padding: 6px 12px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15,23,42,.15);
}
@media (max-width: 600px) {
  .ccc-logo { height: 44px; padding: 5px 10px; border-radius: 8px; }
}
/* Sección actual en la barra de arriba (Cartelera / Quiosco / Scanner / Admin) */
.ccc-section-title {
  margin: 0;
  flex: 1;
  font-size: 22px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
@media (max-width: 600px) {
  .ccc-section-title { font-size: 16px; text-align: left; padding-left: 8px; }
}
/* Botón hamburguesa unificado PC/mobile */
.ccc-menu-toggle {
  background: transparent;
  border: 1px solid var(--line);
  width: 44px; height: 44px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  transition: background .15s, border-color .15s;
}
.ccc-menu-toggle:hover { background: var(--accent-soft); border-color: var(--accent); }
.ccc-menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.ccc-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ccc-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ccc-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 600px) {
  .ccc-header { padding: 10px 14px; }
  .ccc-logo { height: 44px; }
  .ccc-menu-toggle { width: 40px; height: 40px; }
}

/* Drawer lateral con menú */
.ccc-drawer { position: fixed; inset: 0; z-index: 200; }
.ccc-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(15,23,42,.5);
  opacity: 0; transition: opacity .2s;
  z-index: 1;
}
.ccc-drawer.open .ccc-drawer-backdrop { opacity: 1; }
.ccc-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 320px; max-width: 86vw;
  background: #fff;
  box-shadow: -10px 0 40px rgba(15,23,42,.20);
  transform: translateX(100%);
  transition: transform .22s ease-out;
  display: flex; flex-direction: column;
  z-index: 2;
}
.ccc-drawer.open .ccc-drawer-panel { transform: translateX(0); }
.ccc-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.ccc-drawer-logo {
  height: 44px; width: auto;
  background: var(--bg-dark);
  padding: 5px 12px;
  border-radius: 8px;
}
.ccc-drawer-close {
  border: 0; background: var(--bg-soft);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 22px; line-height: 1;
  color: var(--fg-soft);
  cursor: pointer;
}
.ccc-drawer-close:hover { background: var(--accent); color: #fff; }
.ccc-drawer-nav {
  display: flex; flex-direction: column;
  padding: 14px 10px;
  gap: 4px;
  overflow-y: auto;
}
.ccc-drawer-nav a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--fg);
  font-size: 16px;
  font-weight: 600;
  transition: background .15s, color .15s;
}
.ccc-drawer-nav a:hover { background: var(--accent-soft); color: var(--accent); }
.ccc-drawer-nav a span { flex: 1; }
.ccc-drawer-nav a.active {
  background: var(--accent);
  color: #fff;
}
.ccc-drawer-nav a.active:hover { background: var(--accent-hover); color: #fff; }

/* Admin wrap: ya no usa grid (la nav vive en el hamburguesa) */
.ccc-admin-wrap { width: 100%; }
.ccc-admin-body { width: 100%; }

/* Pie del drawer con el botón de instalar PWA */
.ccc-drawer-foot {
  margin-top: auto;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.drawer-install-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 16px;
  background: var(--accent); color: #fff;
  border: 0; border-radius: 10px;
  font-family: inherit; font-weight: 700; font-size: 15px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(224,22,43,.3);
  transition: background .15s, transform .1s;
}
.drawer-install-btn:hover { background: var(--accent-hover); }
.drawer-install-btn:active { transform: scale(.98); }
.drawer-install-btn span { flex: 0 0 auto; }
.drawer-install-status {
  margin-top: 10px;
  font-size: 12px; color: var(--fg-soft);
  text-align: center;
  line-height: 1.4;
}

.ccc-main { max-width: 1280px; margin: 0 auto; padding: 20px 16px 36px; min-height: 70vh; }

/* ===== Buscador interactivo (home) ===== */
.search-bar {
  margin: 0 0 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.search-input-wrap {
  position: relative;
  display: flex; align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px 4px 44px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.search-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(224,22,43,.10);
}
.search-icon {
  position: absolute; left: 14px;
  width: 20px; height: 20px;
  color: var(--fg-soft);
  pointer-events: none;
}
.search-input {
  flex: 1;
  border: 0; outline: 0; background: transparent;
  padding: 14px 0;
  font-size: 16px;       /* >=16px evita zoom en iOS */
  color: var(--fg);
  min-width: 0;
}
.search-input::placeholder { color: var(--fg-mute); }
.search-clear {
  border: 0; background: var(--bg-soft);
  width: 28px; height: 28px;
  border-radius: 50%;
  color: var(--fg-soft);
  cursor: pointer;
  font-size: 18px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.search-clear:hover { background: var(--accent); color: #fff; }
.search-meta {
  color: var(--fg-soft);
  font-size: 13px;
  padding: 0 14px;
}
.search-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--fg-soft);
}
.search-empty p { font-size: 16px; margin: 14px 0 18px; }

/* ===== HERO de la home ===== */
.ccc-hero {
  margin: 0 -16px 36px;
  padding: 56px 24px;
  background:
    linear-gradient(180deg, rgba(14,19,32,.85) 0%, rgba(14,19,32,.95) 100%),
    radial-gradient(circle at 20% 30%, rgba(224,22,43,.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(245,166,35,.3) 0%, transparent 50%),
    #0e1320;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ccc-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.ccc-hero-logo {
  height: 120px; width: auto;
  background: #fff;
  padding: 16px 28px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(224,22,43,.35);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.ccc-hero h1 {
  margin: 0 0 10px;
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  position: relative; z-index: 1;
}
.ccc-hero p {
  color: rgba(255,255,255,.8);
  margin: 0;
  font-size: 16px;
  position: relative; z-index: 1;
}
.ccc-hero .ccc-btn { margin-top: 22px; position: relative; z-index: 1; }

@media (max-width: 600px) {
  .ccc-hero { padding: 36px 18px; }
  .ccc-hero-logo { height: 90px; padding: 12px 20px; }
  .ccc-hero h1 { font-size: 26px; }
  .ccc-hero p { font-size: 14px; }
}

/* ===== Section títulos ===== */
.section-title {
  display: flex; align-items: center; gap: 14px;
  margin: 36px 0 18px;
}
.section-title h2 {
  font-size: 22px; font-weight: 800; margin: 0;
  display: flex; align-items: center; gap: 10px;
}
.section-title h2::before {
  content: ''; display: inline-block;
  width: 5px; height: 24px; border-radius: 3px;
  background: var(--accent);
}
.section-title .count { color: var(--fg-soft); font-size: 14px; }

/* ===== Grid de películas estilo cine ===== */
.ccc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
@media (max-width: 480px) { .ccc-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.ccc-card {
  background: var(--bg-elev);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.ccc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ccc-card-link {
  color: var(--fg); display: block; position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.ccc-card-poster {
  aspect-ratio: 2/3; width: 100%;
  background: #0e1320;
  position: relative;
  overflow: hidden;
}
.ccc-card-poster::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.55) 100%);
  opacity: 0; transition: opacity .2s;
  z-index: 3; pointer-events: none;
}
.ccc-card-link:hover .ccc-card-poster::after { opacity: 1; }
.ccc-rating-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: #fff;
  padding: 4px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
  z-index: 2;
}

/* Imagen del poster como <img> dentro del contenedor */
.ccc-card-poster img,
.movie-hero-poster img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
  z-index: 1;
}
.ccc-card-link:hover .ccc-card-poster img { transform: scale(1.05); }
.movie-hero-poster { position: relative; overflow: hidden; }
.ccc-card-poster { position: relative; overflow: hidden; }

/* Fallback gráfico cuando no hay poster o la imagen falla */
.poster-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at 30% 20%, rgba(224,22,43,.35) 0%, transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(245,166,35,.30) 0%, transparent 55%),
    linear-gradient(135deg, #1f2937, #0e1320);
  color: #fff;
  text-align: center;
  z-index: 0;
}
.ccc-card-poster.no-img .poster-fallback,
.movie-hero-poster.no-img .poster-fallback {
  z-index: 1; /* asegurarse de quedar arriba si no había img */
}
.poster-fallback::before {
  content: '🎬';
  font-size: 36px;
  margin-bottom: 12px;
  opacity: .6;
}
.poster-fallback-title {
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.poster-fallback-genre {
  font-size: 11px;
  opacity: .8;
  margin-top: 8px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
/* En el hero el fallback es más grande */
.movie-hero-poster .poster-fallback::before { font-size: 56px; }
.movie-hero-poster .poster-fallback-title { font-size: 24px; }
.ccc-card-body { padding: 14px 8px 6px; }
.ccc-card-title {
  font-weight: 700; font-size: 15px; line-height: 1.25; color: var(--fg);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ccc-card-meta { color: var(--fg-soft); font-size: 12px; margin-top: 4px; }
.ccc-card-funcs {
  margin: 8px 8px 14px; display: flex; flex-wrap: wrap; gap: 5px;
}
.ccc-chip {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  color: var(--fg);
  font-weight: 600;
  transition: all .15s;
}
.ccc-chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== Detalle de película estilo Cinemark ===== */
.movie-hero {
  margin: 0 -16px 30px;
  padding: 0;
  position: relative;
  background: var(--bg-dark);
  color: #fff;
  overflow: hidden;
  min-height: 480px;
}
.movie-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(40px) brightness(.45);
  transform: scale(1.15);
  z-index: 0;
}
.movie-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(14,19,32,.85), rgba(14,19,32,.6));
  z-index: 1;
}
.movie-hero-content {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  padding: 50px 24px;
  display: grid; grid-template-columns: 320px 1fr;
  gap: 40px; align-items: center;
}
@media (max-width: 760px) {
  .movie-hero { min-height: auto; }
  .movie-hero-content { grid-template-columns: 200px 1fr; gap: 22px; padding: 28px 18px; }
}
@media (max-width: 480px) {
  .movie-hero-content { grid-template-columns: 1fr; text-align: center; padding: 24px 16px; }
  .movie-hero-poster { margin: 0 auto; max-width: 220px; }
}
.movie-hero-poster {
  width: 100%; aspect-ratio: 2/3;
  background: var(--bg-soft) center/cover no-repeat;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0,0,0,.6);
}
.movie-hero-info h1 {
  margin: 0 0 6px;
  font-size: 42px; font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  line-height: 1.1;
}
@media (max-width: 600px) { .movie-hero-info h1 { font-size: 28px; } }
.movie-hero-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 14px 0 18px;
}
.movie-hero-tag {
  background: rgba(255,255,255,.12);
  color: #fff;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .3px;
  border: 1px solid rgba(255,255,255,.18);
}
.movie-hero-tag.accent { background: var(--accent); border-color: var(--accent); }
.movie-hero-sinopsis {
  color: rgba(255,255,255,.92);
  line-height: 1.7;
  margin: 18px 0 24px;
  max-width: 680px;
  font-size: 15px;
}
.movie-hero-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
  gap: 6px 26px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
  margin-top: 12px;
}
.movie-hero-meta strong { color: #fff; font-weight: 600; margin-right: 6px; }

/* Trailer */
.ccc-trailer {
  position: relative; aspect-ratio: 16/9;
  background: #000; border-radius: var(--radius);
  overflow: hidden;
  margin: 30px 0;
  box-shadow: var(--shadow-lg);
}
.ccc-trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Funciones / horarios estilo Cinemark */
.fn-grid { display: grid; gap: 14px; }
.fn-day {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}
.fn-day-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.fn-day-name {
  font-weight: 700; font-size: 17px; color: var(--fg);
  text-transform: capitalize;
}
.fn-day-meta { color: var(--fg-soft); font-size: 13px; }
.fn-times { display: flex; flex-wrap: wrap; gap: 10px; }
.fn-time {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 10px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg);
  font-weight: 700; font-size: 17px;
  min-width: 90px;
  transition: all .15s;
  cursor: pointer;
}
.fn-time:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(224,22,43,.3);
}
.fn-time .room { font-size: 11px; font-weight: 500; opacity: .8; margin-top: 3px; text-transform: uppercase; letter-spacing: .5px; }

/* ===== Layout de butacas ===== */
.ccc-screen {
  margin: 16px auto 4px;
  height: 8px; max-width: 70%;
  background: linear-gradient(180deg, #cbd5e1, #94a3b8);
  border-radius: 0 0 50% 50% / 0 0 14px 14px;
  box-shadow: 0 6px 22px rgba(224,22,43,.15);
}
.ccc-screen-label { text-align: center; color: var(--fg-soft); font-size: 11px; letter-spacing: 3px; margin-bottom: 16px; font-weight: 700; }
.ccc-room { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.ccc-row { display: flex; gap: 6px; align-items: center; }
.ccc-row-label { width: 22px; color: var(--fg-soft); font-size: 11px; text-align: center; font-weight: 700; }
.ccc-seat {
  width: 32px; height: 32px; border-radius: 8px 8px 4px 4px;
  background: #ffffff; border: 1px solid #cbd5e1;
  cursor: pointer; transition: transform .1s, background .1s, border-color .1s;
  font-size: 10px; color: var(--fg-soft); display: flex; align-items: center; justify-content: center;
  user-select: none; font-weight: 600;
}
.ccc-seat:hover { transform: scale(1.12); background: #f1f5f9; border-color: var(--accent); }
.ccc-seat.selected { background: var(--ok); border-color: #15803d; color: #fff; }
.ccc-seat.sold    { background: #fecaca; border-color: #fca5a5; cursor: not-allowed; opacity: .9; color: #991b1b; }
.ccc-seat.held    { background: #fde68a; border-color: #fcd34d; cursor: not-allowed; opacity: .9; color: #92400e; }
.ccc-seat.bloqueado { background: transparent; border: 1px dashed var(--line); cursor: default; color: transparent; }
.ccc-seat.accesible { background: #374151; border-color: #1f2937; color: #fff; }
.ccc-seat.accesible::after { content: '♿'; font-size: 14px; }
.ccc-seat.pasillo { visibility: hidden; }

.ccc-legend { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 14px; color: var(--fg-soft); font-size: 12px; }
.ccc-legend > div { display: flex; align-items: center; gap: 8px; }
.ccc-legend .ccc-seat { cursor: default; width: 18px; height: 18px; }
.ccc-legend .ccc-seat:hover { transform: none; }

/* ===== Sections / forms ===== */
.ccc-section { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.ccc-section h2 { margin: 0 0 14px; font-size: 19px; color: var(--fg); font-weight: 700; }
.ccc-field { margin-bottom: 14px; }
.ccc-field label { display: block; margin-bottom: 5px; color: var(--fg-soft); font-size: 13px; font-weight: 500; }
.ccc-field input, .ccc-field select, .ccc-field textarea {
  width: 100%; padding: 10px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  color: var(--fg); font: inherit;
  transition: border-color .1s, box-shadow .1s;
}
.ccc-field input:focus, .ccc-field select:focus, .ccc-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,22,43,.12);
}
.ccc-row-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .ccc-row-fields { grid-template-columns: 1fr; } }

.ccc-btn {
  display: inline-block; padding: 12px 26px;
  background: var(--accent); color: #fff;
  border: 0; border-radius: 8px; cursor: pointer;
  font-weight: 700; font-size: 15px;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  letter-spacing: .2px;
}
.ccc-btn:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 8px 20px rgba(224,22,43,.3); transform: translateY(-1px); }
.ccc-btn:active { transform: scale(.98); }
.ccc-btn.secondary { background: var(--bg-elev); color: var(--fg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ccc-btn.secondary:hover { background: var(--bg-soft); color: var(--fg); border-color: var(--fg-soft); box-shadow: var(--shadow-sm); }
.ccc-btn.white { background: #fff; color: var(--bg-dark); }
.ccc-btn.white:hover { background: var(--bg-soft); color: var(--bg-dark); }
.ccc-btn[disabled] { opacity: .5; cursor: not-allowed; }
.ccc-btn-lg { padding: 14px 32px; font-size: 16px; }

/* ===== Tablas ===== */
.ccc-table { width: 100%; border-collapse: collapse; }
.ccc-table th, .ccc-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--fg); }
.ccc-table th { color: var(--fg-soft); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; background: var(--bg-soft); }
.ccc-table tr:hover td { background: var(--accent-soft); }

/* ===== Admin sidebar ===== */
.ccc-admin-wrap aside { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); }
.ccc-admin-wrap aside a { color: var(--fg) !important; }
.ccc-admin-wrap aside a:hover { background: var(--bg-soft); color: var(--accent) !important; }

/* ===== Ticket ===== */
.ccc-ticket {
  max-width: 480px; margin: 24px auto;
  background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.ccc-ticket-header { padding: 22px; background: var(--bg-dark); color: #fff; text-align: center; border-bottom: 3px solid var(--accent); }
.ccc-ticket-body { padding: 24px; }
.ccc-ticket-qr { text-align: center; padding: 20px; background: var(--bg-soft); margin: 18px -24px; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.ccc-ticket-qr img { width: 240px; height: 240px; background: #fff; padding: 12px; border-radius: 8px; }
.ccc-ticket-info { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; }
.ccc-ticket-info dt { color: var(--fg-soft); }
.ccc-ticket-info dd { margin: 0; font-weight: 600; color: var(--fg); }

/* ===== Misc ===== */
.ccc-footer {
  padding: 36px 16px 28px;
  background: var(--bg-dark);
  color: rgba(255,255,255,.6);
  font-size: 13px;
  text-align: center;
  margin-top: 56px;
}
.ccc-footer a { color: rgba(255,255,255,.85); }
.ccc-badge-test { display: inline-block; margin-top: 12px; padding: 5px 12px; background: rgba(245,166,35,.2); border: 1px solid var(--accent-2); color: var(--accent-2); border-radius: 999px; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; font-weight: 600; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; border: 1px solid; }
.alert-success { background: #dcfce7; border-color: #86efac; color: #14532d; }
.alert-error   { background: #fee2e2; border-color: #fca5a5; color: #7f1d1d; }
.alert-info    { background: #fef3c7; border-color: #fcd34d; color: #78350f; }

.ccc-summary { background: var(--bg-soft); border-radius: 10px; padding: 16px; margin: 14px 0; border: 1px solid var(--line); }
.ccc-summary > div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: var(--fg); }
.ccc-summary > div.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 18px; color: var(--accent); }

.ccc-banner-test {
  background: #fff7ed;
  border: 1px solid var(--accent-2);
  color: #78350f;
  padding: 11px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  text-align: center;
}

/* ============================================================================
   Detalle película — bloque "Trailer + horarios" (mobile-first)
   ============================================================================ */
.movie-buy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 30px;
}
@media (min-width: 900px) {
  .movie-buy-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(360px, 1fr);
    gap: 26px;
    align-items: start;
  }
}

.movie-buy-trailer .ccc-trailer { margin: 0; }
.movie-no-trailer {
  aspect-ratio: 16/9;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}

.movie-buy-side {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 900px) {
  .movie-buy-side {
    position: sticky;
    top: 90px;     /* debajo del header sticky */
    max-height: calc(100vh - 110px);
  }
}

.movie-buy-header {
  padding: 16px 18px;
  background: var(--bg-dark);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}
.movie-buy-title { font-weight: 700; font-size: 16px; }
.movie-buy-sub   { font-size: 12px; opacity: .8; margin-top: 4px; }

/* Pills de días: scrollable horizontal en móvil */
.day-picker {
  display: flex; gap: 8px;
  padding: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.day-picker::-webkit-scrollbar { height: 6px; }
.day-picker::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.day-pill {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center;
  min-width: 64px;
  padding: 10px 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  scroll-snap-align: start;
  transition: all .15s;
  color: var(--fg);
  font-family: inherit;
}
.day-pill:hover { border-color: var(--accent); transform: translateY(-1px); }
.day-pill.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 6px 18px rgba(224,22,43,.3);
}
.day-pill-name {
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  color: var(--fg-soft);
}
.day-pill.active .day-pill-name { color: rgba(255,255,255,.85); }
.day-pill-num { font-size: 22px; font-weight: 800; line-height: 1; margin: 4px 0 2px; }
.day-pill-mon { font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--fg-soft); }
.day-pill.active .day-pill-mon { color: rgba(255,255,255,.85); }

/* Paneles de horarios (uno visible a la vez) */
.day-pane-wrap { padding: 14px 16px 16px; overflow-y: auto; flex: 1; }
.day-pane { display: none; }
.day-pane.active { display: block; }
.day-pane-title {
  font-size: 13px; color: var(--fg-soft);
  margin-bottom: 14px;
  text-transform: capitalize;
}

.time-group + .time-group { margin-top: 18px; }
.time-group-label {
  font-size: 11px; font-weight: 700;
  color: var(--fg-soft);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 8px;
  padding-left: 4px;
}
.time-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.time-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  transition: all .15s;
  min-height: 64px;
}
.time-btn:hover {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(224,22,43,.3);
}
.time-btn-hour { font-size: 18px; font-weight: 800; line-height: 1; }
.time-btn-price { font-size: 11px; font-weight: 600; opacity: .75; margin-top: 4px; }
.time-btn:hover .time-btn-price { opacity: .95; }

@media (max-width: 600px) {
  .time-buttons { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
  .time-btn { padding: 12px 8px; min-height: 58px; }
  .time-btn-hour { font-size: 17px; }
  .day-pill { min-width: 56px; padding: 8px 4px; }
  .day-pill-num { font-size: 20px; }
}

/* ============================================================================
   PWA — banner fino bottom (estilo Twitter/Spotify) + tooltip iOS
   ============================================================================ */
.pwa-banner {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 90;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15,23,42,.18);
  transform: translateY(140%);
  opacity: 0;
  transition: transform .28s cubic-bezier(.32,.72,0,1), opacity .2s;
}
.pwa-banner.open { transform: translateY(0); opacity: 1; }
.pwa-banner-cta {
  flex: 1;
  padding: 11px 18px;
  background: var(--accent); color: #fff;
  border: 0; border-radius: 999px;
  font-family: inherit; font-weight: 800; font-size: 14px;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .15s, transform .1s;
  text-align: center;
}
.pwa-banner-cta:active { transform: scale(.97); }
.pwa-banner-cta:hover { background: var(--accent-hover); }
.pwa-banner-close {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--bg-soft); color: var(--fg-soft);
  border: 0; border-radius: 50%;
  cursor: pointer; font-size: 20px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.pwa-banner-close:hover { background: var(--line); color: var(--fg); }

/* Desktop: centrado, max-width */
@media (min-width: 720px) {
  .pwa-banner {
    left: 50%; right: auto;
    bottom: 24px;
    transform: translate(-50%, 140%);
    max-width: 480px;
    width: calc(100% - 32px);
  }
  .pwa-banner.open { transform: translate(-50%, 0); }
}
@media (display-mode: standalone) { .pwa-banner { display: none !important; } }

/* Tooltip iOS — flecha apunta al botón Compartir de Safari (bottom toolbar) */
.pwa-ios-hint {
  position: fixed;
  left: 50%;
  bottom: calc(70px + env(safe-area-inset-bottom));
  transform: translate(-50%, 30px);
  opacity: 0;
  z-index: 100;
  transition: transform .25s cubic-bezier(.32,.72,0,1), opacity .2s;
  pointer-events: none;
}
.pwa-ios-hint.open { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.pwa-ios-hint-card {
  position: relative;
  background: #0e1320; color: #fff;
  padding: 14px 38px 14px 18px;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  font-size: 13px;
  font-weight: 500;
  max-width: 280px;
}
.pwa-ios-hint-text strong { font-weight: 700; color: #fff; }
.pwa-ios-hint-arrow {
  position: absolute;
  bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 16px;
  background: #0e1320;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}
.pwa-ios-hint-close {
  position: absolute;
  top: 6px; right: 6px;
  background: transparent; border: 0;
  color: rgba(255,255,255,.7);
  width: 26px; height: 26px;
  font-size: 18px; line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}
.pwa-ios-hint-close:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Toast genérico (feedback rápido para acciones de instalar) */
.ccc-toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translate(-50%, 80px);
  opacity: 0;
  z-index: 220;
  background: #0e1320; color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  max-width: 90vw;
  text-align: center;
  pointer-events: none;
  transition: transform .25s cubic-bezier(.32,.72,0,1), opacity .2s;
}
.ccc-toast.open { transform: translate(-50%, 0); opacity: 1; }

/* Modal de ayuda para instalar PWA cuando no hay beforeinstallprompt */
.pwa-help-modal {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; transition: opacity .2s;
}
.pwa-help-modal.open { opacity: 1; }
.pwa-help-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.55); }
.pwa-help-card {
  position: relative; z-index: 1;
  background: #fff; border-radius: 14px;
  max-width: 420px; width: 100%;
  padding: 24px 22px 22px;
  box-shadow: var(--shadow-lg);
  transform: translateY(10px); opacity: 0;
  transition: transform .22s, opacity .22s;
}
.pwa-help-modal.open .pwa-help-card { transform: translateY(0); opacity: 1; }
.pwa-help-close {
  position: absolute; top: 8px; right: 10px;
  width: 32px; height: 32px;
  border: 0; border-radius: 50%;
  background: var(--bg-soft); color: var(--fg-soft);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.pwa-help-close:hover { background: var(--accent); color: #fff; }
.pwa-help-card h3 { margin: 0 0 14px; font-size: 18px; color: var(--fg); }
.pwa-help-steps {
  margin: 0 0 16px; padding-left: 22px;
  line-height: 1.7; font-size: 15px; color: var(--fg);
}
.pwa-help-steps li { margin-bottom: 4px; }
.pwa-help-steps strong { background: var(--accent-soft); padding: 1px 6px; border-radius: 4px; color: var(--accent); font-weight: 700; }
.pwa-help-note { font-size: 13px; color: var(--fg-soft); background: var(--bg-soft); padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; }
.pwa-help-ok { width: 100%; margin-top: 4px; }

/* ============================================================================
   Carrusel "Más películas en cartelera" (detalle de película)
   ============================================================================ */
.other-movies-section { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.other-movies-wrap { position: relative; }
.other-movies {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  padding: 4px 4px 16px;
  margin: 0 -4px;
}
.other-movies::-webkit-scrollbar { height: 6px; }
.other-movies::-webkit-scrollbar-track { background: transparent; }
.other-movies::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.other-movies::-webkit-scrollbar-thumb:hover { background: var(--fg-mute); }

.other-card {
  flex: 0 0 168px;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--bg-elev);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--fg);
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow-sm);
}
.other-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: var(--fg);
}
@media (min-width: 900px) {
  .other-card { flex: 0 0 190px; }
}

.other-card-poster {
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, #1f2937, #374151) center/cover no-repeat;
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  color: rgba(255,255,255,.5); font-size: 12px;
}
.other-card-poster::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.75) 100%);
}
.other-card-next {
  position: relative; z-index: 1;
  margin-bottom: 10px;
  background: rgba(255,255,255,.95);
  color: var(--accent);
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.other-card-body { padding: 12px 12px 14px; }
.other-card-title {
  font-weight: 700; font-size: 14px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 35px;
}
.other-card-meta { color: var(--fg-soft); font-size: 11px; margin-top: 4px; }

/* Flechas de navegación (solo desktop) */
.other-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--fg);
  font-size: 26px; line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: none;
  align-items: center; justify-content: center;
  transition: background .15s, color .15s, opacity .15s;
}
.other-nav:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.other-nav.disabled { opacity: 0; pointer-events: none; }
.other-nav.prev { left: -10px; }
.other-nav.next { right: -10px; }
@media (min-width: 760px) { .other-nav { display: inline-flex; } }

/* ============================================================================
   Admin section head: título + botón + (mobile friendly)
   ============================================================================ */
.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-section-head h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 19px; font-weight: 700;
}
.count-pill {
  background: var(--bg-soft);
  color: var(--fg-soft);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  min-width: 28px;
  text-align: center;
}
.admin-fab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px 10px 14px;
}
.admin-fab .fab-plus {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: rgba(255,255,255,.25);
  border-radius: 50%;
  font-size: 18px; font-weight: 700; line-height: 1;
}
@media (max-width: 600px) {
  .admin-fab { padding: 10px 14px 10px 12px; }
  .admin-fab .fab-label { display: none; }
  .admin-fab .fab-plus { width: 22px; height: 22px; font-size: 20px; }
}

/* ============================================================================
   MODAL reusable (admin)
   ============================================================================ */
.ccc-modal {
  position: fixed; inset: 0;
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.ccc-modal[hidden] { display: none !important; }
.ccc-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .2s ease;
}
.ccc-modal.open .ccc-modal-backdrop { opacity: 1; }

.ccc-modal-panel {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(15,23,42,.4);
  transform: translateY(20px) scale(.98);
  opacity: 0;
  transition: opacity .2s ease, transform .22s ease;
  overflow: hidden;
}
.ccc-modal.open .ccc-modal-panel { transform: translateY(0) scale(1); opacity: 1; }

.ccc-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.ccc-modal-head h3 {
  font-size: 18px; font-weight: 700;
}
.ccc-modal-close {
  border: 0; background: var(--bg-soft);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 22px; line-height: 1;
  color: var(--fg-soft);
  cursor: pointer;
}
.ccc-modal-close:hover { background: var(--accent); color: #fff; }

.ccc-modal-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
}
.ccc-modal-body .ccc-field { margin-bottom: 14px; }

.ccc-modal-foot {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .ccc-modal { padding: 0; }
  .ccc-modal-panel {
    max-height: 100vh;
    border-radius: 16px 16px 0 0;
    margin-top: auto;
    transform: translateY(40px);
  }
  .ccc-modal-head { padding: 14px 18px; }
  .ccc-modal-body { padding: 16px 18px; }
  .ccc-modal-foot { padding: 12px 18px; }
  .ccc-modal-foot .ccc-btn { flex: 1; }
}

/* ============================================================================
   Dashboard admin — Mobile first
   ============================================================================ */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);  /* 2 cols en mobile */
  gap: 10px;
  margin-bottom: 20px;
}
@media (min-width: 600px)  { .dash-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 900px)  { .dash-stats { grid-template-columns: repeat(6, 1fr); gap: 14px; } }

.stat-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  color: var(--fg);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .12s, box-shadow .12s, border-color .12s;
  min-height: 70px;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
  color: var(--fg);
}
.stat-icon {
  font-size: 28px; line-height: 1;
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border-radius: 10px;
}
.stat-text {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  justify-content: center;
}
.stat-label {
  font-size: 10px; color: var(--fg-soft);
  text-transform: uppercase; letter-spacing: .5px;
  font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1.1;
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 600px) {
  .stat-icon { width: 48px; height: 48px; font-size: 32px; }
  .stat-value { font-size: 22px; }
}

/* Mini-cards de próximas funciones (reemplaza la tabla en mobile) */
.dash-funcs {
  display: flex; flex-direction: column;
  gap: 8px; margin-top: 14px;
}
.dash-func {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px; align-items: center;
  padding: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg);
  text-decoration: none;
  transition: border-color .12s, box-shadow .12s;
}
.dash-func:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  color: var(--fg);
}
.dash-func-date {
  text-align: center;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 8px 6px;
  border-radius: 8px;
  flex-shrink: 0;
}
.dash-func-day {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
}
.dash-func-time {
  font-size: 18px;
  font-weight: 800;
  margin-top: 2px;
  line-height: 1;
}
.dash-func-info { min-width: 0; }
.dash-func-title {
  font-weight: 700; font-size: 15px;
  line-height: 1.25; color: var(--fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash-func-meta {
  font-size: 12px; color: var(--fg-soft);
  margin-top: 2px;
}
.dash-func-bar-wrap {
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--fg-soft);
}
.dash-func-vendidas { font-weight: 600; min-width: 38px; }
.dash-func-pct { font-weight: 700; color: var(--ok); min-width: 30px; text-align: right; }
.dash-bar {
  flex: 1;
  height: 5px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.dash-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--ok));
  border-radius: 3px;
}

