:root {
  --bg: #0a0707;
  --bg-2: #140c0c;
  --card: #1a1010;
  --fg: #f3eaea;
  --muted: #998a8a;
  --gold: #e63946;          /* accent (red) */
  --gold-glow: #ff5566;
  --red: #b53527;
  --border: #2a1a1a;
  --cal-available: #22e06f;
  --cal-partial: #ffd43b;
  --cal-full: #ff3b3b;
  --shadow-gold: 0 10px 40px -10px rgba(230,57,70,0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
p,
.norma-text,
.faq-a,
.historia p,
.page-sub,
.summary,
td,
textarea {
  text-align: justify;
}

h1, h2, h3, h4,
.hero,
.page-title,
.section-title,
.confirm,
.info-card,
button,
.nav,
.footer-bottom {
  text-align: initial;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(135deg, var(--bg), #1a0808, var(--bg)) fixed;
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, h4 { font-family: 'Cinzel', Georgia, serif; letter-spacing: 0.02em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid rgba(212,178,76,0.3);
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  color: var(--fg);
  font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22,17,13,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212,178,76,0.2);
}
.nav {
  max-width: 1200px; margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-family: 'Cinzel', serif; font-weight: 700; color: var(--gold); letter-spacing: 0.2em; font-size: 1.1rem; }
@media (min-width: 600px) { .brand { font-size: 1.4rem; } }
.nav-links { display: none; gap: 2rem; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { display: none; }
.hamburger { display: flex; flex-direction: column; gap: 5px; padding: 0.5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--gold); }
.mobile-menu { display: none; flex-direction: column; padding: 1rem 1.5rem; border-top: 1px solid rgba(212,178,76,0.2); background: rgba(22,17,13,0.95); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 0.6rem 0; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.1em; }
.mobile-menu a.active { color: var(--gold); }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-block; }
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.btn-gold { background: var(--gold); color: #0a0707; }
.btn-gold:hover { box-shadow: var(--shadow-gold); transform: scale(1.02); }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 1rem 2.5rem; font-family: 'Cinzel', serif; text-transform: uppercase; letter-spacing: 0.2em; }

/* MAIN */
main { flex: 1; }
.container { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 4rem 1.5rem; }

/* HERO */
.hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(230,57,70,0.22), transparent 70%);
}
.hero-content { position: relative; z-index: 1; }
.hero-logo{
  width:360px;
  height:360px;
  object-fit:cover;
  margin-bottom:20px;
}
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--gold);
  letter-spacing: 0.2em;
  text-shadow: 0 0 25px var(--gold-glow);
}
.hero p { color: var(--muted); margin: 1.5rem auto 2.5rem; max-width: 560px; font-size: 1.1rem; }

/* SALAS */
.salas { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 768px) { .salas { grid-template-columns: 1fr 1fr; } }
.sala {
  padding: 2rem;
  border: 1px solid rgba(230,57,70,0.25);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(120,20,20,0.45), #000);
  transition: all 0.3s;
  position: relative;
}
.sala:hover { border-color: rgba(230,57,70,0.7); box-shadow: var(--shadow-gold); }
.sala.coming { background: linear-gradient(135deg, rgba(40,40,40,0.6), #000); opacity: 0.75; }
.sala.coming:hover { border-color: rgba(230,57,70,0.25); box-shadow: none; }
.sala h3 { font-size: 1.8rem; color: var(--gold); margin-bottom: 0.6rem; }
.sala p { color: var(--muted); }
.sala a {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--gold);
  border-bottom: 1px solid rgba(230,57,70,0.4);
  text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em;
}
.sala .coming-badge {
  display: inline-block; margin-top: 1.2rem;
  padding: 0.4rem 0.9rem; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px; color: var(--muted);
  text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.15em;
}

.section-title { font-size: 2.4rem; color: var(--gold); text-align: center; margin-bottom: 2.5rem; }
.page-title { font-size: clamp(2rem, 5vw, 3rem); color: var(--gold); text-align: center; margin-bottom: 1rem; }
.page-sub { text-align: center; color: var(--muted); margin-bottom: 2.5rem; }

/* CALENDARIO */
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; font-size: 0.75rem; }
.legend-item { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); }
.legend-dot { width: 14px; height: 14px; border-radius: 4px; }

.calendar-card {
  border: 1px solid rgba(212,178,76,0.2);
  border-radius: 10px;
  padding: 1.5rem;
  background: rgba(33,24,20,0.5);
}
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cal-head h2 { color: var(--gold); font-size: 1.25rem; text-transform: capitalize; }
.cal-head button { color: var(--gold); padding: 0.4rem 0.8rem; }
.cal-head button:hover { opacity: 0.7; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7,1fr); gap: 0.5rem; text-align: center; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.5rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 0.5rem; }
.cal-day {
  aspect-ratio: 1/1;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,.75);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  box-shadow: inset 0 0 18px rgba(255,255,255,.08);
}
.cal-day:not(:disabled):hover {
  transform: scale(1.08);
  filter: saturate(1.25) brightness(1.15);
  box-shadow: 0 0 18px rgba(255,255,255,.18);
}
.cal-day:disabled { cursor: not-allowed; opacity: 0.7; }
.cal-day.past { background: transparent; opacity: 0.3; color: var(--muted); }
.cal-day.selected { box-shadow: var(--shadow-gold); border-color: var(--gold) !important; }

/* FORM */
.form-card {
  margin-top: 2.5rem;
  border: 1px solid rgba(212,178,76,0.3);
  border-radius: 10px;
  padding: 2rem;
  background: rgba(33,24,20,0.7);
}
.form-card h2 { color: var(--gold); font-size: 1.5rem; margin-bottom: 0.4rem; }
.form-card .sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

label.field-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gold); margin-bottom: 0.5rem; }

.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
@media (min-width: 600px) { .hours-grid { grid-template-columns: repeat(4,1fr); } }
.hour-btn {
  padding: 0.85rem 0;
  border: 2px solid transparent;
  border-radius: 6px;
  font-weight: 600;
  transition: transform 0.15s;
  background: rgba(76,175,107,0.25);
}
.hour-btn:not(:disabled):hover { transform: scale(1.05); }
.hour-btn.selected { background: var(--cal-available); border-color: var(--gold); }
.hour-btn:disabled { background: rgba(181,53,39,0.35); cursor: not-allowed; opacity: 0.7; }

.form-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .full { grid-column: 1 / -1; } }

.summary {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(212,178,76,0.4);
  border-radius: 8px;
  background: rgba(22,17,13,0.5);
}
.summary h3 { color: var(--gold); font-size: 1.1rem; margin-bottom: 0.75rem; }
.row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 0.15rem 0; }
.row.bold { font-weight: 700; }
.row.highlight { color: var(--gold); font-size: 1rem; }
.divider { border-top: 1px solid rgba(212,178,76,0.2); margin: 0.5rem 0; }

/* NORMAS / FAQ / HISTORIA */
.norma-item {
  display: flex; gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(212,178,76,0.2);
  border-radius: 8px;
  background: rgba(33,24,20,0.5);
  margin-bottom: 0.85rem;
}
.norma-num { color: var(--gold); font-family: 'Cinzel', serif; font-size: 1.5rem; flex-shrink: 0; }
.norma-text { color: var(--muted); line-height: 1.6; }

.faq-item {
  border: 1px solid rgba(212,178,76,0.2);
  border-radius: 8px;
  background: rgba(33,24,20,0.5);
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.faq-q {
  width: 100%; padding: 1rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; text-align: left;
}
.faq-q:hover { background: rgba(212,178,76,0.05); }
.faq-q .plus { color: var(--gold); font-size: 1.5rem; }
.faq-a { padding: 0 1.25rem 1rem; color: var(--muted); border-top: 1px solid rgba(212,178,76,0.1); padding-top: 0.75rem; }

.historia p { color: var(--muted); line-height: 1.8; margin-bottom: 1.2rem; }
.historia .quote { color: var(--gold); font-style: italic; font-family: 'Cinzel', serif; }

/* CONFIRMACIÓN */
.confirm { text-align: center; padding: 5rem 1.5rem; max-width: 560px; margin: 0 auto; }
.confirm h1 { color: var(--gold); font-size: 2.2rem; margin-bottom: 1.5rem; }
.tick {
  width: 100px; height: 100px; border-radius: 50%;
  border: 4px solid var(--gold); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; margin: 0 auto 2rem; box-shadow: var(--shadow-gold);
}
.confirm p { color: var(--muted); margin-bottom: 0.5rem; }

/* ADMIN */
.admin-login { max-width: 380px; margin: 6rem auto; padding: 0 1.5rem; }
.admin-login h1 { color: var(--gold); text-align: center; font-size: 2rem; margin-bottom: 1.5rem; }
.admin-login form { display: flex; flex-direction: column; gap: 1rem; }

.admin-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.admin-head h1 { color: var(--gold); font-size: 2rem; }
.logout { color: var(--muted); font-size: 0.85rem; }
.logout:hover { color: var(--gold); }

.stats { display: grid; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(3,1fr); } }
.stat-card {
  border: 1px solid rgba(212,178,76,0.2);
  border-radius: 10px;
  padding: 1.5rem;
  background: rgba(33,24,20,0.5);
}
.stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.stat-value { color: var(--gold); font-family: 'Cinzel', serif; font-size: 2.4rem; margin-top: 0.4rem; }

.tabs { display: flex; gap: 0.5rem; border-bottom: 1px solid rgba(212,178,76,0.2); margin-bottom: 1.5rem; flex-wrap: wrap; }
.tab { padding: 0.6rem 1rem; color: var(--muted); text-transform: capitalize; }
.tab.active { color: var(--gold); border-bottom: 2px solid var(--gold); margin-bottom: -1px; }

.table-wrap { overflow-x: auto; border: 1px solid rgba(212,178,76,0.2); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
thead { background: var(--card); color: var(--gold); }
th, td { text-align: left; padding: 0.75rem; }
tbody tr { border-top: 1px solid rgba(212,178,76,0.1); }
tbody tr:hover { background: rgba(33,24,20,0.3); }
.del-btn { color: var(--red); }
.del-btn:hover { text-decoration: underline; }
.comment-cell { max-width: 220px; color: var(--muted); font-style: italic; }

.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem;
  border: 1px solid rgba(212,178,76,0.2);
  border-radius: 8px; background: rgba(33,24,20,0.5);
  margin-bottom: 1rem;
  cursor: pointer;
}
.toggle-row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--gold); }
.hour-toggle {
  padding: 0.55rem 1rem;
  border: 1px solid rgba(212,178,76,0.3);
  border-radius: 6px;
  margin: 0.25rem;
}
.hour-toggle.closed { background: rgba(181,53,39,0.4); border-color: var(--red); }
.hour-toggle:hover { border-color: var(--gold); }

/* FOOTER */
.site-footer {
  border-top: 1px solid rgba(212,178,76,0.2);
  background: rgba(22,17,13,0.8);
  margin-top: 4rem;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid; gap: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3,1fr); } }
.footer-grid h3, .footer-grid h4 { color: var(--gold); margin-bottom: 0.7rem; }
.footer-grid p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(212,178,76,0.1); padding: 1rem; text-align: center; font-size: 0.75rem; color: var(--muted); }

.alert { padding: 0.85rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.alert-success { background: rgba(76,175,107,0.2); color: #b8e6c7; }
.alert-error { background: rgba(181,53,39,0.25); color: #f0c0bb; }

.historia-text {
  text-align: justify;
}

.whatsapp-icon{
  width:20px;
  height:20px;
  object-fit:contain;
  vertical-align:middle;
  margin-right:8px;
}

.contact-phone{
  display:flex;
  align-items:center;
}

/* ===== HERO PRINCIPAL ===== */

.hero-banner{
  position: relative;
  overflow: hidden;
}

.hero-banner::before{
  content:"";
  position:absolute;
  inset:0;

  background-image:url("Imagenes/BannerPrincipal.jpeg");
  background-size:contain;
  background-position:center;
  background-repeat:no-repeat;
  background-color:#000;

  filter:brightness(.99);

  z-index:0;
}

.hero-banner > *{
  position:relative;
  z-index:1;
}


/* ===== BANNER HISTORIA ===== */

.historia-banner{
  position:relative;
  overflow:hidden;
  border-radius:20px;
}

.historia-banner::before{
  content:"";
  position:absolute;
  inset:0;

  background-image:url("Imagenes/BannerBilletes.png");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;

  filter:brightness(.99);

  z-index:0;
}

.historia-banner > *{
  position:relative;
  z-index:1;
}