@font-face {
  font-family: "ChettaVissto";
  src: url("assets/fonts/ChettaVissto.woff") format("woff"),
       url("assets/fonts/ChettaVissto.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-primary: "ChettaVissto";
  --bg: #0a0a0a;
  --text-color: #e5e7eb;
  --text-muted: #cbd5e1;
  --accent: #fbbf24; /* dorado suave */
  --header-bg: rgba(10, 10, 10, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text-color);
  font-family: var(--font-primary);
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Header / Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 2rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.main-nav a:hover { 
  color: #fff; 
}

.main-nav a.active { 
  color: #fff; 
}

.main-nav a.active::after { 
  width: 100%; 
}

/* Secciones */
.section {
  height: 100vh;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
}

.section.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 10;
}

.section-1::before,
.section-2::before,
.section-3::before,
.section-4::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  z-index: 0;
}


/* Safari fallback: avoid fixed backgrounds which can flicker during reverse navigation */
html.is-safari .section-1::before,
html.is-safari .section-2::before,
html.is-safari .section-3::before,
html.is-safari .section-4::before {
  background-attachment: scroll;
}

.section-1::before { 
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url("images/inicio.webp"); 
}

.section-2::before { 
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url("images/nosotros.webp"); 
}

.section-3::before { 
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url("images/clases.webp"); 
}

.section-4::before { 
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url("images/contacto.webp"); 
}

.section-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 2.5rem;
  padding-top: calc(2.5rem + 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
  gap: 1.25rem;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.section-content > * {
  margin: 0 !important;
}

.section-content img {
  display: block;
  margin: 0 auto;
  height: auto;
  max-width: min(100%, 900px);
}

/* Tipografías */
.section-title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.section-subtitle {
  font-size: clamp(0.9rem, 2.4vw, 1.3rem);
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.section-description {
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 900px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.about-content,
.sound-content,
.contact-content {
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 900px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.section-description p { margin-bottom: 0.75rem; }

.section-content h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Botones */
.cta-group {
  display: flex;
  gap: 1rem;
  margin-top: 0; /* consolidado: sin margen adicional, usamos gap para espaciado */
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #111;
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.25);
}
.btn-primary:hover { 
  transform: translateY(-1px); 
  box-shadow: 0 12px 24px rgba(251,191,36,0.35); 
}

.btn-outline {
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
}
.btn-outline:hover { 
  border-color: rgba(255,255,255,.45); 
}

/* Responsive */
@media (max-width: 1024px) {
  .section-content { padding: 2rem; }
}

@media (max-width: 768px) {
  .header-container { padding: 0 1rem; }
  .main-nav ul { gap: 1rem; }
  .main-nav a { font-size: 11px; }

  /* Mobile performance: scroll attachment */
  .section-1::before,
  .section-2::before,
  .section-3::before,
  .section-4::before { 
    background-attachment: scroll; 
  }

  body { 
    -webkit-overflow-scrolling: touch; 
    overscroll-behavior: contain; 
  }
}

@media (max-width: 480px) {
  .site-header { height: 80px; }
  .header-container { padding: 0 0.75rem; }
  .main-nav ul { gap: 0.8rem; }
  .main-nav a { font-size: 10px; }
  .section-content { 
    padding: 1.25rem; 
  }
  
  /* Smaller text for mobile */
  .section-title { font-size: clamp(1.8rem, 6vw, 2.2rem); }
  .section-subtitle { font-size: clamp(0.8rem, 2.4vw, 0.9rem); }
  .section-description { font-size: clamp(0.9rem, 2.4vw, 1rem); }
  .section-content h2 { font-size: clamp(1.6rem, 5vw, 2rem); }
  .about-content,
  .sound-content,
  .contact-content { font-size: clamp(0.9rem, 2.4vw, 1rem); }
  .btn { font-size: 0.8rem; padding: 0.6rem 1rem; }
}

@media (max-width: 320px) {
  .main-nav ul { 
    flex-direction: column; 
    align-items: center; 
    gap: 0.5rem; 
  }
}

