/* ==================================================
   ESTADOS
================================================== */

.seleccionado {
  background: #00b37a !important;
  color: #fff !important;
  border-color: #00b37a !important;
}

.estado {
  font-weight: 600;
}

.pendiente {
  color: #f59e0b;
}

.confirmada {
  color: #00b37a;
}

.expirada {
  color: #ef4444;
}

/* ==================================================
   LOGIN / REGISTER
================================================== */

.portal-header {
  padding: 30px 20px;
  text-align: center;
}

.portal-header .logo {
  text-decoration: none;
  font-size: 1.4rem;
}

.auth-page {
  min-height: calc(100vh - 220px);

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

  padding: 40px 20px 80px;
}

.auth-card {
  width: 100%;
  max-width: 520px;

  background: #fff;

  border-radius: 20px;

  padding: 50px 40px;

  box-shadow:
    0 10px 35px rgba(0,0,0,.08);

  text-align: center;
}

.auth-card h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.portal-description {
  color: #666;
  line-height: 1.7;
  margin-bottom: 35px;
}

.portal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal-form input {
  width: 100%;

  padding: 15px 18px;

  border: 1px solid #e3e3e3;
  border-radius: 12px;

  font-family: inherit;
  font-size: 1rem;
}

.portal-form input:focus {
  outline: none;

  border-color: #00b37a;

  box-shadow:
    0 0 0 4px rgba(0,179,122,.12);
}

.portal-alt-action {
  margin-top: 30px;
}

.portal-alt-action a {
  color: #00b37a;
  text-decoration: none;
  font-weight: 600;
}

.portal-back-link {
  display: inline-block;
  margin-top: 24px;

  color: #666;
  text-decoration: none;
}

.portal-back-link:hover {
  color: #00b37a;
}

/* ==================================================
   BOOKING PAGE
================================================== */

.booking-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.booking-hero {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.booking-hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.booking-hero p {
  color: #666;
  font-size: 1.1rem;
}

.booking-card {
  background: #fff;

  border-radius: 24px;

  padding: 50px;

  box-shadow:
    0 10px 35px rgba(0,0,0,.08);
}

.booking-section {
  margin-bottom: 50px;
}

.booking-section h2 {
  color: #00b37a;
  margin-bottom: 18px;
}

/* ==================================================
   SERVICIOS
================================================== */

/* ==================================================
   FORMULARIO
================================================== */

.booking-section select,
.booking-section input[type="email"],
.booking-section input[type="date"] {

  width: 100%;

  padding: 16px 18px;

  border: 1px solid #e3e3e3;
  border-radius: 12px;

  font-family: inherit;
  font-size: 1rem;

  background: #fff;
}

.booking-section select:focus,
.booking-section input:focus {

  outline: none;

  border-color: #00b37a;

  box-shadow:
    0 0 0 4px rgba(0,179,122,.12);
}

/* ==================================================
   HORARIOS
================================================== */

#horariosDisponibles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#horariosDisponibles button {
  margin: 0;

  padding: 12px 18px;

  border-radius: 12px;
  border: 1px solid #dcdcdc;

  background: #fff;

  cursor: pointer;

  font-family: inherit;

  transition: .2s;
}

#horariosDisponibles button:hover {
  border-color: #00b37a;
}

.slot-invalido {
  background: #f3f4f6 !important;
  color: #999 !important;
  cursor: not-allowed !important;
}

/* ==================================================
   CAPTCHA
================================================== */

.captcha-container {
  display: flex;
  justify-content: center;
}

/* ==================================================
   CTA
================================================== */

.booking-submit {
  width: 100%;
}

/* ==================================================
   RESULTADO
================================================== */

#resultado {
  margin-top: 24px;
  text-align: center;
  font-weight: 500;
}

/* ==================================================
   AUTH LINKS
================================================== */

.portal-auth {
  text-align: center;
  margin: 40px 0;
}

.portal-auth a {
  color: #00b37a;
  text-decoration: none;
  font-weight: 600;
}

.portal-auth span {
  color: #999;
  margin: 0 10px;
}

/* ==================================================
   RESERVAS
================================================== */

.reservas-card {
  margin-top: 40px;

  background: #fff;

  border-radius: 24px;

  padding: 40px;

  box-shadow:
    0 10px 35px rgba(0,0,0,.08);
}

.reservas-card h2 {
  color: #00b37a;
  margin-bottom: 20px;
}

/* ==========================================
   SELECTS RESERVAS
========================================== */

.booking-select {

  width: 100%;

  padding: 16px 18px;

  border: 1px solid #e3e3e3;
  border-radius: 14px;

  background: #fff;

  font-family: inherit;
  font-size: 1rem;

  color: #111;

  cursor: pointer;

  transition:
    border-color .25s ease,
    box-shadow .25s ease;
}

.booking-select:focus {

  outline: none;

  border-color: #00b37a;

  box-shadow:
    0 0 0 4px rgba(0,179,122,.12);
}

.booking-select:hover {
  border-color: #cfcfcf;
}

/* ==================================================
   RESERVA PUBLICA
================================================== */

.public-reservation-card {
  max-width: 700px;
  margin: 0 auto;

  background: #fff;

  border-radius: 24px;

  padding: 40px;

  box-shadow:
    0 10px 35px rgba(0,0,0,.08);
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 768px) {

  .auth-card,
  .booking-card,
  .reservas-card,
  .public-reservation-card {
    padding: 30px 24px;
  }

  .booking-hero h1 {
    font-size: 2rem;
  }

}

.public-reservation-card {
  max-width: 700px;
  margin: 0 auto;

  background: #fff;

  border-radius: 24px;

  padding: 40px;

  box-shadow:
    0 10px 35px rgba(0,0,0,.08);
}

.reserva-status {
  text-align: center;
  margin-bottom: 35px;
}

.reserva-status-badge {
  display: inline-block;

  padding: 10px 18px;

  border-radius: 999px;

  font-size: .9rem;
  font-weight: 700;
}

.reserva-status-badge.confirmada {
  background: rgba(0,179,122,.12);
  color: #00b37a;
}

.reserva-status-badge.pendiente {
  background: rgba(245,158,11,.12);
  color: #f59e0b;
}

.reserva-status-badge.expirada {
  background: rgba(239,68,68,.12);
  color: #ef4444;
}

.reserva-grid {
  display: grid;
  gap: 20px;
}

.reserva-item {
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.reserva-value {
  font-size: 1.15rem;
  font-weight: 600;
  color: #111;
}

.reserva-label {
  color: #666;
  margin-bottom: 6px;
  font-size: .9rem;
}

.reserva-item:last-child {
  border-bottom: none;
}

.reserva-actions {
  margin-top: 35px;

  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {

  background: transparent;

  border: 1px solid #dcdcdc;

  color: #444;

  padding: 14px 22px;

  border-radius: 12px;

  cursor: pointer;

  font-family: inherit;
  font-size: 1rem;

  transition: .25s;
}

.btn-secondary:hover {

  border-color: #ef4444;

  color: #ef4444;
}

/* ==========================================
   MIS RESERVAS
========================================== */

#listaReservas {
  display: grid;
  gap: 18px;
}

.mis-reserva-card {
  background: #fff;

  border: 1px solid #ececec;

  border-radius: 18px;

  padding: 24px;

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.mis-reserva-card:hover {
  transform: translateY(-2px);

  box-shadow:
    0 10px 25px rgba(0,0,0,.06);
}

.mis-reserva-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  gap: 20px;

  margin-bottom: 18px;
}

.mis-reserva-fecha {
  font-size: 1.05rem;
  font-weight: 600;
}

.mis-reserva-hora {
  color: #666;
  margin-top: 4px;
}

.mis-reserva-body {
  margin-bottom: 20px;
}

.mis-reserva-info {
  margin-bottom: 8px;
  color: #444;
}

.mis-reserva-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}