/* ============================================================   GLOBAL THEME — KRASH AMPTER / KRASH HUB (Bootstrap Studio)   Autor: tú y yo  |  Paleta: #0F0F0F / #F5F5F5 / #FFD000   ============================================================ */

/* ---------- Variables raíz ---------- */

:root {
  --ka-bg: #0F0F0F;
  --ka-text: #F5F5F5;
  --ka-accent: #FFD000;
  --ka-line: rgba(255,255,255,.12);
  --ka-line-soft: rgba(255,255,255,.08);
  --ka-glass: rgba(15,15,15,.62);
  --ka-blur: 22px;
  --ka-shadow-lg: 0 30px 60px rgba(0,0,0,.35);
  --ka-shadow-md: 0 16px 32px rgba(0,0,0,.28);
  --ka-font-display: "Roboto", system-ui, Arial, sans-serif;
  --ka-font-body: "Poppins", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --ka-radius: 16px;
  --ka-radius-pill: 999px;
}

/* ---------- Reset / base oscuro ---------- */

html, body {
  background: #0F0F0F !important;
  color: var(--ka-text);
  font-family: var(--ka-font-body);
  margin: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Override Bootstrap claros por defecto */

:root, [data-bs-theme=light] {
  --bs-body-bg: #0F0F0F;
  --bs-body-color: #F5F5F5;
  --bs-link-color: #F5F5F5;
  --bs-link-hover-color: #FFD000;
  --bs-border-color: rgba(255,255,255,.12);
  --bs-secondary-color: rgba(245,245,245,.75);
}

/* Links globales */

a, a:visited {
  color: var(--ka-text);
  text-decoration: none;
}

a:hover {
  color: var(--ka-accent);
}

/* Titulares */

h1, h2, h3, h4 {
  font-family: var(--ka-font-display);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Listas sin bullets por defecto en navs custom */

ul.clean, .sk-nav, .pg-ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sk-nav li {
  list-style: none;
}

/* Accesibilidad focus */

:focus-visible {
  outline: 2px solid var(--ka-accent);
  outline-offset: 2px;
}

/* ---------- Utilidades ---------- */

.kx-container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 16px;
}

.kx-card {
  border: 1px solid var(--ka-line);
  border-radius: var(--ka-radius);
  background: rgba(0,0,0,.20);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.kx-pill {
  border-radius: var(--ka-radius-pill);
}

.kx-glass {
  background: var(--ka-glass);
  backdrop-filter: blur(var(--ka-blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--ka-blur)) saturate(150%);
  border: 1px solid var(--ka-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.02);
}

/* Botones coherentes */

.btn-amber {
  background: var(--ka-accent);
  color: #111 !important;
  border: 0 !important;
  border-radius: var(--ka-radius-pill);
  font-weight: 800;
}

.btn-amber:hover {
  filter: brightness(1.05) saturate(1.05);
}

.btn-ghost {
  background: rgba(0,0,0,.20);
  color: var(--ka-text) !important;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--ka-radius-pill);
  font-weight: 800;
}

.btn-ghost:hover {
  background: rgba(255,255,255,.08);
}

/* ---------- NAVBAR GLASSY BIG PILL (banda/escuela) ---------- */

.ka-navpill, .sk-pill {
  position: sticky;
  top: 0;
  z-index: 1040;
  padding: .6rem .6rem .8rem;
  background: transparent;
}

.ka-navpill .inner, .sk-pill .sk-inner {
  composes: kx-glass;
  border-radius: var(--ka-radius-pill);
  padding: .55rem .9rem;
}

.ka-row, .sk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: nowrap;
}

/* Logo libre con glow (sin “cuadrito”) */

.logo-glow-wrap {
  position: relative;
  display: inline-block;
}

.logo-glow-wrap::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(255,208,0,.28) 0%, transparent 72%);
  filter: blur(10px) saturate(120%);
  pointer-events: none;
}

.logo-glow {
  position: relative;
  z-index: 1;
  display: block;
  height: 56px;
  width: auto;
  filter: drop-shadow(0 6px 18px rgba(255,208,0,.35));
}

@media (min-width:992px) {
  .logo-glow {
    height: 78px;
    transform: translateY(-6px);
  }
}

/* Links navbar (subrayado pincel al hover) */

.nav-scratch a {
  position: relative;
  padding: .55rem .8rem;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: .2px;
  white-space: nowrap;
  font-size: .98rem;
}

.nav-scratch a:hover {
  color: var(--ka-accent);
  transform: translateY(-1px);
}

.nav-scratch a.is-active {
  color: var(--ka-accent);
}

.nav-scratch a::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 4px;
  height: 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='12' viewBox='0 0 160 12'><path d='M2 9 C50 1, 120 15, 158 6' stroke='%23FFD000' stroke-width='6' fill='none' stroke-linecap='round'/></svg>");
  background-size: 0 12px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size .25s ease;
}

.nav-scratch a:hover::after, .nav-scratch a.is-active::after {
  background-size: 160px 12px;
}

/* FAB móvil (menú) + overlay */

.fab-menu {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1050;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ka-accent);
  color: #111;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.4), inset 0 0 0 2px rgba(0,0,0,.25);
  cursor: pointer;
}

.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 1045;
  display: none;
  background: radial-gradient(120% 120% at 80% 20%, rgba(255,208,0,.18), rgba(15,15,15,.90) 45%) , rgba(0,0,0,.35);
  backdrop-filter: blur(calc(var(--ka-blur) + 6px)) saturate(160%);
  -webkit-backdrop-filter: blur(calc(var(--ka-blur) + 6px)) saturate(160%);
}

.overlay-menu.show {
  display: block;
  animation: fadeIn .22s cubic-bezier(.2,.8,.2,1) both;
}

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

.overlay-menu .sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.overlay-menu .menu-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-end;
  text-align: right;
  width: 100%;
}

.overlay-menu .ov-link {
  display: inline-block;
  padding: 1rem 1.1rem;
  min-width: 220px;
  background: rgba(0,0,0,.35);
  color: var(--ka-text);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.overlay-menu .close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.5);
  color: var(--ka-text);
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

/* Ocultar FAB/overlay en desktop */

@media (min-width:992px) {
  .fab-menu {
    display: none !important;
  }
}

@media (min-width:992px) {
  .overlay-menu {
    display: none !important;
  }
}

/* Centrado del logo en móvil dentro de la pill */

@media (max-width:991.98px) {
  .ka-row, .sk-row {
    justify-content: center;
  }
}

/* ---------- HERO (banda o escuela) ---------- */

#ka-hero, #school-hero {
  position: relative;
  min-height: 100dvh;
  isolation: isolate;
  color: var(--ka-text);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-media iframe, .hero-media video, .hero-media img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 120vw;
  height: 120vh;
  object-fit: cover;
  filter: saturate(110%) contrast(1.05);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(90px,12vh,140px) 16px 28px;
}

.hero-title {
  font-family: var(--ka-font-display);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.04;
  margin: 0 0 .35rem;
  font-size: clamp(2rem,6vw,4rem);
  text-shadow: 0 6px 28px rgba(0,0,0,.6);
}

.hero-sub {
  opacity: .94;
  margin: 0 0 1.1rem;
  font-size: clamp(1rem,2.2vw,1.25rem);
}

.hero-ctas {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- PROGRAMAS (school) ---------- */

#programas {
  padding: clamp(40px,7vw,84px) 0;
  background: transparent;
}

#programas .pg-head {
  text-align: center;
  margin: 0 0 18px;
}

#programas .pg-title {
  margin: 0 0 6px;
  font-family: var(--ka-font-display);
  letter-spacing: .08em;
  font-weight: 900;
  font-size: clamp(1.4rem,3.4vw,1.8rem);
}

#programas .pg-sub {
  opacity: .92;
  margin: 0;
  font-size: clamp(.95rem,2.3vw,1.05rem);
}

.pg-grid {
  display: grid;
  gap: clamp(14px,2.4vw,18px);
  grid-template-columns: 1fr;
}

@media (min-width:720px) {
  .pg-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (min-width:1100px) {
  .pg-grid {
    grid-template-columns: repeat(3,1fr);
  }
}

.pg-card {
  composes: kx-card;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.pg-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.24);
  box-shadow: var(--ka-shadow-lg);
}

.pg-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ka-line);
}

.pg-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: radial-gradient(80% 80% at 50% 50%, rgba(255,208,0,.18), rgba(255,255,255,0) 70%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.pg-name {
  margin: 0;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: clamp(1rem,2.6vw,1.05rem);
}

.pg-body {
  padding: 14px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.pg-desc {
  opacity: .94;
  margin: 0;
  font-size: .98rem;
}

.pg-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .9rem;
  opacity: .9;
}

.pg-pill {
  border: 1px solid var(--ka-line);
  border-radius: var(--ka-radius-pill);
  padding: .3rem .6rem;
  background: rgba(0,0,0,.15);
  font-weight: 800;
}

.pg-actions {
  display: flex;
  gap: 10px;
  padding: 12px 16px 16px;
  flex-wrap: wrap;
}

.pg-btn {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--ka-radius-pill);
  font-weight: 900;
  padding: .55rem .9rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.pg-btn-primary {
  background: var(--ka-accent);
  color: #111 !important;
  border-color: transparent;
}

/* Modal temario básico */

.pg-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
  background: radial-gradient(120% 120% at 80% 20%, rgba(255,208,0,.14), rgba(15,15,15,.92) 45%) , rgba(0,0,0,.55);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

.pg-modal.show {
  display: grid;
  place-items: center;
  animation: fadeIn .18s ease both;
}

.pg-dialog {
  width: min(860px,92vw);
  border: 1px solid var(--ka-line);
  border-radius: var(--ka-radius);
  overflow: hidden;
  background: rgba(0,0,0,.3);
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
}

.pg-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ka-line);
}

.pg-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.4);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.pg-bd {
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}

/* ---------- MÚSICA (vinilo minimal + playlist) ---------- */

#musica {
  padding: clamp(40px,7vw,84px) 0;
}

.mu-grid {
  display: grid;
  gap: clamp(14px,2.4vw,18px);
  grid-template-columns: 1fr;
}

@media (min-width:992px) {
  .mu-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* vinilo más grande */

.mu-vinyl {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--ka-radius);
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #222 0%, #0f0f0f 60%, #000 100%);
  border: 1px solid var(--ka-line);
}

.mu-vinyl::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0 2%, transparent 2% 4%) 0 0/4% 4%;
  opacity: .3;
  filter: blur(.3px);
}

.mu-label {
  position: absolute;
  inset: 38% 38%;
  border-radius: 50%;
  background: #FFD000;
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 0 0 2px rgba(0,0,0,.5) inset;
}

.mu-needle {
  position: absolute;
  right: 8%;
  top: 10%;
  width: 28%;
  height: 4px;
  background: #ccc;
  transform-origin: left center;
  transform: rotate(18deg);
  opacity: .5;
}

.mu-rotate {
  animation: spin 6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Botones de música */

.mu-ctas {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: 12px;
}

.mu-btn {
  composes: pg-btn;
}

.mu-btn-primary {
  composes: pg-btn-primary;
}

/* Spotify embed */

.mu-embed {
  border: 1px solid var(--ka-line);
  border-radius: var(--ka-radius);
  overflow: hidden;
  min-height: 180px;
  background: rgba(0,0,0,.20);
}

/* ---------- LIVE (grid + highlight + ticker) ---------- */

#live {
  padding: clamp(40px,7vw,84px) 0;
}

.lv-grid {
  display: grid;
  gap: clamp(14px,2.4vw,18px);
  grid-template-columns: 1fr;
}

@media (min-width:1100px) {
  .lv-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.lv-hero {
  composes: kx-card;
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
}

.lv-list .lv-item {
  composes: kx-card;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.lv-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.24);
}

/* Ticker de texto (cinta) */

.ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--ka-line);
  border-bottom: 1px solid var(--ka-line);
  background: repeating-linear-gradient(45deg, rgba(255,208,0,.12) 0 12px, rgba(255,208,0,0) 12px 24px);
}

.ticker .track {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  padding-block: .5rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- MERCH ---------- */

#merch {
  padding: clamp(40px,7vw,84px) 0;
}

.mc-grid {
  display: grid;
  gap: clamp(14px,2.4vw,18px);
  grid-template-columns: 1fr 1fr;
}

@media (max-width:719.98px) {
  .mc-grid {
    grid-template-columns: 1fr;
  }
}

.mc-card {
  composes: kx-card;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mc-img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ka-line);
  background: #111;
}

/* ---------- PRESS / EPK minimal ---------- */

#press {
  padding: clamp(40px,7vw,84px) 0;
}

.pr-metrics {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.pr-metric {
  text-align: center;
}

.pr-metric .num {
  font-size: clamp(2rem,7vw,3.4rem);
  font-weight: 900;
  line-height: 1;
}

.pr-metric .lab {
  opacity: .85;
}

.pr-quote {
  composes: kx-card;
  padding: 16px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.pr-bio {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width:992px) {
  .pr-bio {
    grid-template-columns: 1fr 1.2fr;
  }
}

.pr-bio img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--ka-line);
}

/* ---------- CONTACTO minimal (overlay desde botón) ---------- */

.ct-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  background: radial-gradient(120% 120% at 80% 20%, rgba(255,208,0,.14), rgba(15,15,15,.92) 45%) , rgba(0,0,0,.55);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

.ct-overlay.show {
  display: grid;
  place-items: center;
  animation: fadeIn .18s ease both;
}

.ct-panel {
  width: min(760px,92vw);
  composes: kx-glass;
  border-radius: var(--ka-radius);
  padding: 16px;
}

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

@media (min-width:720px) {
  .ct-row {
    grid-template-columns: 1fr 1fr;
  }
}

.ct-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* ---------- SUSCRÍBETE pestaña vertical flotante ---------- */

.sub-tab {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1035;
  background: var(--ka-accent);
  color: #111;
  font-weight: 900;
  padding: .5rem .6rem;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: .06em;
  box-shadow: 0 10px 24px rgba(0,0,0,.4);
}

@media (max-width:991.98px) {
  .sub-tab {
    left: 0;
  }
}

/* permanece vertical también en móvil */

/* ---------- FOOTER minimal ---------- */

#footer-min {
  padding: 28px 0;
  border-top: 1px solid var(--ka-line);
  color: var(--ka-text);
  background: transparent;
}

#footer-min .ft-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

#footer-min .ft-small {
  opacity: .72;
  font-size: .95rem;
}

#footer-min .ft-logo {
  height: 44px;
  filter: drop-shadow(0 6px 18px rgba(255,208,0,.35));
}

/* ---------- Preferencias de movimiento ---------- */

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

