:root {
  /* Colores base: cámbialos después por los oficiales de La Casita */
  --color-primario: #ffc107;
  --color-primario-oscuro: #ffb300;
  --color-fondo: #fff8e1;
  --color-texto: #222;
  --color-borde: #e0e0e0;
  --color-exito: #0a7f2e;
  --color-error: #b00020;
  --radio: 14px;
  --sombra: 0 4px 10px rgba(0,0,0,0.08);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-fondo);
  color: var(--color-texto);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-primario);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--sombra);
}

header .logo a {
  font-weight: 700;
  color: black;
  font-size: 1.1rem;
  text-decoration: none;
}

header nav a {
  color: black;
  text-decoration: none;
  font-weight: 600;
  margin-left: 1rem;
  font-size: 0.95rem;
}
header nav a:hover { opacity: 0.8; }

.contenedor {
  background: white;
  margin: 1.2rem auto;
  width: 92%;
  max-width: 420px;
  padding: 1.5rem;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

h2 {
  text-align: center;
  margin-top: 0;
  font-size: 1.4rem;
  color: #333;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

input {
  padding: 0.9rem;
  font-size: 1rem;
  border: 1px solid var(--color-borde);
  border-radius: var(--radio);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}
input:focus {
  border-color: var(--color-primario);
  box-shadow: 0 0 0 3px rgba(255,193,7,0.3);
}

button {
  padding: 1rem;
  font-size: 1rem;
  border: none;
  border-radius: var(--radio);
  background: var(--color-primario);
  color: black;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--sombra);
  transition: background 0.2s, transform 0.1s;
}
button:active {
  transform: scale(0.97);
  background: var(--color-primario-oscuro);
}

p, .mensaje {
  text-align: center;
  font-size: 0.95rem;
}

.error {
  color: var(--color-error);
  background: #ffebee;
  padding: 0.6rem 1rem;
  border-radius: var(--radio);
}

.success {
  color: var(--color-exito);
  background: #e8f5e9;
  padding: 0.6rem 1rem;
  border-radius: var(--radio);
}

@media (max-width: 480px) {
  header .logo a { font-size: 1rem; }
  .contenedor { width: 94%; margin-top: 1rem; padding: 1.2rem; }
  button, input { font-size: 1rem; }
}
body {
  padding-bottom: 70px; /* evita que la barra tape contenido */
}
/* === Versión móvil compacta === */
@media (max-width: 600px) {
  header {
    justify-content: center;
    padding: 8px 0;
  }
  header nav.desktop-nav {
    display: none; /* ocultar enlaces en móvil */
  }
  header .logo a {
    font-size: 1.1rem;
  }
}
/* === DISPONIBILIDAD (No Hay / Ya Hay) === */
.lista-disponibilidad {
  max-width: 420px;
  margin: 1rem auto;
}

.item {
  background: #fff;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 1rem;
  margin-bottom: 0.8rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.item:active {
  transform: scale(0.98);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.item.no_hay {
  border-left: 6px solid var(--color-error);
}

.item.ya_hay {
  border-left: 6px solid var(--color-exito);
}

.item h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
}

.item small {
  display: block;
  color: #666;
  margin-top: 4px;
  font-size: 0.85rem;
}

.item .comentario {
  font-size: 0.9rem;
  color: #444;
  margin-top: 6px;
}

/* === Botones dentro de items === */
.item button {
  margin-top: 8px;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: var(--radio);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
}

.item .btn-ya {
  background: var(--color-exito);
}
.item .btn-ya:hover {
  background: #087a2a;
}
.item .btn-no {
  background: var(--color-error);
}
.item .btn-no:hover {
  background: #9c0017;
}

/* === Botón flotante + === */
.fab {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primario);
  color: black;
  font-size: 2rem;
  font-weight: bold;
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  z-index: 50;
}
.fab:active {
  transform: scale(0.95);
}

/* === Modal === */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 200;
}

.modal-content {
  background: white;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  width: 90%;
  max-width: 400px;
  padding: 1rem;
  animation: aparecer 0.2s ease;
}

@keyframes aparecer {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal input, .modal textarea {
  width: 100%;
  padding: 10px;
  margin: 6px 0;
  border: 1px solid var(--color-borde);
  border-radius: var(--radio);
  font-size: 1rem;
}

/* === Botones del modal === */
.modal button {
  width: 100%;
  margin-top: 8px;
  padding: 0.9rem;
  font-size: 1rem;
  border: none;
  border-radius: var(--radio);
  cursor: pointer;
  font-weight: 600;
  box-shadow: var(--sombra);
  transition: background 0.2s, transform 0.1s;
}

.modal .btn-no {
  background: var(--color-error);
  color: #fff;
}
.modal .btn-no:hover {
  background: #9c0017;
}

.modal .btn-

