/* assets/css/styles.css */

/* ====== Reset básico ====== */
* { box-sizing: border-box; }
html, body { height: 100%; }

/* ====== Sticky footer (footer pegado abajo si hay poco contenido) ====== */
body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main{
  flex: 1 0 auto;
}

/* CLAVE: el footer “se come” el espacio libre y cae al fondo */
.footer{
  margin-top: auto;
}


body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #0a0c10;
  color: #fff;
}


/* ====== Variables ====== */
:root{
  --bg: #0a0c10;
  --fg: #ffffff;
  --muted: rgba(255,255,255,0.70);
  --muted2: rgba(255,255,255,0.45);
  --line: rgba(255,255,255,0.14);
  --accent: #e53935;
  --max: 1200px;
}

/* ====== Accesibilidad ====== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: #fff;
  color: #000;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus { left: 12px; }

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* ====== Navbar ====== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(10,12,16,0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  letter-spacing: 0.20em;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
}

/* ====== Nav (desktop + base links) ====== */
.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  transition: background 140ms ease, color 140ms ease;
}
.nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav .cta-mini {
  border: 1px solid rgba(255,255,255,0.18);
}

/* ====== Hamburguesa (limpia, sin círculo) ====== */
.nav-toggle{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hamburger{
  display: none; /* se activa en móvil */
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  user-select: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 0;
  box-shadow: none;
}

.hamburger span{
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.92);
  border-radius: 2px;
  transition: transform 160ms ease, opacity 160ms ease;
}

/* Menú móvil (base: oculto) */
.mobile-nav{
  display: none; /* solo en móvil */
}

/* ====== Hero ====== */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,12,16,0.65) 0%, rgba(10,12,16,0.78) 55%, rgba(10,12,16,0.92) 100%),
    url("../img/Fondo-gavarnie-web.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(0.95) contrast(1.02);

  /* Zoom suave por transform (GPU-friendly) */
  transform: scale(1.03);
  transform-origin: center;
  will-change: transform;
  animation: heroZoom 22s ease-in-out infinite alternate;
}

/* Animación de zoom (solo transform, no penaliza layout) */
@keyframes heroZoom {
  from { transform: scale(1.03); }
  to   { transform: scale(1.30); }
}

/* Respeta “reducir movimiento” */
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
}

/* “VHS vibe” ligero */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.03),
      rgba(255,255,255,0.03) 1px,
      rgba(0,0,0,0) 3px,
      rgba(0,0,0,0) 6px
    );
  opacity: 0.08;
  mix-blend-mode: overlay;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: radial-gradient(circle at 30% 20%, rgba(229,57,53,0.10), transparent 45%);
  opacity: 0.8;
}

.hero-content {
  position: relative;
  text-align: center;
  width: min(920px, calc(100% - 40px));
  padding: 80px 0 40px;
}

.hero-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 200;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: clamp(28px, 4.2vw, 56px);
  margin: 0 0 14px;
}

.red-frame {
  width: min(300px, 52vw);
  aspect-ratio: 1 / 1.12;
  border: 7px solid var(--accent);
  margin: 26px auto 28px;
  background: transparent;
  pointer-events: none;
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
}

/* Botones */
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 120ms ease, background 120ms ease, border 120ms ease;
  user-select: none;
  cursor: pointer;
}

.btn-primary {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.26);
}
.btn-primary:hover { background: rgba(255,255,255,0.16); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--muted);
}
.btn-secondary:hover { color: #fff; border-color: rgba(255,255,255,0.30); transform: translateY(-1px); }

/* ====== Social icons ====== */
.social-icons{
  margin-top: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  opacity: 0.9;
}



.social-link{
  width: 33px;
  height: 33px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.92);
  transition: transform 120ms ease, opacity 120ms ease;
}

/* Spotify: estilo outline (sin relleno “macizo”) */
.social-link-spotify svg{
  fill: none;              /* anula el fill general */
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* por seguridad, si algo interno hereda fill */
.social-link-spotify svg *{
  fill: none;
}

.social-link:hover{
  transform: translateY(-1px);
  opacity: 1;
}

.social-link svg{
  width: 30px;
  height: 30px;
  fill: currentColor;
  display: block;
}

/* ====== Secciones genéricas ====== */
.section {
  padding: 70px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.section h1,
.section h2 {
  margin: 0 0 16px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 18px;
}

.section p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* Footer */
.footer {
  padding: 50px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--muted2);
  font-size: 12px;
}

.footer a { color: var(--muted); border-bottom: 1px dotted rgba(255,255,255,0.22); }
.footer a:hover { color: #fff; }

/* ====== Responsive navbar ====== */
@media (max-width: 820px) {
  .desktop-nav { display: none; }
  .hamburger { display: inline-flex; }

  .mobile-nav{
    display: flex;
    position: fixed;
    top: 72px;

    left: 50%;
    width: min(var(--max), calc(100% - 40px));

    padding: 12px 18px 14px;
    background: rgba(10,12,16,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.10);

    flex-direction: column;
    gap: 8px;

    align-items: flex-end;

    opacity: 0;
    transform: translate(-50%, -8px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .nav-toggle:checked ~ .mobile-nav{
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
  }

  .nav-toggle:checked + .hamburger span:nth-child(1){
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked + .hamburger span:nth-child(2){
    opacity: 0;
  }
  .nav-toggle:checked + .hamburger span:nth-child(3){
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-nav a{
    font-size: 11px;
    letter-spacing: 0.14em;
    padding: 6px 0;
    border-radius: 0;
    background: transparent;
    border: 0;

    width: 100%;
    text-align: right;
    color: var(--muted);
  }

  .mobile-nav a:hover{
    background: transparent;
    color: #fff;
  }

  .mobile-nav .cta-mini{
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 8px 10px;
    width: auto;
  }
}

/* =========================================================
   MÚSICA: GRID DE PORTADAS (4 por fila en desktop)
   ========================================================= */

.releases-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 por fila en desktop */
  gap: 18px;
  margin-top: 22px;
}

.release{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.release-cover{
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 18px 60px rgba(0,0,0,0.28);
}

.release-cover img{
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;     /* cuadrado tipo portada */
  object-fit: cover;
  object-position: center;
}

.release-title{
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,0.92);
}

.release-link{
  display: inline-flex;
  align-self: flex-start;
  align-items: center;          /* NUEVO: alinea texto e icono en la misma línea */
  gap: 8px;                     /* NUEVO: separación entre "Escuchar" y el icono */
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px dotted rgba(255,255,255,0.22);
  padding-bottom: 2px;
  transition: color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.release-link:hover{
  color: #fff;
  border-color: rgba(255,255,255,0.38);
  transform: translateY(-1px);
}

/* NUEVO: icono play dentro de "Escuchar" */
.release-link .play-icon{
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.release-link .play-icon path{
  fill: currentColor;
}

.release-link:hover .play-icon{
  transform: translateX(1px);
}
.release-link .play-icon{
  transition: transform 140ms ease;
}

/* Breakpoints para adaptarse al ancho:
   - pantallas medianas: 3 columnas
   - tablets: 2 columnas
   - móvil: 1 columna */
@media (max-width: 1100px){
  .releases-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px){
  .releases-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px){
  .releases-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   FONDO PARA LA PÁGINA DE MÚSICA (MISMA FOTO QUE LA HOME)
   ========================================================= */
.music-page{
  position: relative;
  min-height: 100vh;
}

.music-page::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(10,12,16,0.65) 0%,
      rgba(10,12,16,0.78) 55%,
      rgba(10,12,16,0.92) 100%
    ),
    /* url("../img/Fondo-gavarnie-web.jpg"); */
  background-size: cover;
  background-position: center;
  filter: saturate(0.95) contrast(1.02);

  transform: scale(1.03);
  transform-origin: center;
  will-change: transform;
  animation: heroZoom 22s ease-in-out infinite alternate;
}

/* =========================================================
   FONDO PARA LA PÁGINA DE CONTACTO (MISMA FOTO QUE LA HOME)
   ========================================================= */
.contact-page{
  position: relative;
  min-height: 100vh;
}

.contact-page::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(10,12,16,0.65) 0%,
      rgba(10,12,16,0.78) 55%,
      rgba(10,12,16,0.92) 100%
    ),
    /* url("../img/Fondo-gavarnie-web.jpg"); */
  background-size: cover;
  background-position: center;
  filter: saturate(0.95) contrast(1.02);

  transform: scale(1.03);
  transform-origin: center;
  will-change: transform;
  animation: heroZoom 22s ease-in-out infinite alternate;
}
