:root {
  --red: #740d0d;
  --red-dark: #500707;
  --black: #0a0908;
  --cream: #f4efe4;
  --white: #ffffff;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  text-align: center;
  letter-spacing: 1px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  padding: 16px 38px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--cream); color: var(--black); }
.btn-light:hover { background: var(--white); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #1c1a18; }

/* TOPBAR */
.topbar {
  background: var(--red);
  text-align: center;
  padding: 6px 0;
  position: sticky;
  top: 0;
  z-index: 200;
}
.logo { height: 170px; margin: 0 auto; }

/* HERO */
.hero {
  position: relative;
  min-height: 92vh;
  background: linear-gradient(180deg, rgba(10,8,7,0.35) 0%, rgba(10,8,7,0.15) 35%, rgba(10,8,7,0.75) 100%), url('../images/hero-piano.jpg') center 30%/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 32px 5%;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.nav-links a.active { font-weight: 700; }
.nav-links a:hover { opacity: 0.75; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  display: block;
}

.hero-content {
  padding: 0 6% 12%;
  max-width: 900px;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.15;
  margin-bottom: 40px;
}

/* RESERVAS */
.reservas {
  background: var(--white);
  color: var(--black);
  padding: 90px 0;
}
.reservas h2 { color: var(--black); text-align: left; }
.reservas .subtitle {
  margin-top: 18px;
  font-size: 1.15rem;
  max-width: 700px;
}
.reservas-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}

.calendar {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--font-mono);
}
.calendar-header {
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.95rem;
}
.calendar-header button {
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 0.7rem;
}
.calendar-weekdays, .calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}
.calendar-weekdays span {
  padding: 10px 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #555;
  border-bottom: 1px solid #eee;
}
.calendar-days button {
  aspect-ratio: 1;
  border: none;
  background: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--black);
}
.calendar-days button:disabled {
  color: #ccc;
  cursor: default;
}
.calendar-days button.today { font-weight: 700; }
.calendar-days button.selected {
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
}
.calendar-days button:not(:disabled):hover { background: #f0f0f0; }

.booking-form { font-family: var(--font-mono); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--black);
}
.btn-reservar { margin: 10px 0 30px; }
.waitlist-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.waitlist-btn {
  width: 100%;
  padding: 14px;
  background: var(--white);
  border: 1px solid #ccc;
  font-family: var(--font-mono);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}
.waitlist-btn:hover { background: #f5f5f5; }

/* CARTA */
.carta {
  background: var(--black);
  padding: 90px 5%;
  text-align: center;
}
.carta h2 { margin-bottom: 50px; }
.carta-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 4px;
  margin-bottom: 50px;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}
.carta-img {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  height: 100%;
}
.carta-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.carta-img:hover img { transform: scale(1.05); }

/* HISTORIAS */
.historias {
  position: relative;
  background: var(--red);
  padding: 100px 5%;
  overflow: hidden;
}
.historias h2 { margin-bottom: 50px; position: relative; z-index: 2; }
.historias-ilustracion {
  position: absolute;
  left: -5%;
  top: 50%;
  transform: translateY(-45%);
  width: 55%;
  max-width: 650px;
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
}
.historias-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin-left: auto;
  text-align: left;
}
.historias-content p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* CLIENTES */
.clientes {
  background: var(--black);
  padding: 90px 5%;
  text-align: center;
}
.clientes h2 { margin-bottom: 60px; }
.testimonios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  max-width: 1300px;
  margin: 0 auto;
  text-align: left;
}
.testimonios blockquote { display: flex; flex-direction: column; }
.quote-mark {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--white);
  margin-bottom: 10px;
}
.testimonios p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #eee;
  margin-bottom: 20px;
}
.testimonios cite {
  font-style: normal;
  font-weight: 500;
}

/* INSTAGRAM */
.instagram {
  background: var(--red);
  padding: 90px 5%;
  text-align: center;
}
.instagram h2 { margin-bottom: 50px; }
.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 1300px;
  margin: 0 auto 50px;
}
.insta-item {
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.insta-item:hover img { transform: scale(1.05); }
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--white);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  padding-left: 4px;
}

/* FOOTER */
.footer { background: var(--black); }
.footer-top {
  text-align: center;
  padding: 90px 5% 70px;
}
.footer-top h2 { margin-bottom: 40px; }
.footer-top h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  margin: 40px 0 14px;
}
.footer-top p { font-size: 1.05rem; margin-bottom: 4px; }
.footer-top p.italic { font-style: italic; color: #ccc; }
.footer-top a { color: var(--white); text-decoration: none; }
.footer-top a:hover { text-decoration: underline; }
.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 1.05rem;
}
.social-links span { color: #777; }

.footer-bg {
  position: relative;
  min-height: 60vh;
  background: linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0.15)), url('../images/footer-bg.jpg') center 20%/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-overlay { text-align: center; padding: 40px; }
.tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--white);
}

.copyright {
  text-align: center;
  padding: 26px 5%;
  font-size: 0.8rem;
  color: #888;
  border-top: 1px solid #222;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 4px; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 30px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .reservas-grid { grid-template-columns: 1fr; }
  .testimonios { grid-template-columns: 1fr; gap: 40px; }
  .carta-grid { grid-template-columns: 1fr 1fr; }
  .carta-grid > *:first-child { grid-column: span 2; }
  .historias-ilustracion { display: none; }
  .historias-content { margin: 0 auto; text-align: center; }
}

@media (max-width: 640px) {
  .nav { padding: 22px 5%; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 70%;
    background: var(--red);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 300;
  }
  .nav-links.open { transform: translateX(0); }
  .insta-grid { grid-template-columns: 1fr; }
  .carta-grid { grid-template-columns: 1fr; }
  .carta-grid > *:first-child { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; }
  .logo { height: 100px; }
}
