:root {
  --bg-header: #0b0f15;
  --bg-header-2: #0f141b;
  --text: #e9edf1;
  --text-dim: #b6c2cf;
  --brand: #f2b560; /* botón ámbar */
  --brand-hover: #e5a94c;
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --border-light: rgba(255,255,255,.06);
}

html { scroll-behavior: smooth; }

* { box-sizing: border-box; }

/* ====== Header sticky ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--bg-header);
  color: var(--text);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 12px 18px;
}

/* ====== Botón hamburguesa ====== */
.menu-toggle {
  position: relative;
  width: 40px;
  height: 32px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle .bar {
  position: absolute;
  left: 7px;
  right: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .28s ease, opacity .2s ease, top .28s ease;
}

/* Colocación de las 3 barras */
.menu-toggle .bar:nth-child(1) { top: 8px;  }
.menu-toggle .bar:nth-child(2) { top: 15px; }
.menu-toggle .bar:nth-child(3) { top: 22px; }

/* Estado abierto (X) */
.menu-toggle.is-open .bar:nth-child(1) {
  top: 15px;
  transform: rotate(45deg);
}
.menu-toggle.is-open .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open .bar:nth-child(3) {
  top: 15px;
  transform: rotate(-45deg);
}

/* ====== Nav base ====== */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav {
  position: absolute;
  inset: 64px 0 auto 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  background: var(--bg-header-2);
  border-top: 1px solid var(--border-light);
  transition: max-height .35s ease, opacity .35s ease;
}

/* NAV abierto (MÓVIL) */
.nav.is-open {
  max-height: 480px;
  opacity: 1;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 8px 14px 16px;
  list-style: none;
}
.nav__list a {
  display: block;
  padding: 14px 6px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
}
/* boton para agendar */
        .btn-agendar {
            background-color: #ce7216;
            color: white;
            font-weight: bold;
            padding: 0.75rem 1.5rem;
            border-radius: 0.5rem;
            border: none;
        }
        .btn-agendar:hover {
            background-color: #b86312;
        }
        #alerta-disponible, #alerta-no-disponible {
            display: none;
            padding: 1rem;
            margin-top: 1rem;
            border-radius: 0.5rem;
        }
                .modal-backdrop{
            z-index: 1 !important;
        }
/* Desktop */
@media (min-width: 992px) {
  .menu-toggle { display: none; }

  .nav {
    position: static;
    max-height: none;
    opacity: 1;
    overflow: visible;
    background: transparent;
    border: 0;
    display: flex;
  }
  .nav__list {
    flex-direction: row;
    gap: 28px;
    padding: 0;
  }
  .nav__list a {
    border: 0;
    padding: 0;
  }
  /* CTA */
  .cta {
    background: var(--brand);
    color: var(--bg-header);
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: background .2s ease;
  }
  .cta:hover {
    background: var(--brand-hover);
  }
}

/* ====== Responsive ====== */
@media (max-width: 920px) {
  .nav {
    position: absolute;
    inset: 64px 0 auto 0;
    max-height: 0;
    overflow: hidden;
    background: var(--bg-header-2);
    transition: max-height .28s ease;
    border-top: 1px solid var(--border-light);
  }
  .nav.is-open {
    max-height: 360px;
  }
  .nav__list {
    flex-direction: column;
    padding: 8px 14px 16px;
    gap: 0;
  }
  .nav__list li a {
    display: block;
    padding: 14px 6px;
    border-bottom: 1px solid var(--border-light);
  }
  .cta {
    background: var(--brand);
    color: var(--bg-header);
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: background .2s ease;
  }
  .cta:hover {
    background: var(--brand-hover);
  }
  .menu-toggle { display: inline-flex; }
}

/* Accesibilidad */
.sr-only {
  position: absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}
