:root {
  --eucalipto: #65847A;
  --eucalipto-flyout: rgba(101, 132, 122, 0.96);
  --eucalipto-overlay: rgba(95, 126, 116, 0.88);
  --fondo: #111312;
  --sidebar-w: 106px;
  --topbar-mobile-h: 72px;
  --fondo-tarjeta: #ffffff;
  --fondo-suave: #f1efe9;
  --texto-principal: #181818;
  --texto-secundario: #5a5852;
  --borde-suave: #e2dfd7;
  --acento-dorado: #9e7b3e;
  --acento-dorado-suave: #f7f2e7;
  --exito-texto: #1e5631;
  --exito-fondo: #edf7f0;
  --error-texto: #8a1f1f;
  --error-fondo: #fdf0f0;
  --radio: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--fondo);
  color: #f5f5f5;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
}

/* === BARRA LATERAL VERDE EUCALIPTO === */
.sidebar-eucalipto {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--eucalipto);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.nav-top-toggle {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  opacity: 0.94;
  transition: opacity 0.2s ease;
}

.nav-top-toggle:hover {
  opacity: 1;
}

.nav-top-toggle svg {
  width: 40px;
  height: 40px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.nav-centro {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: center;
}

.nav-bloque {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.nav-icono-btn {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  border-radius: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.18s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-bloque:hover .nav-icono-btn,
.nav-icono-btn.activo {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.nav-icono-btn svg {
  width: 42px;
  height: 42px;
  stroke: #ffffff;
  stroke-width: 1.45;
  fill: none;
}

/* === SUBMENÚ DESPLEGABLE LATERAL === */
.flyout-menu {
  position: absolute;
  left: var(--sidebar-w);
  top: 0;
  min-width: 265px;
  background: var(--eucalipto-flyout);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: none;
  padding: 22px 26px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  box-shadow: 12px 12px 30px rgba(0, 0, 0, 0.35);
  z-index: 95;
}

.nav-bloque:hover .flyout-menu,
.nav-bloque.abierto .flyout-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.flyout-titulo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flyout-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.flyout-lista a,
.flyout-lista button {
  background: none;
  border: none;
  color: #ffffff;
  text-decoration: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.flyout-lista a:hover,
.flyout-lista button:hover {
  opacity: 1;
  transform: translateX(4px);
}

.flyout-lista a::before,
.flyout-lista button::before {
  content: "›";
  font-size: 17px;
  opacity: 0.85;
}

.marca-vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* === LIENZO PRINCIPAL Y FORMULARIO === */
.main-lienzo {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  padding: 36px 24px 88px;
  display: flex;
  flex-direction: column;
}

.reserva-page {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  color: var(--texto-principal);
}

.reserva-header {
  margin-bottom: 24px;
}

.reserva-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8ab0a4;
}

.reserva-header h1 {
  margin: 0 0 8px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 4.5vw, 46px);
  line-height: 1.12;
  font-weight: 600;
  color: #ffffff;
}

.reserva-subtitulo {
  margin: 0;
  font-size: 15px;
  color: #d0d7d4;
}

.reserva-wrapper {
  background: var(--fondo-tarjeta);
  border: 1px solid var(--borde-suave);
  border-radius: var(--radio);
  padding: 24px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.campo-oculto {
  display: none;
}

.reserva-bloque {
  border: 1px solid var(--borde-suave);
  border-radius: var(--radio);
  padding: 18px;
  margin: 0 0 20px;
  background: var(--fondo-tarjeta);
  min-width: 0;
}

.reserva-bloque legend {
  padding: 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--texto-principal);
}

.reserva-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.campo label {
  font-size: 13px;
  font-weight: 600;
  color: var(--texto-principal);
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  max-width: 100%;
  padding: 11px 13px;
  font-size: 15px;
  font-family: inherit;
  color: var(--texto-principal);
  background-color: var(--fondo-tarjeta);
  border: 1px solid #cfc9bc;
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--eucalipto);
  box-shadow: 0 0 0 3px rgba(101, 132, 122, 0.22);
}

.campo textarea {
  resize: vertical;
  min-height: 68px;
}

/* Calendario mensual completo + franjas horarias */
.calendario-panel {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 20px;
  align-items: start;
}

.calendario-caja {
  background: var(--fondo-suave);
  border: 1px solid var(--borde-suave);
  border-radius: 10px;
  padding: 14px;
  min-width: 0;
}

.calendario-controles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.calendario-mes {
  font-size: 15px;
  font-weight: 600;
  text-transform: capitalize;
  color: var(--texto-principal);
}

.btn-mes {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #cfc9bc;
  background: var(--fondo-tarjeta);
  color: var(--texto-principal);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-mes:hover {
  background: var(--acento-dorado-suave);
  border-color: var(--acento-dorado);
}

.calendario-dias-semana {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--texto-secundario);
}

.calendario-grilla {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.dia-celda {
  aspect-ratio: 1 / 1;
  min-height: 36px;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--fondo-tarjeta);
  color: var(--texto-principal);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dia-celda:hover:not(:disabled) {
  border-color: var(--eucalipto);
  background: rgba(101, 132, 122, 0.14);
}

.dia-celda.dia-vacio {
  background: transparent;
  cursor: default;
}

.dia-celda:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.dia-celda.dia-seleccionado {
  background: var(--eucalipto);
  color: #ffffff;
  border-color: var(--eucalipto);
}

.horas-caja {
  background: var(--fondo-suave);
  border: 1px solid var(--borde-suave);
  border-radius: 10px;
  padding: 14px;
  min-width: 0;
}

.horas-titulo {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--texto-principal);
}

.fecha-seleccionada {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--eucalipto);
}

.reserva-acciones {
  margin-top: 8px;
}

.btn-reservar {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--eucalipto);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn-reservar:hover:not(:disabled) {
  background-color: #557369;
}

.btn-reservar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.reserva-estado {
  margin-top: 16px;
  font-size: 14px;
  border-radius: 8px;
}

.reserva-estado.exito {
  padding: 14px;
  background: var(--exito-fondo);
  color: var(--exito-texto);
  border: 1px solid #b8dfc4;
}

.reserva-estado.error {
  padding: 14px;
  background: var(--error-fondo);
  color: var(--error-texto);
  border: 1px solid #efc2c2;
}

/* === BOTÓN WHATSAPP CRISTALIZADO CON ETIQUETA FIJA === */
.wa-floating-container {
  position: fixed;
  bottom: 32px;
  right: 20px;
  z-index: 65;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.wa-floating-label {
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.wa-glass-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(101, 132, 122, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}

.wa-glass-btn:hover {
  transform: translateY(-3px) scale(1.04);
  background: var(--eucalipto);
}

/* === ADAPTACIÓN MÓVIL === */
@media (max-width: 768px) {
  .sidebar-eucalipto {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    max-width: 100vw;
    height: var(--topbar-mobile-h);
    flex-direction: row;
    justify-content: center;
    padding: 0 8px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .nav-top-toggle {
    display: none;
  }

  .nav-centro {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    gap: 0;
  }

  .nav-bloque {
    width: auto;
    position: static;
  }

  .nav-icono-btn {
    width: 50px;
    height: 50px;
    border-radius: 11px;
  }

  .nav-icono-btn svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
  }

  .marca-vertical {
    display: none;
  }

  .flyout-menu {
    left: 0;
    right: 0;
    top: var(--topbar-mobile-h);
    min-width: 100%;
    border-left: none;
    border-right: none;
  }

  .main-lienzo {
    margin-left: 0;
    width: 100%;
    max-width: 100vw;
    padding: 18px 10px 96px;
  }

  .reserva-page {
    max-width: 100%;
  }

  .reserva-wrapper {
    padding: 12px;
    border-radius: 10px;
  }

  .reserva-bloque {
    padding: 12px 10px;
    margin-bottom: 16px;
  }

  .reserva-bloque legend {
    font-size: 13px;
    padding: 0 4px;
  }

  .reserva-grid-2,
  .calendario-panel {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .calendario-caja,
  .horas-caja {
    padding: 10px;
  }

  .calendario-dias-semana {
    font-size: 11px;
    gap: 2px;
  }

  .calendario-grilla {
    gap: 3px;
  }

  .dia-celda {
    min-height: 34px;
    font-size: 13px;
    border-radius: 6px;
  }

  .campo textarea {
    min-height: 64px;
  }

  .wa-floating-container {
    bottom: 18px;
    right: 12px;
    gap: 3px;
  }

  .wa-floating-label {
    font-size: 9px;
  }

  .wa-glass-btn {
    width: 44px;
    height: 44px;
  }
}