/* =========================
   Paleta y base
   ========================= */
:root {
  --bg: #0b0f1a;
  --bg-2: #0f1726;
  --surface: #121a2b;
  --glass: rgba(255, 255, 255, 0.06);
  --text: #e6e9f2;
  --muted: #9aa4c2;
  --primary: #e63946; /* Rock Red */
  --secondary: #4cc9f0; /* Tech Neon */
  --neon: #9d4edd;
  --success: #22c55e;
  --ring: rgba(76, 201, 240, 0.35);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, sans-serif;
  background: radial-gradient(
      1200px 600px at 10% -10%,
      rgba(76, 201, 240, 0.08),
      transparent 60%
    ),
    radial-gradient(
      1000px 500px at 90% -20%,
      rgba(230, 57, 70, 0.08),
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1100px;
  padding: 0 20px;
  margin: 0 auto;
}

/* Glassmorphism utility */
.glass {
  backdrop-filter: saturate(140%) blur(10px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  border-radius: 14px;
}

.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.18);
}

/* =========================
   Header / Navbar
   ========================= */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(
    180deg,
    rgba(11, 15, 26, 0.9),
    rgba(11, 15, 26, 0.6)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  font-family: Orbitron, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
}

/* CTA styles */
.btn {
  background: linear-gradient(135deg, var(--primary), #ef476f);
  color: #fff;
  border: 0;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 32px rgba(230, 57, 70, 0.45);
}
.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), #22d3ee);
  box-shadow: 0 10px 25px rgba(76, 201, 240, 0.35);
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Progress bar */
.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}

/* =========================
   Hero
   ========================= */
.hero {
  position: relative;
  min-height: 85vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background: url("images/foto_grupal_1.jpg") center/cover no-repeat fixed;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    60% 60% at 50% 30%,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.7)
  );
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      800px 300px at 50% 100%,
      rgba(76, 201, 240, 0.15),
      transparent 60%
    ),
    radial-gradient(
      700px 280px at 10% 10%,
      rgba(230, 57, 70, 0.18),
      transparent 60%
    );
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
}

.glitch {
  font-family: Orbitron, Inter, sans-serif;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 18px rgba(76, 201, 240, 0.35);
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 0);
}
.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--secondary);
  animation: glitch 2s infinite ease-in-out alternate;
}
.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--primary);
  animation: glitch 2.5s infinite ease-in-out alternate-reverse;
}

@keyframes glitch {
  0% {
    clip-path: inset(0 0 0 0);
  }
  20% {
    clip-path: inset(10% 0 85% 0);
  }
  40% {
    clip-path: inset(80% 0 5% 0);
  }
  60% {
    clip-path: inset(40% 0 40% 0);
  }
  80% {
    clip-path: inset(70% 0 20% 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

.subtitle {
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  margin: 10px 0 24px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-badges {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.chip {
  font-size: 0.85rem;
  color: #dbeafe;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 6px 10px;
  border-radius: 999px;
}

/* =========================
   Secciones
   ========================= */
.section {
  padding: 90px 0;
  position: relative;
}
.section.alt {
  background: radial-gradient(
      600px 600px at 80% 10%,
      rgba(76, 201, 240, 0.06),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.01)
    );
}
.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
}
.title-accent {
  color: var(--primary);
  filter: drop-shadow(0 0 10px rgba(230, 57, 70, 0.35));
}
.section-desc {
  color: var(--muted);
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
}
.subheading {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.6px;
  margin: 32px 0 18px;
  text-align: center;
}

/* Projects */
.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.card.project {
  padding: 26px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}
.stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stack span {
  font-size: 0.75rem;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 6px 10px;
  border-radius: 999px;
}
.title-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.title-link:hover {
  color: #7dd3fc;
  transform: translateY(-1px);
}
.card.project p {
  color: #dde3f5;
  margin: 8px 0 0;
}

/* Música */
.music-gallery {
  display: grid;
  gap: 22px;
  margin-top: 28px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.playlist-card {
  padding: 18px;
}
.playlist-card h3 {
  margin: 6px 0 12px;
  color: #cdeafe;
  font-weight: 800;
}
.embed {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}
.playlist-card iframe {
  width: 100%;
  display: block;
}

/* Integrantes */
.band-members {
  margin-top: 38px;
}
.member-cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.card-member {
  text-align: center;
  padding: 20px;
  border-radius: 14px;
  position: relative;
}
.avatar {
  width: 120px;
  height: 120px;
  margin: 6px auto 12px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar.ring {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border: 2px solid rgba(255, 255, 255, 0.06);
}

.card-member h4 {
  margin: 6px 0 4px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.card-member h4 span {
  color: var(--secondary);
}
.role {
  color: #fca5a5;
  font-weight: 700;
  margin: 2px 0 2px;
}
.skills {
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================
   Contacto
   ========================= */
.contact {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.03)
  );
}
form {
  max-width: 760px;
  margin: 24px auto 8px;
  padding: 24px;
}
.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field.full {
  grid-column: 1 / -1;
}

label {
  color: #cbd5e1;
  font-weight: 700;
  letter-spacing: 0.3px;
}
input,
textarea {
  background: #0c1324;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease;
}
textarea {
  min-height: 140px;
  resize: vertical;
}
input:focus,
textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.15);
}
.form-note {
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

/* =========================
   Redes Sociales
   ========================= */
.social-links {
  margin-top: 34px;
  text-align: center;
}
.social-icons {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.social-btn {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.social-btn:hover {
  transform: translateY(-4px) rotate(-2deg);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.06)
  );
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.45);
}
.social-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* =========================
   Footer
   ========================= */
footer {
  padding: 26px 0;
  background: #0a0e19;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.to-top {
  color: var(--secondary);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  border-radius: 10px;
}

/* =========================
   Loader
   ========================= */
#loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
  background: radial-gradient(
      800px 400px at 50% -10%,
      rgba(76, 201, 240, 0.08),
      transparent 60%
    ),
    var(--bg);
  color: #fff;
  z-index: 9999;
}
#loader .bread {
  font-size: 4rem;
  display: inline-block;
  animation: rockBread 1.1s infinite alternate ease-in-out,
    spinBread 9s linear infinite;
  filter: drop-shadow(0 8px 24px rgba(76, 201, 240, 0.35));
}
#loader .loading-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
  letter-spacing: 2px;
  color: #dbeafe;
  animation: pulseText 1.2s infinite;
}
@keyframes rockBread {
  0% {
    transform: rotate(-10deg) translateY(0);
  }
  100% {
    transform: rotate(10deg) translateY(-3px);
  }
}
@keyframes spinBread {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulseText {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    right: 20px;
    top: 64px;
    background: rgba(11, 15, 26, 0.95);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-links.show {
    display: grid;
    gap: 8px;
  }
  .nav-toggle {
    display: inline-block;
  }
  .footer-inner {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
