@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");

.entry-content,
#wp--skip-link--target > div > div {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  padding: 1em;
}

/* Tarjeta */
.booking-card {
  font-family: "Poppins", sans-serif;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 700px;
  margin: 1em auto;
  border: 1px solid #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.booking-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Encabezado */
.booking-header {
  background: linear-gradient(90deg, #ffb300, #ffe180);
  padding: 1.5em 1.2em;
  color: #222;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.booking-header h4 {
  margin: 0;
  font-size: 1.4em;
  font-weight: 600;
  color: #222;
  word-break: break-word;
}

.booking-header span {
  font-size: 0.95em;
  color: #333;
  display: block;
  margin-top: 0.4em;
  word-break: break-all;
}

/* Detalles */
.booking-details {
  padding: 1.2em;
  font-size: 14px;
}

.booking-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.booking-details li {
  padding: 0.6em 1em;
  margin-bottom: 0.4em;
  background: #f9f9f9;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  color: #333;
  font-size: 0.95em;
}

/* Campo par */
.booking-details li:nth-child(even) {
  background: #fdf6e3;
}

/* Etiquetas */
.booking-details strong {
  font-weight: 600;
  color: #111;
  min-width: 140px;
  flex: 1 1 40%;
}

/* Grupo: Todos los títulos de grupo */
.booking-details li.group-title {
  background: #ffb300;
  font-weight: 700;
  color: #000;
  font-size: 1em;
  border-left: 4px solid #ffa000;
  border-radius: 8px;
  padding: 0.8em 1em;
  margin: 1.2em 0 0.6em;
  text-transform: uppercase;
}

/* Estado */
.status {
  display: inline-block;
  margin-top: 0.8em;
  background: #e0f5e9;
  color: #2e7d32;
  padding: 0.4em 1em;
  border-radius: 50px;
  font-size: 0.85em;
  font-weight: 600;
}

/* Footer */
.booking-footer {
  background: #fff;
  padding: 1em;
  text-align: center;
  border-top: 1px solid #eee;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* Botón */
.booking-edit-btn {
  display: inline-block;
  background: #ffb300;
  color: #222;
  padding: 0.6em 1.4em;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95em;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(255, 179, 0, 0.2);
  transition: background 0.25s ease, transform 0.25s ease;
}

.booking-edit-btn:hover {
  background: #ffc933;
  transform: scale(1.05);
}

/* Paginador */
.bv-paginador {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4em;
  margin: 2em 0 1em;
  font-family: "Poppins", sans-serif;
  flex-wrap: wrap;
}

.bv-page,
.bv-ellipsis {
  min-width: 32px;
  padding: 0.45em 1em;
  border-radius: 6px;
  background: #fff;
  color: #0077cc;
  font-weight: 500;
  text-align: center;
  border: 1px solid #ddd;
  transition: background 0.2s ease, color 0.2s ease;
}

.bv-page:hover {
  background: #ffb300;
  color: #000;
}

.bv-active {
  background: #ffb300;
  color: #000;
  font-weight: 700;
  pointer-events: none;
}

.bv-ellipsis {
  background: transparent;
  color: #aaa;
  border: none;
  cursor: default;
}

.bv-paginador {
  width: 100%;
}

/* Responsivo */
@media (max-width: 600px) {
  .booking-details strong {
    flex: 1 1 100%;
  }

  .booking-card {
    margin-left: 1em;
    margin-right: 1em;
  }
}
/* Estado actual: línea y badges */
.booking-status-row {
  display: flex;
  align-items: center;
  gap: 1.2em;
  padding: 0.7em 1.2em 0.5em 1.2em;
  font-size: 1em;
  margin-bottom: 0.5em;
  flex-wrap: wrap;
}

.bv-status-title {
  font-weight: 700;
  color: #ffb300;
  margin-right: 0.8em;
  letter-spacing: 1px;
  font-size: 1em;
}

.bv-status-label {
  font-weight: 500;
  color: #222;
  display: flex !important;
  align-items: center;
  gap: 0.5em;
  font-size: 0.98em;
}

.bv-badge {
  display: inline-block;
  padding: 0.25em 1.1em;
  border-radius: 50px;
  color: #fff !important;
  font-size: 0.98em !important;
  font-weight: 600;
  margin-left: 0.3em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  letter-spacing: 0.5px;
  vertical-align: middle;
  border: none;
  outline: none;
  cursor: default;
  transition: background 0.2s;
  min-width: 80px;
  text-align: center;
}

/* Colores para los estados */
.bv-badge-pago,
.bv-badge-reserva {
  background: #bbb;
}
.bv-badge-pago.pendiente,
.bv-badge-reserva.pendiente {
  background: #ffb300;
}
.bv-badge-pago.parcial,
.bv-badge-reserva.parcial {
  background: #1976d2;
}
.bv-badge-pago.pagado,
.bv-badge-reserva.aprobado {
  background: #4caf50;
}
.bv-badge-pago.rechazado,
.bv-badge-reserva.rechazado {
  background: #e53935;
}

/* Responsive: estados en columna en pantallas pequeñas */
@media (max-width: 600px) {
  .booking-status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6em;
    padding: 0.7em 0.7em 0.5em 0.7em;
    font-size: 0.98em;
  }
  .bv-status-title {
    margin-right: 0;
    margin-bottom: 0.2em;
    font-size: 1em;
  }
  .bv-status-label {
    font-size: 0.95em;
    margin-bottom: 0.1em;
  }
  .bv-badge {
    min-width: 70px;
    font-size: 0.95em !important;
    padding: 0.22em 0.8em;
  }
}
