/* ==========================================================================
   Valencia Music — Centro Cultural
   ========================================================================== */

:root {
  --color-bg: #0a0d12;
  --color-bg-alt: #12161e;
  --color-bg-card: #161b24;
  --color-line: #232a36;
  --color-text: #e9e7e0;
  --color-text-dim: #a8adb8;
  --color-cream: #f5f2ea;
  --color-blue: #1f6fb0;
  --color-blue-light: #4b9bd8;
  --color-blue-dark: #124a78;
  --font-display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --container: 1180px;
  --radius: 14px;
  --shadow-soft: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

h2.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--color-cream);
}

.overline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-blue-light);
  margin-bottom: 14px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head p {
  color: var(--color-text-dim);
  font-size: 1.05rem;
  margin: 0;
}

section { padding: 100px 0; position: relative; }
.bg-alt { background: var(--color-bg-alt); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--color-blue-light), var(--color-blue));
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(31, 111, 176, 0.7);
}
.btn-primary:hover { box-shadow: 0 16px 36px -8px rgba(31, 111, 176, 0.85); }

.btn-outline {
  background: transparent;
  color: var(--color-cream);
  border-color: rgba(245, 242, 234, 0.35);
}
.btn-outline:hover { border-color: var(--color-cream); background: rgba(245, 242, 234, 0.06); }

.btn-whatsapp {
  background: rgb(37 211 102 / 24%);
  color: #fff;
  border-color: #1c9e4d;
}
.btn-whatsapp svg { width: 21px; height: 21px; }
.btn-whatsapp:hover { box-shadow: 0 16px 36px -10px rgba(37, 211, 102, 0.6); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: rgba(10, 13, 18, 0.92);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid var(--color-line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 52px; width: auto; transition: height 0.35s ease; }
.site-header.scrolled .brand img { height: 42px; }

.brand-text {
  font-family: var(--font-display);
  color: var(--color-cream);
  font-size: 1.05rem;
  line-height: 1.15;
}
.brand-text strong { display: block; font-size: 1.15rem; }
.brand-text span { font-size: 0.68rem; letter-spacing: 2px; color: var(--color-blue-light); text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--color-blue-light);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 8px; flex-shrink: 0; }

.nav-links a { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--color-cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 160px 0 100px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-studio.jpg') center 30% / cover no-repeat;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.75) 0%, rgba(8, 10, 14, 0.55) 40%, rgba(8, 10, 14, 0.92) 100%),
    linear-gradient(90deg, rgba(8,10,14,0.6) 0%, rgba(8,10,14,0.2) 50%, rgba(8,10,14,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 24px;
}

.hero-logo {
  width: 150px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  color: var(--color-cream);
  margin-bottom: 10px;
  letter-spacing: -1.5px;
}

.hero .tagline {
  color: var(--color-blue-light);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 22px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--color-text);
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--color-text-dim);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--color-blue-light), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ==========================================================================
   Nosotros
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.about-media img { height: 100%; object-fit: cover; }

.about-media-secondary {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 46%;
  border-radius: 10px;
  overflow: hidden;
  border: 5px solid var(--color-bg);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.7);
}

.about-text p { color: var(--color-text-dim); margin-bottom: 18px; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--color-cream);
}
.feature-list .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-blue-light);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(75, 155, 216, 0.15);
}

/* ==========================================================================
   Clases
   ========================================================================== */

.classes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.class-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 360px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-line);
}

.class-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.class-card:hover img { transform: scale(1.08); }

.class-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,13,18,0.05) 0%, rgba(10,13,18,0.55) 55%, rgba(10,13,18,0.95) 100%);
  z-index: 1;
}

.class-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 26px;
}

.class-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-blue-light);
  background: rgba(10, 13, 18, 0.55);
  border: 1px solid rgba(75, 155, 216, 0.4);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.class-card h3 {
  color: var(--color-cream);
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.class-card p {
  color: var(--color-text-dim);
  font-size: 0.9rem;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
}

.class-card:hover p {
  max-height: 100px;
  opacity: 1;
  margin-top: 4px;
}

/* ==========================================================================
   Ambiente / Galería
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  grid-auto-flow: dense;
  gap: 18px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-grid figure:hover img { transform: scale(1.1); }

.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }

/* ==========================================================================
   Horarios
   ========================================================================== */

.hours-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hours-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 44px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-line);
  gap: 20px;
}
.hours-row:last-child { border-bottom: none; }

.hours-day {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-cream);
}

.hours-time {
  color: var(--color-text-dim);
  text-align: right;
  font-size: 0.92rem;
}
.hours-time strong { display: block; color: var(--color-blue-light); font-weight: 500; }

.hours-closed { color: #8a8f99; font-style: italic; }

.hours-note {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--color-line);
  color: var(--color-text-dim);
  font-size: 0.88rem;
}

/* ==========================================================================
   Contacto
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: stretch;
}

.contact-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-item { display: flex; gap: 16px; align-items: flex-start; }

.contact-item .icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(75, 155, 216, 0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-blue-light);
}

.contact-item h4 { margin: 0 0 4px; color: var(--color-cream); font-size: 1rem; }
.contact-item p, .contact-item a { color: var(--color-text-dim); font-size: 0.92rem; margin: 0; }
.contact-item a:hover { color: var(--color-blue-light); }

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.social-row a {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.social-row a:hover {
  background: var(--color-blue);
  border-color: var(--color-blue);
  transform: translateY(-3px);
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line);
  min-height: 100%;
  box-shadow: var(--shadow-soft);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(0.3) invert(0.92) contrast(0.9); }

/* ==========================================================================
   CTA banda
   ========================================================================== */

.cta-band {
  background:
    linear-gradient(135deg, rgba(18, 74, 120, 0.92), rgba(10, 13, 18, 0.96)),
    url('../images/neon-music.jpg') center / cover no-repeat;
  text-align: center;
  padding: 90px 0;
}
.cta-band .overline { color: var(--color-blue-light); }
.cta-band h2 { color: var(--color-cream); font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 700px; margin: 0 auto 30px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #06080b;
  border-top: 1px solid var(--color-line);
  padding: 64px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer-brand img { height: 58px; margin-bottom: 16px; }
.footer-brand p { color: var(--color-text-dim); font-size: 0.88rem; max-width: 300px; }

.footer-col h4 {
  color: var(--color-cream);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col p { color: var(--color-text-dim); font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-blue-light); }

.footer-bottom {
  border-top: 1px solid var(--color-line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #6b7180;
  font-size: 0.8rem;
}

/* ==========================================================================
   WhatsApp float button
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 999;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.76);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.6);
  animation: floatPulse 2.4s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.6); }
  50% { box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.95), 0 0 0 8px rgba(37, 211, 102, 0.12); }
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .about-grid, .contact-grid, .hours-wrap { grid-template-columns: 1fr; }
  .about-media-secondary { position: static; width: 100%; margin-top: 16px; border: none; }
  .classes-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .map-frame iframe { min-height: 320px; }
}

@media (max-width: 760px) {
  section { padding: 72px 0; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--color-bg-alt);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 26px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-left: 1px solid var(--color-line);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-cta { margin-left: 0; }
  .classes-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-grid .wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-logo { width: 110px; }
}
