/* ===== FORM BARATZE (PUBLIC) ===== */
.baratze-reservas{
  max-width: 1100px;
  margin: 0 auto;
}

.baratze-reservas form{
  background: #fff;
  border: 1px solid #d7dde5;
  border-radius: 10px;
  padding: 18px;
}

/* T铆tulo */
.baratze-reservas h3{
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 800;
}

/* Labels */
.baratze-reservas label{
  display:block;
  margin: 14px 0 6px;
  font-weight: 700;
  font-size: 14px;
}

/* Inputs/selects base */
.baratze-reservas input[type="text"],
.baratze-reservas input[type="email"],
.baratze-reservas input[type="number"],
.baratze-reservas select{
  width: 100%;
  height: 46px;
  border: 1px solid #1f4a7a;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  box-sizing: border-box;
  background: #fff;
  color: #111827;
  outline: none;
}

/* Select */
.baratze-reservas select{
  padding-right: 36px;
}

/* Focus */
.baratze-reservas input[type="text"]:focus,
.baratze-reservas input[type="email"]:focus,
.baratze-reservas input[type="number"]:focus,
.baratze-reservas select:focus{
  box-shadow: 0 0 0 3px rgba(31,74,122,.18);
}

/* ===== School block ===== */
.baratze-school-select{
  margin-top: 6px;
}

/* Campo buscar */
.baratze-reservas #baratze_school_search{
  height: 46px;
}

/* Select colegio */
.baratze-reservas #baratze_school_id{
  height: 46px !important;
}

/* Layout del bloque (bot贸n + texto ayuda) */
.baratze-reservas .baratze-row{
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 10px;
}

/* Si en m贸vil se ve apretado */
@media (max-width: 680px){
  .baratze-reservas .baratze-row{
    grid-template-columns: 1fr;
  }
}

/* Texto ayuda */
.baratze-help{
  font-size: 12px;
  opacity: .8;
  margin-top: 0;
  line-height: 1.35;
}

/* ===== Botones (defensa contra CSS del tema) ===== */
.baratze-reservas button{
  opacity: 1 !important;
  filter: none !important;
  -webkit-appearance: none;
  appearance: none;
}

/* ===== Bot贸n agregar colegio (forzado por ID para ganar al tema) ===== */
.baratze-reservas #baratze_open_school_modal{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 46px;

  padding: 0 14px;
  border-radius: 6px;

  border: 1px solid #1f4a7a;
  background: #f7f8fa;
  color: #1f4a7a;

  font-weight: 800;
  cursor: pointer;
  text-decoration: none;

  opacity: 1 !important;
  filter: none !important;
  box-shadow: none !important;
}

.baratze-reservas #baratze_open_school_modal:hover{
  background: #eef2f6;
}

.baratze-reservas #baratze_open_school_modal:active{
  transform: translateY(1px);
}

.baratze-reservas #baratze_open_school_modal:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(31,74,122,.18) !important;
}

/* Clase secundaria (para Cancel/Guardar del modal) */
.baratze-reservas .baratze-btn-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 40px;
  padding: 0 14px;

  border-radius: 6px;
  border: 1px solid #b7c3d1;

  background: #f7f8fa;
  color: #111827;

  cursor: pointer;
  font-weight: 700;

  opacity: 1 !important;
  filter: none !important;
}

/* Submit */
.baratze-reservas button[type="submit"]{
  margin-top: 18px;
  height: 44px;
  padding: 0 18px;

  border: 0;
  border-radius: 6px;

  background: #bfe36b;
  color: #111827;

  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;

  opacity: 1 !important;
  filter: none !important;
}

.baratze-reservas button[type="submit"]:hover{
  filter: brightness(0.98) !important;
}

/* ===== Modal ===== */
.baratze-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);

  display: none;
  align-items: center;
  justify-content: center;

  z-index: 99999;
  padding: 14px;
}

.baratze-modal{
  background: #fff;
  width: min(560px, 92vw);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}

.baratze-modal h4{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
}

.baratze-modal .baratze-actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}


/* ===== ALERTAS BARATZE (ESTILO PRO) ===== */
.baratze-alert{
  padding:14px 16px;
  border-radius:8px;
  margin-bottom:16px;
  font-size:14px;
  font-weight:600;
  line-height:1.4;
  display:flex;
  align-items:center;
  gap:10px;
}

/* ✅ ÉXITO (verde profesional) */
.baratze-success{
  background:#f0fdf4;
  color:#166534;
  border:1px solid #bbf7d0;
  border-left:5px solid #22c55e;
}

/* ❌ ERROR (rojo elegante) */
.baratze-error{
  background:#fef2f2;
  color:#991b1b;
  border:1px solid #fecaca;
  border-left:5px solid #ef4444;
}