/* ==========================
   Variables de tema
========================== */
:root {
    --bg: #f9fafb;
    --card-bg: #ffffff;
    --primary: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #10b981;
    --text: #111827;
    --header: #ffffff;
    --border: #e5e7eb;
}

/* ==========================
   Reset y estilo base
========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}
a {
    color: var(--primary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ==========================
   Contenedores
========================== */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==========================
   Componentes genéricos
========================== */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    margin-bottom: 1.5rem;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
table th,
table td {
    padding: 0.75rem;
    border: 1px solid var(--border);
    text-align: left;
}
table th {
    background-color: var(--primary-light);
    color: #fff;
}

/* ==========================
   Modal de Pago
========================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    width: 320px;
    position: relative;
}
.modal .close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    cursor: pointer;
    font-size: 1.25rem;
}
.modal-content p,
.modal-content form,
.modal-content button {
    margin-bottom: 0.75rem;
}
.modal-content button {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 0.375rem;
    background-color: var(--secondary);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
}
.modal-content button:hover {
    background-color: #0e9e68;
}

/* ==========================
   Login
========================== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.login-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 320px;
}
.login-card h2 {
    margin-bottom: 1rem;
    text-align: center;
    color: var(--primary);
}
.login-card .error {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 0.5rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    text-align: center;
}
.login-card form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.login-card input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
}
.login-card button {
    padding: 0.75rem 1rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}
.login-card button:hover {
    background-color: var(--primary-light);
}

/* ==========================
   Header y Fecha
========================== */
.header {
    background-color: var(--header);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}
.header-left {
    display: flex;
    flex-direction: column;
}
.header-left .site-name {
    font-size: 1.75rem;
    color: var(--primary);
}
.header-left .date-title {
    font-size: 0.85rem;
    color: #555;
    margin-top: 0.5rem;
}
.header nav ul {
    display: flex;
    gap: 0.75rem;
    list-style: none;
}

/* ==========================
   Menú hamburguesa (móvil)
========================== */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #0f172a;
  border-radius: 999px;
}

.nav-toggle span:nth-child(2) { margin: 4px 0; }

@media (max-width: 720px) {
  /* Header en 2 filas: título + hamburguesa, luego fecha + TC */
  .header .container{
    display:grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'brand toggle'
      'meta meta'
      'nav nav';
    align-items:center;
    gap: .6rem .75rem;
  }
  .header-left{ grid-area: brand; }
  .nav-toggle{ grid-area: toggle; display:inline-flex; justify-self:end; }
  .header-left .site-name{ font-size: 1.25rem; line-height:1.1; }
  .header-left .date-title{ grid-area: meta; font-size:.85rem; margin-top:.25rem; }
  .tc-bar{ grid-area: meta; justify-content:flex-start; margin-top:.35rem; }

  .nav{ grid-area: nav; width:100%; display:none; }
  body.nav-open .nav{ display:block; }
  .nav { width: 100%; display: none; }
  body.nav-open .nav { display: block; }
  .nav ul {
    flex-direction: column;
    gap: .5rem;
    padding: .85rem;
    border: 1px solid rgba(148,163,184,.35);
    border-radius: .85rem;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
  }
  .nav ul li a {
    display: block;
    width: 100%;
    text-align: left;
    padding: .65rem .95rem;
  }
}

/* ==========================
   Tipo de cambio (siempre visible)
========================== */
.tc-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .6rem;
  margin-top: .6rem;
  flex-wrap: wrap;
}

.tc-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.45);
  background: rgba(255,255,255,.9);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  font-weight: 700;
  font-size: .85rem;
  color: #0f172a;
}

.tc-badge small {
  font-weight: 700;
  color: #64748b;
}

.tc-form {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.tc-form .input {
  width: 98px;
  text-align: right;
  padding: .45rem .65rem;
  border-radius: 999px;
}

.tc-form .btn {
  padding: .45rem .85rem;
}

/* ==========================
   Formulario (reservas)
========================== */
.form-card-title {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin-bottom: 1.1rem;
}

.form-card-title h2 {
  font-size: 1.25rem;
  color: #0f172a;
}

.form-card-title p {
  color: #64748b;
}

.form-section {
  grid-column: 1 / -1;
  padding: 1rem;
  border: 1px solid rgba(148,163,184,.25);
  background: #f8fafc;
  border-radius: .85rem;
}

.form-section .section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}

.form-section .section-title h3 {
  font-size: 1rem;
  color: #0f172a;
}

.hint {
  font-size: .85rem;
  color: #64748b;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.pricing-grid .reserva-kv .v {
  font-size: 1.05rem;
}

@media (max-width: 720px) {
  .tc-bar { justify-content: flex-start; }
  .pricing-grid { grid-template-columns: 1fr; }
}
.header nav ul li a {
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: white;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}
.header nav ul li a:hover,
.header nav ul li a.active {
    background-color: var(--primary-light);
}

/* ==========================
   Listado de Reservas
========================== */
.reservas-lista {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}
.reserva-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.reserva-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}
.reserva-header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr 1fr 1fr;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
}
.reserva-header span {
    font-size: 0.95rem;
}
.reserva-header:hover {
    background-color: var(--bg);
}
.reserva-detalles {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.reserva-item.open .reserva-detalles {
    max-height: 400px;
    padding: 1rem;
}
.reserva-detalles button,
.reserva-detalles input {
    margin: 0.5rem 0.5rem 0.5rem 0;
}

/* Listado de reservas: grilla de 8 columnas */
.reserva-header {
  display: grid;
  grid-template-columns:
    1fr    /* Habitación */
    2fr    /* Nombre + pax */
    2fr    /* Fechas */
    1fr    /* Estado */
    1fr    /* Pago */
    1fr    /* Camas */
    1fr    /* Lavandería */
    1fr;   /* Taxi */
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  gap: 0.5rem;
}


/* ==========================
   Mejora de usabilidad y estilo general
   (añadido sobre el CSS existente)
========================== */

body {
    font-size: 15px;
    line-height: 1.5;
}

.main-container,
.contenido-principal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.header-left .title {
    font-size: 1.5rem;
    font-weight: 600;
}

.header-left .date-title {
    font-size: 0.9rem;
    color: #6b7280;
}

.header nav ul li a {
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.login-container {
    padding: 1.5rem;
    background: radial-gradient(circle at top, #e0f2fe 0, transparent 55%),
                radial-gradient(circle at bottom, #dcfce7 0, transparent 55%),
                var(--bg);
}

.login-card {
    width: 100%;
    max-width: 380px;
    border-radius: 0.75rem;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.login-card h2 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.login-card p.subtitulo-login {
    font-size: 0.9rem;
    color: #6b7280;
}

.login-card input {
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    font-size: 0.95rem;
}

.login-card input:focus {
    outline: 2px solid rgba(59, 130, 246, 0.4);
    border-color: var(--primary-light);
}

.login-card button {
    padding: 0.9rem 1rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
    transform: translateY(0);
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

.login-card button:hover {
    background: linear-gradient(135deg, var(--primary-light), #60a5fa);
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.login-card button:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.reservas-lista {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.reserva-item {
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background-color: var(--card-bg);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.reserva-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.12);
    border-color: rgba(37, 99, 235, 0.25);
}

.reserva-header {
    padding: 0.9rem 1.1rem;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.reserva-header span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #111827;
}

.reserva-header:hover {
    background-color: #eef2ff;
}

.reserva-detalles {
    padding: 0 1.2rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.5);
}

.reserva-item.open .reserva-detalles {
    padding-top: 0.75rem;
    padding-bottom: 0.9rem;
}

.reserva-detalles input,
.reserva-detalles select {
    padding: 0.35rem 0.55rem;
    border-radius: 0.4rem;
    border: 1px solid var(--border);
    font-size: 0.85rem;
}

.reserva-detalles button {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    border: none;
    background-color: var(--primary);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.18s, box-shadow 0.18s, transform 0.08s;
}

.reserva-detalles button:hover {
    background-color: var(--primary-light);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.reserva-detalles button:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.22);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.badge-success {
    background-color: #ecfdf3;
    color: #166534;
    border-color: #bbf7d0;
}

.badge-warning {
    background-color: #fef9c3;
    color: #92400e;
    border-color: #facc15;
}

.badge-danger {
    background-color: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

.badge-info {
    background-color: #dbeafe;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.modal-content {
    border-radius: 0.9rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
}

.modal-content button {
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .header {
        padding: 0.6rem 1rem;
    }

    .header nav ul {
        gap: 0.4rem;
    }

    .header nav ul li a {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }

    .main-container,
    .contenido-principal {
        padding: 1rem 0.75rem;
    }

    .reserva-header {
        font-size: 0.8rem;
        padding: 0.75rem 0.8rem;
    }

    .reserva-detalles {
        padding: 0 0.9rem;
    }
}

@media (max-width: 640px) {
    .login-card {
        padding: 1.5rem 1.25rem;
    }

    .header nav {
        font-size: 0.8rem;
    }

    /* En móvil no usamos scroll horizontal: mostramos tarjetas apiladas */
    .reservas-lista {
        overflow-x: visible;
        padding-bottom: 0;
    }

    .reserva-header {
        min-width: 0;
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .reserva-header .cell {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: .75rem;
        padding: 0.15rem 0;
        border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
    }

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

    .reserva-header .cell::before {
        content: attr(data-label);
        font-size: 0.78rem;
        color: #6b7280;
        font-weight: 600;
        flex: 0 0 auto;
    }

    .reserva-header .cell > span {
        text-align: right;
    }

    .reserva-item {
        min-width: 0;
    }

    /* Toolbar más aireada en móvil */
    .reservas-toolbar {
      margin: 1rem 0 0.75rem;
      gap: .75rem;
    }
    .reservas-toolbar__form {
      width: 100%;
      background: rgba(255,255,255,.85);
      border: 1px solid rgba(148,163,184,.25);
      border-radius: .85rem;
      padding: .75rem;
    }
    .reservas-toolbar__actions {
      width: 100%;
      gap: .7rem;
    }
    .reservas-toolbar__actions .btn {
      flex: 1;
      justify-content: center;
    }
}

/* ==========================
   UI: botones + toolbar + formularios
========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; }
.btn-success { background: linear-gradient(135deg, var(--secondary), #34d399); color: #fff; }
.btn-ghost   { background: transparent; border-color: rgba(148,163,184,.5); color: var(--text); }
.btn-disabled{ background: #e5e7eb; color: #6b7280; cursor: not-allowed; }

.input {
  padding: 0.65rem .85rem;
  border: 1px solid var(--border);
  border-radius: .6rem;
  font-size: .95rem;
}
.input:focus { outline: 2px solid rgba(59, 130, 246, 0.35); border-color: var(--primary-light); }

.reservas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 0.5rem;
  flex-wrap: wrap;
}

/* ==========================
   Tarjeta: Tipo de cambio (en Reservas)
========================== */
.tc-card {
  background: var(--card-bg);
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 0.85rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.75rem 0 1.1rem;
}

.tc-card__left h3 {
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: .25rem;
}

.tc-card__left p {
  color: #64748b;
  font-size: .88rem;
  max-width: 42rem;
}

.tc-card__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .55rem;
}

.tc-card__badge {
  font-size: .9rem;
  color: #0f172a;
  background: rgba(59,130,246,.10);
  border: 1px solid rgba(59,130,246,.20);
  padding: .4rem .65rem;
  border-radius: 999px;
}

.tc-card__form {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.tc-card__form .input {
  width: 130px;
  text-align: right;
}

@media (max-width: 640px) {
  .tc-card {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    padding: 1rem;
  }
  .tc-card__right { align-items: stretch; }
  .tc-card__form { justify-content: space-between; }
  .tc-card__form .btn { flex: 1; }
  .tc-card__form .input { flex: 1; width: auto; }
}

.reservas-toolbar__form {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.reservas-toolbar__label {
  font-weight: 700;
  color: #374151;
}

.reservas-toolbar__actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.reserva-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-top: .5rem;
}

.reserva-kv {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.reserva-kv .k {
  font-size: .78rem;
  color: #6b7280;
  font-weight: 700;
}

.reserva-kv .v {
  font-size: .95rem;
  font-weight: 600;
  color: #111827;
}

.reserva-actions {
  display: flex;
  gap: .6rem;
  margin-top: .9rem;
  flex-wrap: wrap;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field label {
  display: block;
  font-weight: 700;
  color: #374151;
  margin-bottom: .35rem;
}

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .reserva-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   Refinamiento UI (móvil + desktop)
===================================================== */

/* Contenedores */
.container { max-width: 1120px; }
main.container { padding-top: 1.25rem; padding-bottom: 2.5rem; }

/* Header con más aire */
.header .container { padding: 1.15rem 0; }
.header-left .site-name { letter-spacing: -0.02em; }

/* En móvil: título más pequeño y hamburguesa alineada al título */
@media (max-width: 720px) {
  .header .container {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: .75rem;
  }

  .header-left { grid-column: 1 / 2; }
  .nav-toggle { grid-column: 2 / 3; justify-self: end; margin-top: .15rem; }
  .nav { grid-column: 1 / -1; }

  .header-left .site-name { font-size: 1.35rem; }
  .header-left .date-title { margin-top: .35rem; }
}

/* Toolbar (selector de fecha) */
.reservas-toolbar {
  background: var(--card-bg);
  border: 1px solid rgba(148,163,184,.25);
  border-radius: .85rem;
  padding: 1rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  margin-top: 1rem;
}

.reservas-toolbar__form {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.reservas-toolbar__label { color: #6b7280; font-weight: 700; }

/* Acciones al final */
.reservas-actions-bottom {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

@media (max-width: 720px) {
  .reservas-actions-bottom .btn { width: 100%; justify-content: center; }
}

/* TC badge clickeable */
.tc-badge { cursor: pointer; }
.tc-badge:active { transform: translateY(1px); }

/* Modal (TC) */
.modal { display: none; }
.modal.open { display: flex; }
.modal-content { width: min(420px, 92vw); }
.modal-close {
  position: absolute;
  top: .65rem;
  right: .85rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}
.modal-title { margin-bottom: .75rem; }
.modal-label { display: block; font-weight: 700; color: #374151; margin: .5rem 0 .35rem; }
.modal-actions { display: flex; gap: .6rem; margin-top: .9rem; justify-content: flex-end; }

/* Reservas: header menos apretado y más legible en desktop */
.reserva-header {
  grid-template-columns: 90px 1.8fr 70px 1.1fr 1.3fr 1fr 1.5fr;
  gap: .85rem;
}

@media (max-width: 980px) {
  .reserva-header { grid-template-columns: 80px 1.6fr 60px 1.2fr 1.2fr 1fr; }
  .reserva-header .cell[data-label="Nacionalidad"] { display: none; }
}

@media (max-width: 720px) {
  .reserva-header {
    display: block;
    padding: 1rem;
  }
  .reserva-header .cell {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .25rem 0;
    border-bottom: 1px dashed rgba(148,163,184,.25);
  }
  .reserva-header .cell:last-child { border-bottom: 0; }
  .reserva-header .cell::before {
    content: attr(data-label);
    color: #64748b;
    font-weight: 700;
  }
}

/* Evitar que el cuerpo se mueva al abrir modal (simple) */
body.modal-open { overflow: hidden; }


/* =======================================
   PRO PRO – Reservas (Hotel Operations)
   Desktop-first sin romper móvil
======================================= */

/* Contenedor más amplio en PC */
@media (min-width: 900px){
  .container{ max-width: 1180px; padding: 0 1.25rem; }
  .card{ border-radius: 16px; box-shadow: 0 10px 30px rgba(15,23,42,.06); }
  .header-left .site-name{ font-size: 1.9rem; letter-spacing: .2px; }
  .header-left .date-title{ font-size: .95rem; margin-top: .35rem; }
}

/* Toolbar */
.reservas-toolbar{ margin-top: 1rem; }
.reservas-toolbar__form{
  display:flex;
  flex-wrap:wrap;
  gap: .75rem;
  align-items:flex-end;
}
.reservas-toolbar__label{ font-weight: 700; color: #1f2937; }

/* Grid 3 columnas en desktop */
.ops-grid{
  display:grid;
  gap: 1rem;
  margin-top: 1rem;
}
@media (min-width: 980px){
  .ops-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
}

.ops-col{
  background: #ffffff;
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(15,23,42,.06);
}
.ops-col--in{ background: #fffaf0; border-color: #ffe6b3; }
.ops-col--stay{ background: #f2fff8; border-color: #bff2d6; }
.ops-col--out{ background: #fff3f3; border-color: #ffd0d0; }

.ops-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: .75rem;
}
.ops-head h3{
  font-size: 1.05rem;
  margin: 0;
  color: #0f172a;
}
.pill{
  background: rgba(29,78,216,.10);
  color: rgba(29,78,216,1);
  font-weight: 800;
  font-size: .85rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(29,78,216,.18);
}

/* Tarjeta de reserva */
.op-card{
  background:#fff;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 16px;
  padding: 12px 12px;
  margin-top: .75rem;
  transition: transform .12s ease, box-shadow .12s ease;
}
.op-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(15,23,42,.10);
}

.op-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: .75rem;
  margin-bottom: .55rem;
}

.op-room{ display:flex; flex-direction:column; gap:.15rem; }
.room-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 58px;
  padding: .4rem .55rem;
  border-radius: 12px;
  background: rgba(29,78,216,.10);
  border: 1px solid rgba(29,78,216,.18);
  color: rgba(29,78,216,1);
  font-weight: 900;
  font-size: .85rem;
}
.room-type{ color:#64748b; font-weight:700; font-size:.82rem; }

.op-badges{ display:flex; flex-direction:column; align-items:flex-end; gap:.35rem; }
.status-badge{
  font-weight: 800;
  font-size: .78rem;
  padding: .35rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(255,255,255,.7);
}
.st--in{ background:#fff7e6; border-color:#ffd699; color:#9a6a00; }
.st--stay{ background:#e9fff3; border-color:#bff2d6; color:#0f7a4a; }
.st--out{ background:#ffecec; border-color:#ffd0d0; color:#b21c1c; }

.pay-badge{
  font-weight: 800;
  font-size: .78rem;
  padding: .35rem .55rem;
  border-radius: 999px;
}
.pay--ok{ background:#e9fff3; color:#0f7a4a; border:1px solid #bff2d6; }
.pay--par{ background:#fff7e6; color:#9a6a00; border:1px solid #ffd699; }
.pay--pend{ background:#ffecec; color:#b21c1c; border:1px solid #ffd0d0; }

.op-name{
  font-size: 1rem;
  font-weight: 900;
  color:#0f172a;
  margin-top: .1rem;
}
.op-meta{
  display:flex;
  flex-wrap:wrap;
  gap: .35rem .55rem;
  margin-top: .35rem;
  color:#475569;
  font-weight: 700;
  font-size: .85rem;
}
.op-meta .dot{ color:#94a3b8; }

.op-money{
  margin-top: .7rem;
  display:flex;
  flex-direction:column;
  gap: .35rem;
}
.money-main{ display:flex; align-items:baseline; justify-content:space-between; gap:.75rem; }
.money-usd{ font-weight: 900; font-size: 1.05rem; color:#0f172a; }
.money-sub{ color:#64748b; font-weight:700; font-size:.82rem; }

/* Acciones al final */
.reservas-actions-bottom{
  display:flex;
  gap: .75rem;
  justify-content:flex-end;
  align-items:center;
  margin: 1.25rem 0 2rem;
}
@media (max-width: 720px){
  .reservas-actions-bottom{ justify-content:stretch; }
  .reservas-actions-bottom .btn{ width:100%; }
}

/* Botones más consistentes */
.btn{ border-radius: 14px; }
.btn-primary{ background: var(--primary); }



/* PC – Reservas: Hotel Operations */

@media (min-width: 900px){
  /* Aire general */
  main.container{ padding-top: 18px; padding-bottom: 34px; }

  .reservas-toolbar{ margin: 16px 0 18px; }
  .reservas-toolbar__form{ display:flex; gap:12px; align-items:flex-end; flex-wrap:wrap; }
  .reservas-toolbar__label{ font-weight:800; color:#0f172a; }

  .ops-grid{
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap:18px;
    margin-top: 8px;
  }

  .ops-col{
    border-radius: 18px;
    padding: 14px;
    border: 1px solid rgba(148,163,184,.35);
    background: rgba(255,255,255,.55);
  }
  .ops-col--in{ background: #fffaf0; border-color: rgba(245,158,11,.25); }
  .ops-col--stay{ background:#f2fff8; border-color: rgba(16,185,129,.25); }
  .ops-col--out{ background:#fff3f3; border-color: rgba(239,68,68,.25); }

  .ops-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom: 10px;
    padding: 6px 4px;
  }
  .ops-head h3{ margin:0; font-size: 18px; letter-spacing:.2px; }
  .pill{
    background:#e9efff;
    color:#2456c9;
    padding:6px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
  }

  .op-card{
    background:#fff;
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 22px rgba(15,23,42,.06);
    margin-top: 12px;
  }

  .op-top{ display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
  .op-room{ display:flex; flex-direction:column; gap:6px; }
  .room-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width: 64px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #e9efff;
    color:#2456c9;
    font-weight: 900;
    font-size: 13px;
  }
  .room-type{ font-size: 12.5px; color:#64748b; font-weight:700; }

  .op-badges{ display:flex; flex-direction:column; gap:6px; align-items:flex-end; }

  .status-badge,
  .pay-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    white-space: nowrap;
  }

  .st--in{ background:#fff7e6; color:#9a6a00; border:1px solid rgba(245,158,11,.25); }
  .st--stay{ background:#e9fff3; color:#0f7a4a; border:1px solid rgba(16,185,129,.25); }
  .st--out{ background:#ffecec; color:#b21c1c; border:1px solid rgba(239,68,68,.25); }

  .pay--ok{ background:#e9fff3; color:#0f7a4a; border:1px solid rgba(16,185,129,.25); }
  .pay--par{ background:#fff7e6; color:#9a6a00; border:1px solid rgba(245,158,11,.25); }
  .pay--pend{ background:#ffecec; color:#b21c1c; border:1px solid rgba(239,68,68,.25); }

  .op-name{ margin-top: 10px; font-size: 16px; font-weight: 950; color:#0f172a; }

  .op-meta{
    margin-top: 6px;
    display:flex;
    flex-wrap:wrap;
    gap: 8px;
    align-items:center;
    color:#64748b;
    font-weight: 700;
    font-size: 13px;
  }
  .op-meta .dot{ color:#cbd5e1; }

  .op-money{
    margin-top: 12px;
    border-top: 1px dashed rgba(148,163,184,.35);
    padding-top: 10px;
    display:flex;
    justify-content:space-between;
    gap: 10px;
  }
  .money-usd{ font-weight: 950; color:#0f172a; }
  .money-sub{ font-size: 12.5px; color:#64748b; font-weight: 700; }

  .reservas-actions-bottom{
    margin-top: 18px;
    display:flex;
    justify-content:flex-end;
    gap: 12px;
  }

  .empty-state h3{ margin:0 0 6px; }
}

/* Tablets: 2 columnas */
@media (min-width: 720px) and (max-width: 899px){
  .ops-grid{ grid-template-columns: 1fr 1fr; }
}

/* Móvil: 1 columna (usa tu look de tarjetas) */
@media (max-width: 719px){
  .ops-grid{ display:grid; grid-template-columns: 1fr; gap: 12px; }
  .ops-col{ padding: 10px; border-radius: 16px; }
  .op-badges{ flex-direction:row; flex-wrap:wrap; justify-content:flex-end; }
}

/* -----------------------------
   Reservas PRO: acciones + modales
------------------------------ */

.op-money--simple{
  border-top: 1px dashed rgba(148,163,184,.35);
  padding-top: 10px;
}

.op-actions{
  margin-top: 12px;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}

.btn-sm{ padding: 8px 12px; font-size: 13px; border-radius: 12px; }

.btn-secondary{
  background: #0f172a;
  color: #fff;
  border: 1px solid rgba(15,23,42,.12);
}

.btn-danger{
  background: #ef4444;
  color: #fff;
  border: 1px solid rgba(239,68,68,.25);
}

.modal-wide{ max-width: 920px; }

.res-modal-header{
  margin-top: 6px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.res-modal-badges{ display:flex; gap: 8px; align-items:center; }

.form-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.field label{ display:block; font-weight: 850; color:#0f172a; margin-bottom: 6px; }
.field small.help{ display:block; margin-top: 6px; color:#64748b; font-weight: 650; }
.field.two{ display:grid; grid-template-columns: 1fr; gap: 12px; }

.res-modal-summary{
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(241,245,249,.8);
  border: 1px solid rgba(148,163,184,.22);
  display:grid;
  grid-template-columns: 1fr;
  gap: 8px;
  font-weight: 800;
  color:#0f172a;
}

.modal-help{ margin: 0 0 12px; color:#64748b; font-weight: 700; }

@media (min-width: 900px){
  .form-grid{ grid-template-columns: 1fr 1fr; }
  .field.two{ grid-template-columns: 1fr 1fr; }
  .res-modal-summary{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 719px){
  .op-actions{ gap: 8px; }
  .btn-sm{ padding: 10px 12px; }
}
