/* forms.css — estilos compartidos para formularios de lead y página de reservas
   Se incluye con: <link rel="stylesheet" href="../assets/css/forms.css">
   (ajustar ruta relativa según profundidad)
*/

/* === SECCIÓN FORMULARIO ======================================== */
.section-form {
  padding: 4rem 22px;
}
.section-form .container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0;
}
.section-form__intro {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-form__intro h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5rem;
}
.section-form__intro p {
  color: #a89fc2;
  font-size: 1rem;
  margin: 0;
}

/* === TARJETA DEL FORMULARIO =================================== */
.lead-form-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 2rem;
  max-width: 680px;
  margin: 0 auto;
}

/* === GRID DE CAMPOS =========================================== */
.lf-row {
  display: grid;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
}
@media (min-width: 580px) {
  .lf-row--2 { grid-template-columns: 1fr 1fr; }
}

/* === LABEL + INPUT ============================================ */
.lf-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c4bbd8;
  letter-spacing: 0.02em;
}
.lf-label input,
.lf-label select,
.lf-label textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0.7rem 0.875rem;
  font-size: 0.97rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: #edeaf6;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: none;
  -webkit-appearance: none;
}
.lf-label select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a89fc2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.25rem;
}
.lf-label select option {
  background: #1b1828;
  color: #edeaf6;
}
.lf-label textarea {
  resize: vertical;
  min-height: 110px;
}
.lf-label input:focus,
.lf-label select:focus,
.lf-label textarea:focus {
  outline: none;
  border-color: var(--primary, #7c3aed);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}
.lf-label input::placeholder,
.lf-label textarea::placeholder {
  color: #6f6789;
}

/* === SUBMIT =================================================== */
.lf-submit {
  display: block;
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.9rem 1.25rem;
  background: var(--primary, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.12s;
}
.lf-submit:hover:not(:disabled) {
  opacity: 0.88;
  transform: translateY(-1px);
}
.lf-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* === ESTADO (loading / ok / error) ============================ */
.lead-status {
  margin-top: 0.875rem;
  font-size: 0.93rem;
  min-height: 1.4rem;
  text-align: center;
}
.lead-status--ok    { color: #34d399; }
.lead-status--error { color: #f87171; }
.lead-status--loading { color: #a89fc2; }

/* === HONEYPOT (invisible para humanos) ======================== */
.lf-trap { display: none !important; visibility: hidden !important; }

/* === PÁGINA DE RESERVAS (/reservar/) ========================== */
.reservar-grid {
  display: grid;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 700px) {
  .reservar-grid { grid-template-columns: 1fr 1fr; }
}
.reservar-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 1.5rem;
}
.reservar-card h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #edeaf6;
  margin: 0 0 1.25rem;
}

/* Calendario */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.cal-header span {
  font-weight: 700;
  color: #edeaf6;
  font-size: 0.95rem;
  text-transform: capitalize;
}
.cal-nav {
  background: none;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  color: #edeaf6;
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-nav:hover { background: rgba(255,255,255,0.08); }
.cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6f6789;
  margin-bottom: 0.35rem;
  gap: 2px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-day {
  aspect-ratio: 1;
  border: none;
  border-radius: 6px;
  background: none;
  color: #edeaf6;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
}
.cal-day:hover:not(:disabled):not(.selected) { background: rgba(255,255,255,0.08); }
.cal-day.today { border: 1px solid rgba(255,255,255,0.22); }
.cal-day.selected { background: var(--primary, #7c3aed); color: #fff; font-weight: 700; }
.cal-day:disabled { color: #3d3655; cursor: default; }
.cal-day.empty { visibility: hidden; }

/* Franjas horarias */
.franjas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.franja {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 6px;
  color: #edeaf6;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.25rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.franja:hover:not(:disabled):not(.selected) {
  background: rgba(255,255,255,0.12);
}
.franja.selected {
  background: var(--primary, #7c3aed);
  border-color: var(--primary, #7c3aed);
  color: #fff;
}
.franja:disabled { color: #3d3655; cursor: default; border-color: transparent; background: transparent; }
.franjas-hint { font-size: 0.78rem; color: #6f6789; margin: 0.75rem 0 0.5rem; }
