/* =========================================================
   LA LIGA — Web oficial
   Estilo moderno / banda / oscuro elegante
   ========================================================= */

/* ================= VARIABLES ================= */
:root{
  --bg: #0b0b0e;
  --bg-alt: #0f1115;
  --text: #f3f4f6;
  --muted: #a1a1aa;

  --accent: #ff3b30;
  --accent-dark: #c62822;

  --card: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,.06);

  --header-bg: rgba(11,11,14,.85);

  --shadow-sm: 0 6px 18px rgba(0,0,0,.45);
  --shadow-md: 0 20px 40px rgba(0,0,0,.6);
  --shadow-lg: 0 40px 80px rgba(0,0,0,.75);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --container: 1120px;

  --font: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial;
}

/* ================= RESET ================= */
*,
*::before,
*::after{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  font-family:var(--font);
  font-size:18px;
  background:radial-gradient(circle at top, #121317, #0b0b0e 60%);
  color:var(--text);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

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

a{color:inherit}

/* ================= CONTAINER ================= */
.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 1.25rem;
}

/* ================= HEADER ================= */
header{
  position:sticky;
  top:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:.9rem 1.25rem;
  background:var(--header-bg);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
}

.logo-box{
  background:#000;
  padding:10px 18px;
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-sm);
}

.site-logo{
  height:46px;
}

/* ================= NAV ================= */
nav ul{
  list-style:none;
  display:flex;
  gap:1.2rem;
  padding:0;
  margin:0;
}

nav a{
  text-decoration:none;
  font-weight:700;
  color:var(--muted);
  padding:.4rem .6rem;
  border-radius:8px;
  transition:color .2s ease, background .2s ease;
}

nav a:hover,
nav a:focus-visible{
  color:#fff;
  background:rgba(255,255,255,.08);
}

/* ================= HERO ================= */
#hero{
  position:relative;
  min-height:80vh;
  display:grid;
  place-items:center;
  overflow:hidden;
}

.hero-cover{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:brightness(.32) saturate(1.05);
  transform:scale(1.05);
}

#hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 50% 30%, rgba(0,0,0,.25), rgba(0,0,0,.7)),
    linear-gradient(to bottom, rgba(0,0,0,.4), rgba(0,0,0,.85));
}

.hero-content{
  position:relative;
  z-index:2;
  text-align:center;
  max-width:760px;
  padding:0 1rem;
}

#hero h1{
  font-size:clamp(2.4rem, 5vw, 4rem);
  margin:0;
  letter-spacing:.5px;
}

#hero p{
  color:rgba(255,255,255,.85);
  font-size:1.05rem;
  margin:1.2rem 0 2rem;
}

/* ================= BUTTON ================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 28px;
  background:var(--accent);
  color:#fff;
  font-weight:800;
  border-radius:999px;
  text-decoration:none;
  border:0;
  box-shadow:var(--shadow-md);
  transition:transform .25s ease, box-shadow .25s ease, background .2s ease;
}

.btn:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-lg);
  background:var(--accent-dark);
}

/* ================= SECTIONS ================= */
.section{
  padding:96px 0;
}

/* ===== PANEL OSCURO ELEGANTE ===== */
.section-dark{
  background:linear-gradient(
    180deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.01)
  );
  border-radius:var(--radius-lg);
  padding:80px 64px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    var(--shadow-md);
}

/* ================= TITLES ================= */
h2{
  font-size:clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom:1rem;
  letter-spacing:.3px;
}

h2::after{
  content:"";
  display:block;
  width:64px;
  height:4px;
  background:var(--accent);
  margin-top:14px;
  border-radius:4px;
}

/* ================= MUSIC ================= */
.music-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px,1fr));
  gap:36px;
}

.track{
  background:var(--card);
  backdrop-filter:blur(10px);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  transition:transform .3s ease, box-shadow .3s ease;
}

.track:hover{
  transform:translateY(-8px);
  box-shadow:var(--shadow-lg);
}

.track-art{
  aspect-ratio:1/1;
  overflow:hidden;
}

.track-art img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.track audio{
  width:100%;
  margin-top:6px;
}

.track p{
  font-weight:800;
  padding:14px 18px 0;
  margin:0;
}

.track-desc{
  padding:10px 18px 22px;
  color:var(--muted);
}

/* ================= GALLERY ================= */
.gallery-grid{
  display:grid;
  gap:18px;
  grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
}

.gallery-grid img{
  aspect-ratio:3/2;
  object-fit:cover;
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-md);
  transition:transform .3s ease;
}

.gallery-grid img:hover{
  transform:scale(1.05);
}

/* ================= CONTACT ================= */
#contact-form{
  max-width:860px;
  margin:0 auto;
  background:var(--card);
  backdrop-filter:blur(10px);
  padding:42px;
  border-radius:var(--radius-lg);
  border:1px solid var(--border);
  box-shadow:var(--shadow-sm);
}

label{
  font-weight:700;
  display:block;
  margin-bottom:6px;
}

input,
textarea{
  width:100%;
  padding:14px;
  border-radius:var(--radius-sm);
  border:1px solid var(--border);
  margin-bottom:18px;
  font-size:1rem;
  background:rgba(0,0,0,.35);
  color:var(--text);
}

input:focus,
textarea:focus{
  outline:3px solid rgba(255,59,48,.35);
  border-color:var(--accent);
}

/* ================= FOOTER ================= */
footer{
  padding:72px 0 48px;
  text-align:center;
  color:var(--muted);
}

footer .social{
  display:flex;
  justify-content:center;
  gap:22px;
  margin-bottom:22px;
}

footer img{
  width:46px;
  height:46px;
  transition:transform .25s ease;
}

footer img:hover{
  transform:scale(1.15);
}

/* ================= BACK TO TOP (FIX FINAL) ================= */
.back-to-top{
  position:fixed;
  right:22px;
  bottom:22px;

  width:48px;
  height:48px;

  border-radius:50%;
  border:none;

  background:rgba(255,59,48,.95);
  color:#fff;
  font-size:22px;
  font-weight:800;

  display:flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;
  z-index:1600;

  box-shadow:
    0 10px 30px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(255,255,255,.15);

  opacity:0;
  transform:translateY(12px) scale(.95);
  pointer-events:none;

  transition:
    opacity .3s ease,
    transform .3s ease,
    background .2s ease;
}

.back-to-top.show{
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}

.back-to-top:hover{
  background:var(--accent);
  transform:translateY(-4px) scale(1.05);
}

@media (max-width:768px){
  .back-to-top{
    right:16px;
    bottom:72px;
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width:900px){
  nav ul{display:none}
  .section{padding:72px 0}
  .section-dark{
    padding:56px 28px;
    border-radius:22px;
  }
}

@media (max-width:600px){
  #hero{min-height:85vh}
  #contact-form{padding:28px}
}

/* ================= TYPOGRAPHY ================= */
h1, h2{
  font-family:"Anton", sans-serif;
  letter-spacing:1.2px;
  text-transform:uppercase;
}

p, li, label, input, textarea{
  font-family:"Montserrat", sans-serif;
}

/* ================= ANIMATIONS ================= */
.fade-up{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .6s ease, transform .6s ease;
}

.fade-up.is-visible{
  opacity:1;
  transform:none;
}