/* ============================================
   IV CENTRAL — styles.css
   Plataforma de Estudios & Productores
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --gold: #D4A017;
  --gold2: #f6d365;
  --gold-glow: rgba(212, 160, 23, 0.2);
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #181818;
  --bg4: #202020;
  --border: #2a2a2a;
  --border2: #333;
  --text: #e8e8e8;
  --text2: #b0b0b0;
  --muted: #666;
  --green: #22c55e;
  --sidebar-w: 230px;
  --radius: 14px;
  --radius-sm: 8px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  height: 100%;
  overflow-y: hidden;
}

/* ---------- SHELL ---------- */
.shell {
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  gap: 24px;
  position: sticky;
  top: 0;
  height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  align-self: flex-start;
  z-index: 100;
}

.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border2); }

/* LOGO */
.logo { display: flex; flex-direction: column; gap: 2px; }

.logo-iv-wrap { display: flex; flex-direction: column; gap: 0; }

.logo-row { display: flex; align-items: flex-end; gap: 4px; }

.logo-bar {
  width: 4px;
  height: 36px;
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  border-radius: 3px;
  margin-bottom: 4px;
  box-shadow: 0 0 12px var(--gold-glow);
}

.logo-iv {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: #fff;
  line-height: 1;
  letter-spacing: .02em;
}

.logo-sub {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: .38em;
  color: var(--gold);
  margin-top: 2px;
}

.tagline {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 8px;
}

/* NAV */
.nav { display: flex; flex-direction: column; gap: 3px; }

.nav-btn {
  background: transparent;
  border: none;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-align: left;
  padding: 10px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .15s ease;
  width: 100%;
}

.nav-btn i { font-size: 16px; }

.nav-btn:hover {
  background: var(--bg3);
  color: var(--text2);
}

.nav-btn.active {
  background: var(--bg3);
  border-left-color: var(--gold);
  color: var(--gold);
}

/* STATUS BOX */
.status-box {
  margin-top: auto;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-label {
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--muted);
}

.status-row { display: flex; align-items: center; gap: 8px; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

.status-name { font-size: 12px; font-weight: 600; color: var(--text); }

.status-stats {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 6px;
}

/* HAMBURGER */
/* ── MENU TAB (mobile drawer trigger) ───────────────────────── */
.hamburger {
  display: none;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-right: none;
  border-radius: 10px 0 0 10px;
  width: 38px;
  padding: 26px 0;
  cursor: pointer;
  box-shadow: -3px 0 16px rgba(0,0,0,.5);
  transition: background .2s, width .2s, border-color .2s;
  user-select: none;
  overflow: hidden;
  animation: hb-pulse 2.4s ease-in-out infinite;
}

@keyframes hb-pulse {
  0%, 100% { box-shadow: -3px 0 16px rgba(0,0,0,.5), 0 0 0 0 rgba(212,160,23,0); }
  50%       { box-shadow: -3px 0 16px rgba(0,0,0,.5), 0 0 10px 4px rgba(212,160,23,0.35); }
}
.hamburger:hover,
.hamburger:active {
  background: var(--gold);
  border-color: var(--gold);
  width: 42px;
}

/* Tres líneas apiladas verticalmente dentro de la pastilla */
.hamburger .hb-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hamburger .hb-icon span {
  display: block;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: background .2s, transform .25s, opacity .2s, width .25s;
}
.hamburger .hb-icon span:nth-child(1) { width: 18px; }
.hamburger .hb-icon span:nth-child(2) { width: 13px; }
.hamburger .hb-icon span:nth-child(3) { width: 18px; }

.hamburger:hover .hb-icon span,
.hamburger:active .hb-icon span { background: #000; }

/* Cuando sidebar abierto: ocultar tab (el close btn dentro del sidebar lo reemplaza) */
.hamburger.is-open {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(100%);
  transition: opacity .2s, transform .25s;
}

/* ---------- MAIN ---------- */
.main {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
}

/* ---------- PAGES ---------- */
.page { display: none; }
.page.active { display: block; animation: fadeIn .25s ease; }

/* ── PM FULLSCREEN: iframe llena todo el espacio bajo los tabs ── */
.main.pm-mode:has(#page-estudios.active) { overflow: hidden; position: relative; height: 100dvh; min-height: unset; }
.shell:has(.main.pm-mode:has(#page-estudios.active)) { height: 100dvh; overflow: hidden; }
.main.pm-mode #page-estudios.active {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  inset: 0;
  padding: 0 !important;
  margin: 0 !important;
  animation: none;
  overflow: hidden;
}
.main.pm-mode #page-estudios .sec-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  height: 100%;
}
.main.pm-mode #page-estudios .sec-h { display: none !important; }
.main.pm-mode #page-estudios .sec-inner > p { display: none !important; }
.main.pm-mode #page-estudios #studio-tabs {
  flex-shrink: 0;
  padding: 10px 16px;
}
.main.pm-mode #page-estudios #studio-tabs .studio-nav-tabs { margin-bottom: 0; }
.main.pm-mode #page-estudios #studio-detail {
  flex: 1;
  position: relative;
  min-height: 0;
  overflow: hidden;
}
.main.pm-mode #page-estudios #studio-detail iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: 48px 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #080808 30%, #1a1000 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(212,160,23,.035) 39px, rgba(212,160,23,.035) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(212,160,23,.035) 39px, rgba(212,160,23,.035) 40px);
}

.hero-content { position: relative; z-index: 2; max-width: 600px; }

.badge {
  display: inline-flex;
  padding: 5px 16px;
  border-radius: 20px;
  border: 1px solid rgba(212,160,23,.35);
  background: rgba(212,160,23,.08);
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
  margin-bottom: 20px;
}

.hero-h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 7vw, 72px);
  line-height: .92;
  color: #fff;
}

.gold-text { color: var(--gold); }

.hero-p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
  max-width: 380px;
  line-height: 1.65;
}

.hero-btns { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- BUTTONS ---------- */
.btn-gold {
  background: var(--gold);
  color: #000;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .12em;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-gold:hover { opacity: .88; }
.btn-gold:active { transform: scale(.98); }

.btn-outline {
  background: transparent;
  color: var(--text2);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .1em;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.btn-outline:hover { background: rgba(255,255,255,.06); color: var(--text); }

/* ---------- STATS ROW ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  background: var(--bg2);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  color: var(--gold);
  line-height: 1;
}

.stat-lbl {
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- SECTIONS ---------- */
.sec-inner { padding: 28px 32px; }

.sec-h {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: .03em;
}

/* ---------- ACTION CARDS ---------- */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.action-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.action-card:hover {
  border-color: var(--gold);
  background: rgba(212,160,23,.04);
  transform: translateY(-2px);
}

.action-icon { font-size: 22px; color: var(--gold); }

.action-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text);
}

.action-desc { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* ---------- RECENT LIST ---------- */
.recent-grid { display: flex; flex-direction: column; gap: 8px; }

.recent-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .15s;
}

.recent-card:hover { border-color: var(--border2); }

.recent-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.recent-name { font-size: 13px; font-weight: 700; color: var(--text); }

.recent-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }

.recent-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gold);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}

.recent-btn:hover { background: rgba(212,160,23,.1); }

/* ---------- FILTER BAR ---------- */
.filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all .15s;
}

.filter-btn:hover { border-color: var(--border2); color: var(--text2); }

.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}

/* ---------- PRODUCERS GRID ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.prod-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}

.prod-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.prod-img-placeholder {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  background: var(--bg3);
}

.prod-body { padding: 16px; }

.prod-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: #fff;
  letter-spacing: .03em;
}

.prod-city { font-size: 11px; color: var(--muted); margin-top: 3px; }
.prod-genre { font-size: 11px; color: var(--gold); margin-top: 3px; font-weight: 600; }

.prod-btn {
  width: 100%;
  margin-top: 12px;
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text2);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}

.prod-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,160,23,.06);
}

/* ---------- STUDIO TABS ---------- */
.studio-nav-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.stab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  border-radius: 6px;
  padding: 7px 14px;
  cursor: pointer;
  transition: all .15s;
}

.stab:hover { border-color: var(--border2); color: var(--text2); }

.stab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}

/* STUDIO DETAIL CARD */
.studio-detail-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.studio-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.studio-name-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  color: #fff;
  letter-spacing: .04em;
  line-height: 1;
}

.studio-city-tag { font-size: 12px; color: var(--muted); margin-top: 4px; }

.studio-avail-badge {
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.3);
  color: #22c55e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  border-radius: 6px;
  padding: 5px 12px;
  white-space: nowrap;
}

.studio-body-grid {
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.studio-col-label {
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 12px;
}

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

.service-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text2);
}

.service-item i { font-size: 13px; color: var(--gold); }

.equip-list { display: flex; flex-direction: column; gap: 6px; }

.equip-item {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.equip-item::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border2);
  flex-shrink: 0;
}

/* ── HERRAMIENTAS / ARSENAL TÉCNICO (studio detail) ─────────── */
.ivc-tools-section {
  border-top: 1px solid var(--border);
  padding: 0 24px 40px;
}
.ivc-tools-header {
  padding: 32px 0 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.ivc-tools-eyebrow {
  font-size: 9px;
  letter-spacing: .25em;
  color: var(--accent, #d4a017);
  margin-bottom: 6px;
  font-weight: 600;
}
.ivc-tools-title {
  font-family: 'Bebas Neue', 'Arial Black', sans-serif;
  font-size: 36px;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 4px;
}
.ivc-tools-desc {
  font-size: 12px;
  color: var(--muted);
}
.ivc-tools-count {
  font-family: 'Bebas Neue', 'Arial Black', sans-serif;
  font-size: 48px;
  color: rgba(212, 160, 23, 0.12);
  line-height: 1;
  letter-spacing: 2px;
}
.ivc-tools-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.tool-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg2, #0e0e0e);
  transition: background .18s;
}
.tool-row:last-child { border-bottom: none; }
.tool-row:hover { background: var(--bg3, #151515); }
.tool-row-icon {
  width: 52px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent, #d4a017);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.tool-row-body { padding: 14px 18px; flex: 1; }
.tool-row-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
  margin-bottom: 3px;
}
.tool-row-desc { font-size: 11px; color: var(--text2, #999); line-height: 1.5; }
.tool-row-badge { padding: 0 18px; flex-shrink: 0; }
.tool-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent, #d4a017);
  background: transparent;
  border: 1px solid var(--accent, #d4a017);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .ivc-tools-section { padding: 0 16px 32px; }
  .ivc-tools-title { font-size: 28px; }
  .ivc-tools-count { font-size: 36px; }
  .tool-row { grid-template-columns: 44px 1fr; }
  .tool-row-badge { display: none; }
}

.social-list { display: flex; flex-direction: column; gap: 8px; }

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}

.social-link:hover { background: var(--bg3); color: var(--text); }
.social-link i { font-size: 16px; color: var(--gold); }

.studio-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.price-box {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  flex: 1;
  min-width: 120px;
}

.price-label { font-size: 9px; letter-spacing: .12em; color: var(--muted); font-weight: 700; }

.price-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: var(--gold);
  margin-top: 2px;
  line-height: 1;
}

/* ---------- BOOKING ---------- */
.booking-card {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  align-items: start;
}

.booking-form {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--muted);
  font-weight: 700;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.form-input,
.form-select,
.form-textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  outline: none;
  transition: border-color .15s;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--gold); }

.form-select option { background: var(--bg3); }
.form-select optgroup {
  background: var(--bg3);
  color: var(--gold);
  font-weight: 700;
  font-style: normal;
}
.form-select optgroup option {
  color: var(--text);
  font-weight: 400;
}

.form-textarea { resize: vertical; min-height: 80px; }

/* ---------- PROVIDER CHIP BARS (productores / diseñadores) ---------- */
.provider-chip-group { display: flex; flex-direction: column; gap: 8px; }
.provider-chip-group + .provider-chip-group { margin-top: 4px; }

.provider-chip-bar-label {
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.provider-chip-bar-label i { font-size: 12px; }

/* Productor/diseñador que no ofrece el servicio actualmente elegido —
   ya no se oculta, solo se ve más apagado (sigue siendo clickeable). */
.provider-chip.muted { opacity: .5; }
.provider-chip.muted:hover { opacity: .8; }

.provider-chip-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.provider-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s, opacity .15s;
  font-family: 'Space Grotesk', sans-serif;
  text-align: left;
  min-width: 140px;
  max-width: 220px;
}

.provider-chip:hover { border-color: var(--border2); background: var(--bg4); }

.provider-chip.active {
  border-color: var(--gold);
  background: rgba(212, 160, 23, 0.08);
  box-shadow: 0 0 0 1px var(--gold) inset;
}

.provider-chip-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.provider-chip.active .provider-chip-name { color: var(--gold); }

.provider-chip-city { font-size: 11px; font-weight: 400; color: var(--muted); }

.provider-chip-services {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.provider-chip-svc {
  font-size: 9px;
  letter-spacing: .02em;
  color: var(--text2);
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 7px;
}

.provider-chip-svc.more { color: var(--gold); border-color: var(--gold); background: transparent; }

.provider-chip-svc.current {
  color: #000;
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 700;
}

.provider-chip-bar-empty {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  padding: 6px 2px;
}

.provider-chip-select-hidden { display: none !important; }

.booking-summary {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 20px;
}

.summary-title {
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text2);
}

.summary-divider { height: 1px; background: var(--border); margin: 4px 0; }

.summary-total-label {
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--muted);
  font-weight: 700;
}

.summary-total {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--gold);
  line-height: 1;
}

.summary-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.booking-confirm-btn {
  width: 100%;
  padding: 12px;
  justify-content: center;
  margin-top: 4px;
}

/* ---------- SERVICES ---------- */
.services-list { display: flex; flex-direction: column; gap: 10px; }

.service-row {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: border-color .15s;
}

.service-row:hover { border-color: var(--border2); }

.service-icon-box {
  width: 48px;
  height: 48px;
  background: rgba(212,160,23,.1);
  border: 1px solid rgba(212,160,23,.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--gold);
  flex-shrink: 0;
}

.service-info { flex: 1; }

.service-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text);
  margin-bottom: 5px;
}

.service-desc { font-size: 12px; color: var(--muted); line-height: 1.55; }

.service-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

.tag {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  border-radius: 4px;
  padding: 3px 8px;
}

.service-price {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.price-from { font-size: 10px; color: var(--muted); }

.price-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--gold);
  line-height: 1.1;
}

.price-unit { font-size: 10px; color: var(--muted); }

/* ---------- VIDEO PACKAGES ---------- */
.video-packages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.pkg-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color .15s;
}

.pkg-card:hover { border-color: var(--border2); }

.pkg-featured { border-color: var(--gold) !important; }

.pkg-tag {
  display: inline-block;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 10px;
  width: fit-content;
}

.pkg-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: #fff;
  margin-bottom: 6px;
}

.pkg-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 1;
}

.pkg-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.pkg-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text2);
}

.pkg-list i { font-size: 14px; color: var(--gold); }

/* ---------- DESIGN GRID ---------- */
.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.design-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .15s, transform .15s;
}

.design-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}

.design-icon {
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 4px;
}

.design-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text);
}

.design-desc { font-size: 11px; color: var(--muted); line-height: 1.55; flex: 1; }
.pkg-desc { font-size: 12px; color: var(--muted); line-height: 1.55; margin: 8px 0 14px; }
.pkg-desc:empty { display: none; }

.design-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--gold);
  margin-top: 4px;
}

/* ---------- SCROLLBAR ---------- */
.main::-webkit-scrollbar { width: 5px; }
.main::-webkit-scrollbar-track { background: transparent; }
.main::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    height: 100%;
    z-index: 500;
    transition: left .28s ease;
  }

  .sidebar.open { left: 0; }

  .hamburger { display: flex; }

  /* Ocultar POSTULA tab en mobile — el menú lateral lo reemplaza */
  #postula-tab { display: none !important; }

  .hero { padding: 24px 20px 24px 20px; }
  .sec-inner { padding: 20px 20px 20px 20px; }
  .sec-h { padding-left: 0; margin-left: 0; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .booking-card { grid-template-columns: 1fr; }
  .studio-body-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }

  /* pm-mode en tablet/mobile: el iframe debe ocupar toda la pantalla disponible */
  .main.pm-mode:has(#page-estudios.active) { height: 100dvh; }
  .shell:has(.main.pm-mode:has(#page-estudios.active)) { height: 100dvh; overflow: hidden; }
}

@media (max-width: 600px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .studio-body-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 46px; }
  .service-row { flex-wrap: wrap; }
  .service-price { align-items: flex-start; }
}

/* ---------- PRINT (boleta) ---------- */
@media print {
  .shell { display: block; }
  .sidebar, .hamburger, .nav, .hero-btns { display: none !important; }
  #boleta-overlay { position: static !important; background: transparent !important; }
  #boleta-overlay > div { box-shadow: none !important; border: 1px solid #ccc !important; }
}

/* ── SPLASHSCREEN / APP ICON: logo centrado ──────────────────────────────── */
/* Asegura que el logo en la app y splash se vea completo y centrado */
@media (display-mode: standalone) {
  body::before {
    display: none; /* remove any accidental pseudo splash */
  }
}

/* ── SIDEBAR OVERLAY (mobile) ───────────────────────────────── */
#sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--sidebar-w); /* empieza después del sidebar, no lo tapa */
  right: 0;
  z-index: 499;
  background: rgba(0,0,0,0);
  transition: background .28s ease;
}
#sidebar-overlay.visible {
  display: block;
  background: rgba(0,0,0,.55);
}

/* Botón cerrar dentro del sidebar (mobile) */
.sidebar-close {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: var(--text2);
  font-size: 16px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background .15s;
}
.sidebar-close:hover { background: rgba(255,255,255,.12); }

@media (max-width: 900px) {
  .sidebar-close { display: flex; }
}
