/* ===== Son de Sueños · Hoja de estilos ===== */
:root {
  --bg: #050208;
  --bg-soft: #0d0712;
  --gold: #c9a84c;
  --gold-light: #e6cd7e;
  --purple: #9b6bd6;
  --purple-light: #c79df0;
  --text: #f3eefa;
  --muted: #b7adc4;
  --border: rgba(201, 168, 76, 0.18);
  --radius: 18px;
  --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ===== Tipografía utilitaria ===== */
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 45%, var(--purple) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-eyebrow {
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}
.section-desc { color: var(--muted); max-width: 560px; margin: .8rem auto 0; }

/* ===== Botones ===== */
.btn {
  display: inline-block;
  padding: .85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .03em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary {
  background: linear-gradient(120deg, var(--gold), var(--gold-light) 50%, var(--purple));
  color: #1a0f23;
  box-shadow: 0 10px 30px rgba(201, 168, 76, 0.25);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(155, 107, 214, 0.4); }
.btn-ghost { border-color: var(--border); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--gold); transform: translateY(-3px); }
.btn-block { width: 100%; }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 100; transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
  padding: 1.1rem 0;
}
.navbar.scrolled {
  background: rgba(5, 2, 8, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(0,0,0,.5);
  padding: .7rem 0;
}
.nav-container {
  max-width: var(--max); margin: 0 auto; padding: 0 1.4rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: .7rem; }
.nav-logo {
  height: 44px; width: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(201,168,76,0.45);
}
.nav-brand-text {
  font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.35rem;
  background: linear-gradient(120deg, var(--gold-light), var(--purple));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 1.9rem; }
.nav-links a { font-size: .9rem; color: var(--muted); transition: color .25s ease; position: relative; }
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--purple)); transition: width .25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); transition: .3s; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 7rem 1.4rem 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../images/logo.jpeg') center/contain no-repeat;
  opacity: 0.13;
  filter: blur(4px) saturate(1.6);
  transform: scale(1.15);
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(circle at 50% 40%, rgba(155,107,214,.18), transparent 60%),
              linear-gradient(to bottom, rgba(5,2,8,.4), var(--bg) 92%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-eyebrow {
  font-size: .85rem; letter-spacing: .4em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 700;
  font-size: clamp(3rem, 10vw, 6rem); line-height: 1;
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 40%, var(--purple-light));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle { color: var(--muted); margin: 1.4rem auto 2.2rem; max-width: 540px; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.scroll-line { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* ===== Secciones ===== */
.section { max-width: var(--max); margin: 0 auto; padding: 6rem 1.4rem; }
.section-alt { max-width: 100%; background: var(--bg-soft); }
.section-alt > .section-head, .section-alt > .genres-grid, .section-alt > .contact-form { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 3rem; }

/* ===== Eventos ===== */
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.8rem; }
.event-card {
  position: relative; background: linear-gradient(160deg, rgba(201,168,76,.06), rgba(155,107,214,.04));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.8rem;
  overflow: hidden; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.event-card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.event-card--poster { padding: 0; display: flex; flex-direction: column; max-width: 440px; width: 100%; margin: 0 auto; justify-self: center; }
.event-poster { width: 100%; overflow: hidden; border-bottom: 1px solid var(--border); }
.event-poster img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.event-card--poster:hover .event-poster img { transform: scale(1.03); }
.event-card--poster .event-body { padding: 1.8rem; display: flex; flex-direction: column; flex: 1; }
.event-emoji { font-size: 2.6rem; margin-bottom: 1rem; }
.event-title { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600; color: var(--text); }
.event-artist { color: var(--purple-light); font-size: .9rem; margin-bottom: 1.2rem; letter-spacing: .03em; }
.event-meta { display: flex; flex-direction: column; gap: .4rem; color: var(--muted); font-size: .9rem; margin-bottom: 1.6rem; }
.event-meta span { display: flex; align-items: center; gap: .55rem; }
.event-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: auto; }
.event-price-wrap { display: flex; flex-direction: column; }
.event-price {
  font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 700; line-height: 1;
  background: linear-gradient(120deg, var(--gold-light), var(--gold)); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}
.event-price-note { font-size: .72rem; color: var(--muted); letter-spacing: .04em; margin-top: .2rem; }

/* ===== Géneros ===== */
.genres-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.2rem; }
.genre-card {
  text-align: center; padding: 2rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: rgba(255,255,255,.015);
  transition: transform .3s ease, background .3s ease;
}
.genre-card:hover { transform: translateY(-6px); background: rgba(155,107,214,.08); }
.genre-emoji { font-size: 2.2rem; margin-bottom: .7rem; }
.genre-name { font-weight: 500; letter-spacing: .04em; }

/* ===== Nosotros ===== */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3.5rem; align-items: center; }
.about-media img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.about-text p { color: var(--muted); margin-top: 1rem; }
.about-text strong { color: var(--gold-light); }
.about-stats { display: flex; gap: 2.5rem; margin-top: 2rem; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 700;
  background: linear-gradient(120deg, var(--gold-light), var(--purple)); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: .8rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

/* ===== Contacto ===== */
.contact-form { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input, .contact-form textarea, .modal input {
  width: 100%; padding: .9rem 1.1rem; background: rgba(255,255,255,.03);
  border: 1px solid var(--border); border-radius: 12px; color: var(--text);
  font-family: inherit; font-size: .95rem; transition: border-color .25s ease;
}
.contact-form input:focus, .contact-form textarea:focus, .modal input:focus {
  outline: none; border-color: var(--gold);
}
.contact-form textarea { resize: vertical; }
.form-feedback { color: var(--gold-light); font-size: .9rem; min-height: 1.2rem; text-align: center; }

/* ===== Footer ===== */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 3rem 1.4rem 2rem; }
.footer-inner {
  max-width: var(--max); margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-logo {
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201,168,76,0.4);
}
.footer-brand div { display: flex; flex-direction: column; }
.footer-name { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--text); }
.footer-tag { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: .9rem; transition: color .25s ease; }
.footer-links a:hover { color: var(--gold-light); }
.footer-legal {
  max-width: var(--max); margin: 2rem auto 0; padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.06); text-align: center; color: var(--muted); font-size: .82rem;
}
.footer-legal p { margin-top: .3rem; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: rgba(3, 1, 6, 0.78); backdrop-filter: blur(6px); padding: 1.4rem;
}
.modal-overlay.active { display: flex; }
.modal {
  position: relative; width: 100%; max-width: 440px;
  background: linear-gradient(160deg, #130b1c, #0a0610);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 2.4rem 2rem;
  animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 1rem; right: 1.2rem; background: none; border: none;
  color: var(--muted); font-size: 1.8rem; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--gold); }
.modal-title { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; color: var(--text); }
.modal-event { color: var(--purple-light); margin-bottom: 1.5rem; font-size: .95rem; }
.modal label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }
.modal label input { margin-top: .4rem; }
.modal-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.modal-total { text-align: right; margin-bottom: 1rem; }
.modal-total span { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.modal-total strong {
  font-family: 'Cormorant Garamond', serif; font-size: 1.7rem;
  background: linear-gradient(120deg, var(--gold-light), var(--gold)); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 360px; margin: 0 auto; }
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 72%; max-width: 320px;
    flex-direction: column; justify-content: center; gap: 2rem; padding: 2rem;
    background: rgba(10, 5, 18, .97); backdrop-filter: blur(14px); transition: right .35s ease;
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; z-index: 110; }
  .form-row { grid-template-columns: 1fr; }
}
