:root {
  --azul: #1440a0;
  --azul-claro: #1e55c8;
  --azul-oscuro: #0d2a6e;
  --oro: #f5c518;
  --oro-suave: #fad84a;
  --negro: #1a1a20;
  --negro-suave: #22222a;
  --blanco: #f8f6f0;
  --gris: #e8e5de;
  --gris-medio: #b0a898;
  --gris-oscuro: #3a3a44;
  --verde-uabc: #2f7f49;
  --verde-uabc-oscuro: #245f37;
  --shadow: 0 4px 32px rgba(20, 64, 160, 0.13);
  --shadow-gold: 0 4px 24px rgba(245, 197, 24, 0.18);
  --container: 1140px;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--blanco);
  background:
    radial-gradient(circle at 15% 10%, rgba(20, 64, 160, 0.48), transparent 24%),
    linear-gradient(
      180deg,
      #0f1f4d 0%,
      #132963 14%,
      #141923 40%,
      #1a1a20 66%,
      #18231d 82%,
      rgba(47, 127, 73, 0.82) 100%
    );
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

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

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

.container {
  width: min(100% - 1.5rem, var(--container));
  margin: 0 auto;
}

/* Fondo de notas musicales */
.notes-fixed {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.note {
  position: absolute;
  bottom: -10vh;
  font-size: clamp(1rem, 2vw, 1.9rem);
  animation: floatNote linear infinite;
  user-select: none;
  opacity: 0.14;
}

.note.gold {
  color: var(--oro);
}

.note.blue {
  color: #78a3ff;
}

.note.green {
  color: #8fd0a0;
}

@keyframes floatNote {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.16;
  }
  100% {
    transform: translate3d(var(--drift, 40px), -120vh, 0) rotate(16deg);
    opacity: 0;
  }
}

/* Scroll */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--negro);
}

::-webkit-scrollbar-thumb {
  background: var(--azul);
  border-radius: 999px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 26, 32, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 197, 24, 0.12);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--azul), var(--azul-claro));
  color: var(--oro);
  font-size: 1.2rem;
  box-shadow: var(--shadow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-family: "Cinzel", serif;
  color: var(--oro);
  font-size: 0.95rem;
}

.brand-text small {
  color: rgba(248, 246, 240, 0.72);
  font-size: 0.78rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  color: rgba(248, 246, 240, 0.78);
  font-size: 0.92rem;
  transition: 0.25s ease;
}

.site-nav a:hover {
  color: var(--oro);
  background: rgba(245, 197, 24, 0.08);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(245, 197, 24, 0.18);
  color: var(--oro);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
  position: relative;
  z-index: 1;
}

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

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: rgba(245, 197, 24, 0.1);
  border: 1px solid rgba(245, 197, 24, 0.18);
  color: var(--oro);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: "Cinzel", serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.98;
  max-width: 13ch;
}

.hero h1 span {
  display: block;
  color: var(--oro);
}

.hero-text {
  max-width: 64ch;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(248, 246, 240, 0.84);
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--oro);
  color: var(--negro);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: var(--oro-suave);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--blanco);
}

.btn-secondary:hover {
  border-color: rgba(245, 197, 24, 0.45);
  color: var(--oro);
  transform: translateY(-2px);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-card {
  background: rgba(15, 28, 69, 0.58);
  border: 1px solid rgba(30, 85, 200, 0.35);
  border-radius: 18px;
  padding: 1.5rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-family: "Cinzel", serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--oro);
  margin-bottom: 0.5rem;
}

.stat-card span {
  display: block;
  max-width: 18ch;
  margin: 0 auto;
  color: rgba(248, 246, 240, 0.84);
  line-height: 1.65;
}

/* Secciones */
.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.03));
}

.section-head {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 0.8rem;
  font-family: "Cinzel", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
}

.section-head p {
  margin: 0;
  color: rgba(248, 246, 240, 0.74);
  line-height: 1.8;
}

/* Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card,
.media-box,
.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.card h3,
.media-box h3,
.contact-card h3 {
  margin: 0 0 0.7rem;
  font-family: "Cinzel", serif;
  color: var(--oro);
  font-size: 1.08rem;
}

.card p,
.media-box p,
.contact-card p {
  margin: 0;
  color: rgba(248, 246, 240, 0.74);
  line-height: 1.75;
}

/* Vinculación */
.cards-grid .card {
  border-top: 3px solid var(--azul-claro);
}

.cards-grid .card:hover {
  border-color: rgba(245, 197, 24, 0.22);
  transform: translateY(-4px);
  transition: 0.25s ease;
}

/* Media */
.media-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
}

.media-box {
  height: 100%;
}

.video-wrap {
  margin: 1rem 0 1.25rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Contacto con íconos */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.contact-card {
  position: relative;
  text-align: center;
  transition: 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 197, 24, 0.25);
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.icon-email {
  background: linear-gradient(145deg, #d44638, #b23121);
}

.icon-facebook {
  background: linear-gradient(145deg, #1877f2, #0f5fcb);
}

.icon-instagram {
  background: linear-gradient(145deg, #833ab4, #fd1d1d, #fcb045);
}

.icon-youtube {
  background: linear-gradient(145deg, #ff0000, #cc0000);
}

.icon-spotify {
  background: linear-gradient(145deg, #1db954, #14833b);
}

.icon-tiktok {
  background: linear-gradient(145deg, #111111, #25f4ee, #fe2c55);
}

.contact-card a {
  color: rgba(248, 246, 240, 0.86);
}

.contact-card a:hover {
  color: var(--oro);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.4rem 0 2rem;
  background: rgba(0, 0, 0, 0.18);
  position: relative;
  z-index: 1;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(248, 246, 240, 0.56);
  font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 980px) {
  .cards-grid,
  .contact-grid,
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(26, 26, 32, 0.98);
    border-bottom: 1px solid rgba(245, 197, 24, 0.12);
    padding: 1rem;
    display: none;
  }

  .site-nav.nav-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    display: block;
  }
}

@media (max-width: 640px) {
  .hero,
  .section {
    padding-top: 4rem;
  }

  .stats,
  .cards-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(2rem, 11vw, 3rem);
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}