/* ======================================================
   ESPACIO BPM — CSS COMPLETO
   Landing + Área del Alumno
====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@300;400;500;600&display=swap');

/* ======================================================
   RESET + VARIABLES
====================================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --gold:          #d4af37;
  --gold-dark:     #b8962f;
  --gold-glow:     rgba(212,175,55,0.12);
  --bg:            #0e0e0e;
  --bg2:           #111111;
  --text:          #e8e8e8;
  --text-muted:    #888;
  --border:        rgba(212,175,55,0.2);
  --header-h:      60px;
  --radius:        8px;
  --section-pad:   100px 6%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', Arial, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ======================================================
   HEADER / NAV
====================================================== */

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: .3s ease;
}

nav {
  height: var(--header-h);
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: .3s ease;
  position: relative;
}

header.scrolled nav {
  height: 50px;
  background: rgba(0,0,0,.92);
  border-bottom-color: var(--border);
}

nav img {
  height: 42px;
  transition: .3s ease;
}

header.scrolled nav img {
  height: 36px;
}

nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

nav a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: .85rem;
  letter-spacing: .22em;
  color: rgba(255,255,255,.7);
  transition: color .25s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

nav a:hover { color: var(--gold); }
nav a:hover::after { transform: scaleX(1); }

/* Hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: .3s;
}

/* ======================================================
   SECCIONES — base
====================================================== */

section {
  padding: var(--section-pad);
}

section h2 {
  font-family: 'Bebas Neue', sans-serif;
  text-align: center;
  color: var(--gold);
  letter-spacing: .15em;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

section h2 + *,
section h2::after {
  /* separador dorado bajo los h2 */
}

section h2 {
  margin-bottom: 50px;
  position: relative;
}

section h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 12px auto 0;
  opacity: .45;
}

/* ======================================================
   HERO — #inicio
====================================================== */

#inicio {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 0 20px;
}

#inicio::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.45) 0%,
      rgba(0,0,0,.60) 40%,
      rgba(0,0,0,.80) 100%
    ),
    url("../img/hero.jpg") center 22% / cover no-repeat;
  z-index: 0;
}

#inicio::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 50%,
    rgba(0,0,0,.3) 100%
  );
  z-index: 1;
}

#inicio > * {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

#inicio h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: .08em;
  font-weight: 400;
  margin-bottom: 10px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}

#inicio h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: .3em;
  color: var(--gold);
  margin-bottom: 14px;
  text-shadow: none;
}

#inicio h2::after { display: none; }

#inicio p {
  font-size: .95rem;
  opacity: .75;
  margin-bottom: 32px;
  letter-spacing: .04em;
}

#inicio > a {
  display: inline-block;
  padding: 14px 52px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: .2em;
  border-radius: var(--radius);
  transition: background .25s, color .25s, box-shadow .25s;
}

#inicio > a:hover {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 8px 30px rgba(212,175,55,.3);
}

/* ======================================================
   CLASES — #clases
====================================================== */

/* ---- EXPLORAR CTA ---- */
.explorar-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.explorar-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
}

.explorar-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 0;
}

.explorar-btn:hover::before { transform: scaleX(1); }
.explorar-btn:hover { color: #0a0a0a; }

.explorar-btn-label,
.explorar-btn-arrow {
  position: relative;
  z-index: 1;
}

.explorar-btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.2s;
}
.explorar-btn:hover .explorar-btn-arrow { transform: translateX(4px); }

.explorar-sub {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

#clases {
  background: var(--bg2);
}

.clases-layout {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

/* ---- LOGIN GLASS ---- */

.login-glass {
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  background: rgba(18,18,18,.85);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(212,175,55,.3);
  box-shadow: 0 40px 80px rgba(0,0,0,.8);
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: .3s ease;
}

.login-glass:hover {
  transform: translateY(-4px);
  border-color: rgba(212,175,55,.5);
  box-shadow: 0 55px 110px rgba(0,0,0,.9);
}

.login-glass h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: .25em;
  color: var(--gold);
  margin-bottom: 40px;
  text-align: left;
}

/* Input con línea inferior */
.input-group {
  position: relative;
  margin-bottom: 32px;
}

.input-group input {
  width: 100%;
  padding: 16px 5px 8px 5px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.25);
  color: white;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color .3s;
  -webkit-appearance: none;
}

.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:focus {
  -webkit-text-fill-color: white !important;
  box-shadow: 0 0 0px 1000px rgba(20,20,20,.75) inset !important;
  transition: background-color 9999s ease-in-out 0s;
}

.input-group input:focus {
  border-bottom-color: var(--gold);
}

.input-group label {
  position: absolute;
  left: 5px;
  top: 16px;
  color: #aaa;
  font-size: 1rem;
  pointer-events: none;
  transition: all .25s ease;
}

input:-webkit-autofill ~ label {
  top: -10px;
  font-size: .75rem;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -8px;
  font-size: .72rem;
  color: var(--gold);
}

.login-btn {
  margin-top: 10px;
  padding: 14px;
  border: none;
  border-radius: var(--radius);
  background: var(--gold);
  color: black;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: .18em;
  cursor: pointer;
  transition: background .25s, transform .2s;
  width: 100%;
}

.login-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

#resultado-login {
  margin-top: 16px;
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
  min-height: 20px;
}

/* ---- SLIDER ---- */

.clases-slider {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,.9);
  width: 100%;
}

.slider-track {
  display: flex;
  transition: transform .8s cubic-bezier(.77,0,.18,1);
}

.slider-track img {
  flex: 0 0 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ======================================================
   ESTUDIO — #estudio
====================================================== */

#estudio {
  background: var(--bg);
}

/* Tabs */
.studio-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  background: none;
  border: 1px solid transparent;
  padding: 10px 30px;
  border-radius: 30px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .2em;
  font-size: .85rem;
  transition: .3s ease;
}

.tab-btn:hover { color: var(--text); }

.tab-btn.active {
  color: var(--gold);
  border-color: rgba(212,175,55,.4);
  background: var(--gold-glow);
}

/* Paneles */
.studio-content {
  position: relative;
  min-height: 400px;
  max-width: 1300px;
  margin: 0 auto;
}

.tab-panel {
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}

.tab-panel.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Galería 2x2 */
.studio-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  border-radius: 16px;
  overflow: hidden;
}

.studio-gallery img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  cursor: pointer;
  transition: transform .4s ease, filter .3s ease;
  filter: brightness(.85);
}

.studio-gallery img:hover {
  transform: scale(1.03);
  filter: brightness(1);
}

/* Video */
.studio-video {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 60px 120px rgba(0,0,0,.9);
}

.studio-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  display: block;
}

/* Discos */
.studio-albums {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.studio-albums iframe {
  max-width: 300px;
  width: 100%;
  height: 352px;
  border-radius: 16px;
  border: 0;
  box-shadow: 0 30px 60px rgba(0,0,0,.8);
}

/* ======================================================
   CONTACTO — #contacto
====================================================== */

#contacto {
  background: var(--bg2);
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  border-left: 2px solid var(--gold);
  padding-left: 18px;
}

.contact-label {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: .8rem;
  letter-spacing: .25em;
  color: var(--gold);
  margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: color .25s;
}

.contact-item a:hover { color: var(--gold); }

.map-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.8);
  border: 1px solid var(--border);
}

.map-wrapper iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
  filter: grayscale(55%) invert(92%) hue-rotate(180deg);
}

/* ======================================================
   LIGHTBOX
====================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 0 80px rgba(0,0,0,.9);
}

.close-lightbox {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2.5rem;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  transition: color .2s;
  line-height: 1;
}

.close-lightbox:hover { color: var(--gold); }

/* ======================================================
   WHATSAPP FLOAT
====================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0,0,0,.4);
  z-index: 1500;
  transition: .3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(37,211,102,.45);
}

/* ======================================================
   ÁREA DEL ALUMNO
====================================================== */

.panel-alumno {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.panel-alumno > h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: .2em;
  color: var(--gold);
}

.panel-section {
  background: rgba(30,30,30,.6);
  border: 1px solid rgba(212,175,55,.15);
  border-radius: 14px;
  padding: 22px;
}

.panel-section h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: .85rem;
  letter-spacing: .2em;
  color: var(--gold);
  margin-bottom: 14px;
}

.panel-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-section li {
  padding: 8px 12px;
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  font-size: .9rem;
}

.panel-section a { color: white; transition: color .2s; }
.panel-section a:hover { color: var(--gold); }

/* Materiales */
.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.material-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(212,175,55,.15);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: .3s ease;
}

.material-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.material-thumb {
  background: rgba(255,255,255,.07);
  height: 110px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.material-title {
  font-size: .82rem;
  opacity: .9;
  line-height: 1.3;
}

.material-btn {
  padding: 7px;
  font-size: .72rem;
  background: var(--gold);
  color: black;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .1em;
  transition: background .2s;
}

.material-btn:hover { background: var(--gold-dark); }

/* ======================================================
   CALENDARIO — ESTILO CLARO (contraste)
====================================================== */

.calendar-wrapper {
  background: #f5f3ee;
  border-radius: 16px;
  padding: 28px;
  color: #1a1a1a;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  margin-top: 20px;
}

.calendar-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-bottom: 22px;
}

.calendar-top button {
  background: none;
  border: none;
  color: var(--gold-dark);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform .2s;
}

.calendar-top button:hover { transform: scale(1.25); }

#calendar-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: .15em;
  color: #1a1a1a;
}

.calendar-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: .65rem;
  letter-spacing: .12em;
  color: #777;
  margin-bottom: 10px;
  font-family: 'Bebas Neue', sans-serif;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-grid div {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  border-radius: var(--radius);
  color: #333;
  transition: background .2s;
}

.calendar-day {
  background: rgba(0,0,0,.04);
}

.calendar-day:hover {
  background: rgba(212,175,55,.15);
  cursor: pointer;
}

.calendar-day.pagada {
  background: rgba(0,180,0,.15);
  border: 1px solid rgba(0,180,0,.5);
  color: #1a6b1a;
  font-weight: 600;
}

.calendar-day.pendiente {
  background: rgba(220,100,0,.12);
  border: 1px solid rgba(220,100,0,.5);
  color: #883300;
  font-weight: 600;
}

.calendar-day.today {
  border: 2px solid var(--gold-dark);
  font-weight: 700;
  color: #1a1a1a;
}

.calendar-detail {
  margin-top: 20px;
}

.calendar-info {
  background: white;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(212,175,55,.3);
  font-size: .9rem;
  line-height: 1.6;
  color: #222;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.calendar-info h5 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: .1em;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.calendar-info p {
  color: #444;
  margin: 4px 0;
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (min-width: 900px) {

  nav { height: 64px; }
  nav img { height: 46px; }

  .clases-layout {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 60px;
  }

  .login-glass {
    flex: 0 0 42%;
  }

  .clases-slider {
    flex: 0 0 50%;
    display: flex;
  }

  .slider-track {
    height: 100%;
  }

  .slider-track img {
    height: 100%;
    aspect-ratio: unset;
    object-fit: cover;
  }

  .contact-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .contact-info { width: 38%; }
  .map-wrapper  { width: 55%; }

}

@media (max-width: 768px) {

  .menu-toggle { display: flex; }

  nav ul {
    position: absolute;
    top: var(--header-h);
    left: 0;
    width: 100%;
    background: rgba(0,0,0,.96);
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 28px 0;
    transform: translateY(-120%);
    transition: .4s ease;
    border-bottom: 1px solid var(--border);
  }

  nav ul.active {
    transform: translateY(0);
  }

  .studio-gallery {
    grid-template-columns: 1fr;
  }

  .studio-albums {
    flex-direction: column;
    align-items: center;
  }

  .login-glass {
    padding: 40px 28px;
  }

  .calendar-wrapper {
    padding: 18px;
  }

  .explorar-btn {
    font-size: 0.85rem;
    padding: 12px 20px;
  }
  .explorar-sub {
    font-size: 0.65rem;
  }

}



@media (max-width: 480px) {

  #inicio h1 { letter-spacing: .04em; }

  .studio-gallery {
    gap: 10px;
  }

}