/* =======================================================
   OSSYRIS — styles.css (versión estable y depurada)
   Mantiene funcionales header, footer, carruseles, modales
   y layout global.
========================================================== */

/* ---- Paleta principal ---- */
:root {
  --color-background-dark: #0d0d0d;
  --color-brick-gray: #2a2a2a;
  --color-wet-stone: #444444;
  --color-guitar-wood: #7a6045;
  --color-guitar-highlight: #a88c6c;
  --color-rain-sheen: #666666;

  --gradient-alley: linear-gradient(145deg, #0d0d0d 0%, #2a2a2a 40%, #444444 100%);
  --accent: var(--color-guitar-highlight);
  --muted: #cfcfcf;
  --transition: 420ms cubic-bezier(.2, .9, .3, 1);
}

/* ---- Reset & base ---- */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { overflow-y: scroll; }

body {
  font-family: var(--font-main);
  background: url("../img/fondo_ossy_03.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

/* =======================================================
   HEADER GLOBAL
========================================================== */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: linear-gradient(90deg, rgba(0,0,0,0.55), rgba(0,0,0,0.15));
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Logo */
.logo {
  display: block;
  max-height: 50px;
}
.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* Botón hamburguesa (oculto en escritorio) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Navegación */
.main-nav ul {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.main-nav a:hover {
  color: var(--color-guitar-highlight);
}
.main-nav a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
}

/* ---- Menú responsive (tablet / móvil) ---- */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: #0c0c0c;
    border-bottom: 1px solid rgba(179, 138, 90, 0.25);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
    transition: max-height 0.35s ease;
  }
  .main-nav.open {
    max-height: 400px;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  .main-nav ul li {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .main-nav ul li:first-child {
    border-top: none;
  }
  .main-nav a {
    display: block;
    padding: 14px 24px;
  }
  .main-nav a.active {
    border-bottom: none;
    background: rgba(179, 138, 90, 0.12);
    border-left: 3px solid var(--accent);
    padding-left: 21px;
  }
}

/* =======================================================
   BANNERS DE SECCIÓN
========================================================== */
.page-banner {
  height: 130px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 60px;
  background: linear-gradient(90deg, #17130d 0%, #221b12 45%, #0c0c0c 100%);
  border-bottom: 2px solid var(--color-guitar-wood, #7a6045);
}
.page-banner .crumb {
  font-family: var(--font-main);
  color: #8a8a8a;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.page-banner .crumb span {
  color: var(--color-highlight, #d1a470);
}
.page-banner h1 {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
}

@media (max-width: 640px) {
  .page-banner {
    padding: 0 24px;
    height: 115px;
  }
  .page-banner h1 {
    font-size: 1.7rem;
  }
}

/* ---- Variante: banner con texto introductorio integrado (Historia, Merchandising) ---- */
.page-banner.has-intro {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.page-banner .banner-heading {
  flex-shrink: 0;
}
.page-banner .banner-intro {
  flex: 1;
  max-width: 620px;
  margin-top: 0;
  color: #b9b9b9;
  font-family: var(--font-main);
  font-size: 0.8rem;
  line-height: 1.5;
}
.page-banner .banner-intro p {
  margin: 0;
}
.page-banner .banner-intro a {
  color: var(--color-highlight);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s ease;
}
.page-banner .banner-intro a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .page-banner.has-intro {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: auto;
    padding-top: 22px;
    padding-bottom: 22px;
    gap: 8px;
  }
  .page-banner .banner-intro {
    max-width: 100%;
    font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  .page-banner.has-intro {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .page-banner .banner-intro {
    font-size: 0.82rem;
  }
}

/* =======================================================
   TIMELINE / HISTORIA
========================================================== */
.timeline {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 80px 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.timeline-carousel {
  position: relative;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}
.timeline-track {
  display: flex;
  transition: transform 0.6s ease;
  gap: 2rem;
}
.timeline-card {
  flex: 0 0 auto;
  width: 320px; height: 420px;
  background: #111;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.timeline-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}
.timeline-card img { width: 100%; height: 85%; object-fit: cover; }
.timeline-card .card-content {
  padding: 16px; text-align: center; color: #fff;
}
.timeline-btn {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  z-index: 5;
  border-radius: 50%;
}
.timeline-btn.prev { left: -2rem; }
.timeline-btn.next { right: -2rem; }
.timeline-btn:hover { background: #a88c6c; }

/* =======================================================
   MODALES UNIVERSALES (álbum, video, genérico)
========================================================== */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 3000;
}
.modal.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: #111;
  color: #fff;
  max-width: 900px;
  width: 92%;
  padding: 1.5rem;
  border-radius: 12px;
  position: relative;
  transform: translateY(8px) scale(.98);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
  max-height: 90vh;
  overflow: hidden;
  font-weight: 400;
}
.modal.active .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: none; border: none;
  color: #fff; font-size: 1.5rem; cursor: pointer;
  transition: color .2s ease;
}
.modal-close:hover { color: var(--accent); }
.modal-body { 
  padding-top: 0.5rem; 
  max-height: calc(90vh - 3rem); 
  overflow-y: auto; 
}

/* =======================================================
   FOOTER GLOBAL
========================================================== */
.site-footer {
  background: var(--gradient-alley);
  padding: 0.6rem 0.8rem;
  color: #fff;
  text-align: center;
  margin-top: 10px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 auto;
}
.footer-contact-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
}
.footer-email {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
  margin-right: 10px;
}
.footer-email:hover {
  color: var(--color-guitar-highlight);
}
.footer-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-icons a {
  font-size: 1.2rem;
  color: #fff;
  transition: color 0.3s ease;
}
.footer-icons a:hover {
  color: var(--color-guitar-highlight);
}
.newsletter-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.newsletter-form input[type="email"] {
  padding: 0.3rem 0.6rem;
  border: none;
  border-radius: 14px;
  min-width: 170px;
}
.newsletter-form button {
  padding: 0.3rem 0.8rem;
  border: none;
  border-radius: 14px;
  background: var(--color-guitar-wood);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.newsletter-form button:hover {
  background: var(--color-guitar-highlight);
}

/* =======================================================
   EFECTOS Y ANIMACIONES
========================================================== */
.btn-cta {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.12));
  border: 1px solid rgba(255,255,255,0.06);
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.btn-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
/* ==== TIPOGRAFÍA GLOBAL ==== */
body {
  font-family: var(--font-main);
  font-weight: 400;
}

/* Header y Footer personalizados */
.main-header,
.site-footer {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Opcional: resalta los links del menú */
.main-nav ul li a {
  font-family: var(--font-heading);
  font-weight: 400;
  color: #fff;
  transition: color 0.3s ease;
}

.main-nav ul li a:hover {
  color: var(--color-guitar-wood, #b38a5a);
}

/* === ALINEACIÓN GLOBAL DEL FOOTER (corrige alturas distintas entre páginas) === */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  margin-bottom: 40px; /* espacio fijo antes del footer */
}

.page-banner {
  margin-bottom: 20px; /* evita que banners sin padding alteren alturas */
}

.site-footer {
  margin-top: auto;
}


/* =======================================================
   LAYOUT GLOBAL — estructura base con footer independiente
======================================================= */

/* ---- Paleta y variables globales ---- */
:root {
  --color-background-dark: #0d0d0d;
  --color-brick-gray: #2a2a2a;
  --color-wet-stone: #444444;
  --color-guitar-wood: #7a6045;
  --color-guitar-highlight: #a88c6c;
  --color-rain-sheen: #666666;

  --gradient-alley: linear-gradient(145deg, #0d0d0d 0%, #2a2a2a 40%, #444444 100%);
  --accent: var(--color-guitar-highlight);
  --muted: #cfcfcf;
  --transition: 420ms cubic-bezier(.2, .9, .3, 1);
}

/* ---- Reset & estructura base ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-main);
  background: url("../img/fondo_ossy_03.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #fff;
}

/* ---- Contenedor principal ---- */
main {
  flex: 1 0 auto;
  display: block;
  width: 100%;
  padding: 0; /* 🔹 Sin padding para evitar desajustes */
  margin: 0;
}

/* ---- Footer global ---- */
.site-footer {
  flex-shrink: 0;
  width: 100%;
  background: var(--gradient-alley);
  padding: 0.8rem 1rem;
  color: #fff;
  text-align: center;
  z-index: 10;
  position: relative;
}

/* ---- Responsividad del footer ---- */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
}
