/* ============================================================
   RIBERA JAZZ CENTER — Global Stylesheet
   Paleta: Negro #0a0a0a | Dorado #C9A84C | Blanco #f5f5f5
   Fuentes: Playfair Display + Inter (Google Fonts)
   ============================================================ */

/* Tipografías: ver fonts.css (autoalojadas) */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --black:       #0a0a0a;
  --black-soft:  #111111;
  --dark:        #1a1a1a;
  --dark-mid:    #222222;
  --gold:        #C9A84C;
  --gold-light:  #e0c06a;
  --gold-dark:   #a07830;
  --white:       #f5f5f5;
  --white-dim:   #cccccc;
  --grey:        #888888;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  --transition:  cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-gold: 0 0 40px rgba(201, 168, 76, 0.25);
  --shadow-dark: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

/* ── Typography Utilities ──────────────────────────────────── */
.serif   { font-family: var(--font-serif); }
.sans    { font-family: var(--font-sans); }
.gold    { color: var(--gold); }
.center  { text-align: center; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ── Section Headings ──────────────────────────────────────── */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 0.5rem;
}

.section-title span {
  color: var(--gold);
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--grey);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.5rem 0 3rem;
}

/* ── Navbar (shared) ───────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  transition: all 0.3s var(--transition);
}

.navbar.scrolled {
  padding: 0.8rem 3rem;
  background: rgba(10, 10, 10, 0.98);
}

.navbar-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.navbar-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.3s;
}

.navbar-back:hover { color: var(--gold); }

.navbar-back svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.navbar-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.3s;
  position: relative;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--transition);
}

.navbar-nav a:hover { color: var(--gold); }
.navbar-nav a:hover::after { width: 100%; }

.btn-nav {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.15em;
  transition: background 0.3s, color 0.3s !important;
}

.btn-nav:hover {
  background: var(--gold) !important;
  color: var(--black) !important;
}

.btn-nav::after { display: none !important; }

/* ── Hamburger ─────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.95) 0%,
    rgba(10,10,10,0.5) 50%,
    rgba(10,10,10,0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 4rem;
  max-width: 900px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--white-dim);
  max-width: 520px;
  line-height: 1.75;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-gold-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-gold-outline:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--dark);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s var(--transition), border-color 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: var(--shadow-gold);
}

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--dark-mid) 0%, #2a2a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.2;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.7;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ── Section padding ───────────────────────────────────────── */
.section {
  padding: 6rem 4rem;
}

.section-dark {
  background: var(--dark);
}

.section-black {
  background: var(--black);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--black-soft);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  padding: 4rem 4rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--grey);
  line-height: 1.8;
  max-width: 300px;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--grey);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--white); }

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  font-size: 0.85rem;
}

.social-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--grey);
}

/* ── Scroll Reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Si el visitante pide menos movimiento (habitual en Windows), el
   contenido aparece directamente en lugar de quedarse invisible. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Gold Accent Line ──────────────────────────────────────── */
.gold-line {
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), transparent);
}

/* ── Tag / Badge ───────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 2px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .section { padding: 5rem 2.5rem; }
  .navbar  { padding: 1rem 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar { padding: 1rem 1.5rem; }
  .navbar.scrolled { padding: 0.8rem 1.5rem; }

  .navbar-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,10,10,0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }

  .navbar-nav.open { display: flex; }
  .navbar-nav a { font-size: 1.2rem; }

  .hamburger { display: flex; z-index: 1001; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 4rem 1.5rem; }
  .hero-content { padding: 3rem 1.5rem; }
  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  footer { padding: 3rem 1.5rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
