/* Estilos de componentes específicos de los includes  */

/* ======================================================
   NUEVA RESERVA — Modal wrapper
====================================================== */

.nr-price-undef {
    margin-top: 14px;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 0.6rem;
    font-size: 0.92rem;
    color: #5c686e;
    border-left: 3px solid #d2a05e;
}

.nr-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 28px;
    color: #5c686e;
    font-size: 14px;
}

/* ======================================================
   TOUR MODAL — Selector flotante (idéntico al sitio público)
====================================================== */

.tour-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.tour-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    width: 100%;
    max-height: 85vh;
    z-index: 10001;
    background: #fffdf9;
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: tourModalIn 0.3s ease;
    overflow: hidden;
}

@keyframes tourModalIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.tour-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(28, 37, 40, 0.1);
    flex-shrink: 0;
}

.tour-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1d647b;
}

.tour-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border: none;
    border-radius: 50%;
    background: rgba(41, 150, 182, 0.1);
    color: #2996b6;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tour-modal-close:hover {
    background: #2996b6;
    color: white;
}

.tour-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.tour-modal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    border: 2px solid rgba(28, 37, 40, 0.1);
    border-radius: 20px;
    background: #fefdfb;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
}

.tour-modal-card:hover {
    border: 2px solid #2996b6;
    background: rgba(41, 150, 182, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(41, 150, 182, 0.15);
}

.tour-modal-card.is-selected {
    border: 2px solid #2996b6;
    background: rgba(41, 150, 182, 0.08);
}

.tour-modal-card:active {
    transform: translateY(0);
}

.tour-modal-card-icon {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
    line-height: 1;
}

.tour-modal-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1c2528;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-modal-card-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    font-size: 0.75rem;
}

.tour-detail-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #455059;
    line-height: 1.3;
}

.tour-detail-item:last-child {
    margin-bottom: 0;
}

.tour-detail-icon {
    display: inline-block;
    min-width: 1rem;
    text-align: center;
    font-size: 0.85rem;
}

.tour-detail-text {
    flex: 1;
    word-break: break-word;
}

.tour-detail-label {
    display: inline;
    font-weight: 600;
    color: #455059;
}

.tour-detail-price {
    display: inline;
    font-weight: 700;
    color: #2996b6;
    font-size: 0.85rem;
}

.tour-detail-inquire {
    color: #d2a05e;
    font-style: italic;
}

@media (max-width: 768px) {
    .tour-modal-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.8rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .tour-modal {
        max-width: 95vw;
        max-height: 90vh;
    }

    .tour-modal-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
}

/* ======================================================
   TOUR SELECCIONADO — Card de resumen (idéntico al sitio público)
====================================================== */

.tour-selected-card {
    padding: 1.25rem;
    border: 2px solid rgba(28, 37, 40, 0.1);
    border-radius: 20px;
    background: linear-gradient(135deg, #fefdfb 0%, rgba(254, 253, 251, 0.9) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.tour-selected-card:hover {
    border-color: #2996b6;
    box-shadow: 0 8px 24px rgba(41, 150, 182, 0.12);
}

/* Scoped to avoid conflict with admin tour-list cards */
.tour-selected-card .tour-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tour-selected-card .tour-card-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1c2528;
    flex: 1;
    min-width: 0;
}

.tour-selected-card .tour-card-icon {
    font-size: 1.9rem;
    flex-shrink: 0;
    line-height: 1;
}

.tour-card-change-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0 1rem;
    border: 2px solid #2996b6;
    border-radius: 999px;
    background: transparent;
    color: #2996b6;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.tour-card-change-btn:hover {
    background: #2996b6;
    color: white;
    box-shadow: 0 4px 12px rgba(41, 150, 182, 0.3);
}

.tour-selected-card .tour-card-details {
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
    border-top: 1px solid rgba(28, 37, 40, 0.08);
    padding-top: 0.65rem;
    margin-top: 0.75rem;
}

.tour-selected-card .tour-detail-item {
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(28, 37, 40, 0.06);
}

.tour-selected-card .tour-detail-item:last-child {
    border-bottom: none;
}

.tour-selected-card .tour-detail-price {
    font-size: 0.95rem;
    margin-left: auto;
}

.tour-selected-card .tour-detail-inquire {
    margin-left: auto;
    font-size: 0.8rem;
}

/* ======================================================
   RESUMEN / TOTAL ESTIMADO (idéntico al sitio público)
====================================================== */

.booking-summary {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    margin-top: 1.2rem;
    border-radius: 14px;
    background: rgba(41, 150, 182, 0.06);
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.summary-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #455059;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.summary-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1d647b;
}

/* ======================================================
   CONFIRMACIÓN DE RESERVA (idéntico al sitio público)
====================================================== */

.booking-confirmation {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.confirm-header {
    text-align: center;
    padding: 0.5rem 0 0;
}

.confirm-check {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.confirm-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1c2528;
    margin: 0 0 0.5rem;
}

.confirm-code-block {
    background: linear-gradient(135deg, #eef9fc 0%, #e3f3f8 100%);
    border: 1.5px solid rgba(41, 150, 182, 0.3);
    border-radius: 20px;
    padding: 1.4rem 1.75rem;
    text-align: center;
}

.confirm-code-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #1d647b;
    margin: 0 0 0.5rem;
}

.confirm-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #1d647b;
    margin: 0;
    word-break: break-all;
}

.confirm-summary {
    border: 1px solid rgba(28, 37, 40, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

.confirm-summary-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(28, 37, 40, 0.5);
    padding: 0.8rem 1.2rem 0.65rem;
    border-bottom: 1px solid rgba(28, 37, 40, 0.08);
    margin: 0;
    background: rgba(249, 247, 243, 0.7);
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.65rem 1.2rem;
    border-bottom: 1px solid rgba(28, 37, 40, 0.06);
    gap: 1rem;
}

.confirm-row:last-child {
    border-bottom: none;
}

.confirm-row-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #455059;
    flex-shrink: 0;
}

.confirm-row-value {
    font-size: 0.88rem;
    color: #1c2528;
    text-align: right;
}

.confirm-row-total {
    background: rgba(41, 150, 182, 0.04);
}

.confirm-total-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1d647b;
}

@media (max-width: 480px) {
    .confirm-code {
        font-size: 1.5rem;
        letter-spacing: 0.07em;
    }

    .confirm-code-block {
        padding: 1.2rem 1rem;
    }

    .confirm-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .confirm-row-value {
        text-align: left;
    }
}

/* ======================================================
   BOTONES — Sistema unificado
====================================================== */

/* Base: gradiente teal (por defecto) */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #34b8d8 0%, #2996b6 45%, #1d7a99 100%);
    box-shadow: 0 2px 8px rgba(41, 150, 182, 0.28);
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    letter-spacing: 0.01em;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.07);
    box-shadow: 0 5px 16px rgba(41, 150, 182, 0.35);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(41, 150, 182, 0.20);
}

/* .btn-primary = alias del estilo por defecto (no necesita reglas extra) */

/* Secundario / ghost */
.btn.btn-secondary {
    background: transparent;
    color: #5c686e;
    border: 1.5px solid rgba(28, 37, 40, 0.14);
    box-shadow: none;
}

.btn.btn-secondary:hover {
    background: rgba(28, 37, 40, 0.05);
    color: #1c2528;
    transform: translateY(-1px);
    filter: none;
    box-shadow: none;
}

.btn.btn-secondary:active {
    transform: translateY(0);
}

/* Pequeño */
.btn.sm {
    padding: 6px 14px;
    font-size: 12px;
}

/* Rojo / peligro */
.btn.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.btn.btn-danger:hover {
    filter: brightness(1.07);
    box-shadow: 0 5px 14px rgba(220, 38, 38, 0.30);
}

/* Verde / éxito */
.btn.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.25);
}

.btn.btn-success:hover {
    filter: brightness(1.07);
    box-shadow: 0 5px 14px rgba(4, 120, 87, 0.30);
}

/* Botón mini para tabla (icon-only) */
.btnMini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid rgba(28, 37, 40, 0.12);
    border-radius: 8px;
    padding: 5px 9px;
    cursor: pointer;
    font-size: 13px;
    color: #5c686e;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.btnMini:hover {
    background: #e8f6fb;
    color: #1d647b;
    border-color: rgba(41, 150, 182, 0.30);
}

/* ======================================================
   CONTENIDO DEL CONTROLLER
====================================================== */

.controllerContent {
    padding: 24px 20px;
}

/* popup/ventana → migrado a .modal-overlay/.modal-content (ver index.html) */

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

.loginPanel {
    min-height: 100vh;
    background: linear-gradient(135deg, #1d647b 0%, #2996b6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.loginCard {
    background: #fffdf9;
    border-radius: 20px;
    padding: 40px 36px;
    width: 100%;
    max-width: 390px;
    box-shadow: 0 16px 56px rgba(17, 24, 28, 0.20);
    text-align: center;
}

.loginCard .logoLogin {
    height: 75px;
    object-fit: cover;
    margin-bottom: 14px;
}

.loginCard h2 {
    font-size: 22px;
    font-weight: bold;
    color: #1d647b;
    margin-bottom: 28px;
}

.loginCard form {
    text-align: left;
}

.login-error {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

.login-error.bloqueado {
    background: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fca5a5;
}

.login-error.archivado {
    background: #fdf3e3;
    color: #7c4a03;
    border: 1px solid #f6d5a0;
}

/* ======================================================
   RESUMEN DEL MES
====================================================== */

.panel-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.panel-title h1 {
    font-size: 26px;
    font-weight: 800;
    color: #1d647b;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.panel-title h1 .fa {
    font-size: 22px;
    color: #2996b6;
}

.panel-title p {
    font-size: 13px;
    color: #5c686e;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.panel-title p .fa {
    color: #d2a05e;
}

.panel-title p strong {
    color: #1d647b;
    font-weight: 700;
}

.btn-nueva-reserva {
    padding: 11px 24px;
    font-size: 14px;
    box-shadow: 0 4px 18px rgba(41, 150, 182, 0.38);
}

.btn-nueva-reserva .fa {
    font-size: 16px;
}

.btn-nueva-reserva:hover {
    box-shadow: 0 8px 26px rgba(41, 150, 182, 0.50);
}

.resumen-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.resumen-card {
    border-radius: 16px;
    padding: 14px 20px;
    text-align: center;
    min-width: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 12px rgba(17, 24, 28, 0.08);
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
    user-select: none;
}

.resumen-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 24, 28, 0.13);
}

.resumen-icon {
    font-size: 18px;
    margin-bottom: 2px;
    opacity: 0.85;
}

.resumen-card strong {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    display: block;
}

.resumen-card .resumen-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: block;
    opacity: 0.75;
}

/* Variantes por estado */
.resumen-total {
    background: linear-gradient(135deg, #1d647b 0%, #2996b6 100%);
    color: #fff;
}

.resumen-pendiente {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: #fff;
}

.resumen-proceso {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    color: #fff;
}

.resumen-confirmado {
    background: linear-gradient(135deg, #047857 0%, #10b981 100%);
    color: #fff;
}

.resumen-cancelado {
    background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
    color: #fff;
}

/* ====== Modal vista mes ====== */
.vistames-overlay {
    z-index: 1100;
}

.vistames-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.vistames-search-icon {
    position: absolute;
    left: 13px;
    color: #2996b6;
    font-size: 14px;
    pointer-events: none;
}

.vistames-search-input {
    width: 100%;
    padding: 9px 38px 9px 36px;
    border: 1.5px solid rgba(41, 150, 182, 0.35);
    border-radius: 999px;
    font-size: 13.5px;
    background: #f5fcff;
    color: #1c2528;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.vistames-search-input:focus {
    border-color: #2996b6;
    box-shadow: 0 0 0 3px rgba(41, 150, 182, 0.12);
    background: #fff;
}

.vistames-search-input::placeholder {
    color: #9ab8c4;
}

.vistames-search-clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #9ab8c4;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 6px;
    line-height: 1;
    transition: color 0.15s;
}

.vistames-search-clear:hover {
    color: #1d647b;
}

.modal-vistames {
    max-width: 780px;
    width: 95%;
}

.vistames-body {
    max-height: 72vh;
    overflow-y: auto;
}

.vistames-grupo {
    margin-bottom: 24px;
}

.vistames-fecha-header {
    font-size: 13px;
    font-weight: 700;
    color: #1d647b;
    margin: 0 0 10px 0;
    padding: 7px 0;
    border-bottom: 2px solid rgba(41, 150, 182, 0.18);
    display: flex;
    align-items: center;
    gap: 7px;
}

/* ======================================================
   CALENDARIO
====================================================== */

.calendario-card {
    background: #fffdf9;
    border: 1px solid rgba(28, 37, 40, 0.10);
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(17, 24, 28, 0.07);
    overflow: hidden;
}

.calendario-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(28, 37, 40, 0.10);
}

.calendario-nav h2 {
    font-size: 16px;
    font-weight: 700;
    color: #1d647b;
    text-transform: capitalize;
}

.btn-mes {
    background: #e8f6fb;
    border: 1px solid rgba(41, 150, 182, 0.25);
    color: #1d647b;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-mes:hover {
    background: rgba(41, 150, 182, 0.20);
}

.dias-semana {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f7f2ea;
    border-bottom: 1px solid rgba(28, 37, 40, 0.10);
}

.dias-semana span {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #5c686e;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grilla-calendario {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.dia-card {
    min-height: 80px;
    border-right: 1px solid rgba(28, 37, 40, 0.10);
    border-bottom: 1px solid rgba(28, 37, 40, 0.10);
    padding: 6px 8px;
    cursor: pointer;
    background: #fffdf9;
    text-align: left;
    transition: background 0.12s;
    position: relative;
}

button.dia-card {
    border-radius: 8px;
    font-size: 14px;
}

.dia-card:hover {
    background: #e8f6fb;
}

.dia-card.fuera-mes {
    background: #f7f2ea;
}

.dia-card.fuera-mes .dia-numero {
    color: #bbb;
}

.dia-card.es-hoy .dia-numero {
    background: #d2a05e;
    color: #fff;
    border-radius: 999px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dia-card.seleccionado {
    background: #e8f6fb;
    outline: 2px solid #2996b6;
    outline-offset: -2px;
}

.dia-numero {
    font-weight: 700;
    color: #1c2528;
    margin-bottom: 4px;
    margin-left: 5px;
}

.dia-footer {
    margin-top: 4px;
}

.dia-count {
    font-weight: 700;
    color: #1d647b;
    background: rgba(41, 150, 182, 0.15);
    border-radius: 999px;
    padding: 1px 6px;
    line-height: 16px;
}

.dia-pendiente-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #ff8700;
}

.panel-dia {
    padding: 18px 20px;
    border-top: 1px solid rgba(28, 37, 40, 0.10);
    background: #f7f2ea;
}

.panel-dia h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1d647b;
    margin-bottom: 14px;
}

.filtros-estado {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}

.filtro-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: opacity 0.15s, transform 0.1s;
    opacity: 0.32;
    line-height: 1.4;
}

.filtro-btn.activo {
    opacity: 1;
}

.filtro-btn:hover {
    transform: translateY(-1px);
}

.filtro-btn.filtro-pendiente  { background: #fef3c7; color: #3d1a00; border-color: #f59e0b; }
.filtro-btn.filtro-en-proceso { background: #dbeafe; color: #0d1f6b; border-color: #3b82f6; }
.filtro-btn.filtro-confirmado { background: #d1fae5; color: #022c1c; border-color: #10b981; }
.filtro-btn.filtro-cancelado  { background: #fee2e2; color: #4a0808; border-color: #ef4444; }

.lista-reservas-dia {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.item-reserva {
    background: #fffdf9;
    border: 1px solid rgba(28, 37, 40, 0.09);
    border-left: 5px solid #2996b6;
    border-radius: 16px;
    padding: 16px 18px;
    cursor: pointer;
    transition: box-shadow 0.18s, transform 0.14s, border-color 0.18s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-reserva:hover {
    box-shadow: 0 6px 24px rgba(17, 24, 28, 0.11);
    transform: translateX(3px);
}

.item-reserva.estado-pendiente {
    border-left-color: #f59e0b;
}

.item-reserva.estado-confirmado {
    border-left-color: #10b981;
}

.item-reserva.estado-cancelado {
    border-left-color: #ef4444;
}

.item-reserva.estado-en-proceso {
    border-left-color: #3b82f6;
}

.item-reserva-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.item-reserva-top-right {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.item-monto {
    font-size: 14px;
    font-weight: 800;
    color: #1c2528;
}

.item-monto-sep {
    color: rgba(28, 37, 40, 0.25);
    font-weight: 300;
    font-size: 15px;
}

.item-reserva-cliente {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 800;
    color: #1c2528;
    min-width: 0;
}

.item-reserva-cliente .fa {
    font-size: 22px;
    color: #2996b6;
    flex-shrink: 0;
}

.item-nombre {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-reserva-tour {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1d647b;
    font-weight: 600;
}

.item-reserva-tour .fa {
    color: #d2a05e;
}

.item-viajeros {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(41, 150, 182, 0.09);
    border-radius: 999px;
    padding: 2px 10px;
}

.item-reserva-contacto {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #1c2528;
}

.item-reserva-contacto .fa {
    color: #2996b6;
}

.item-reserva-notas {
    font-size: 13px;
    color: #2a3940;
    background: rgba(28, 37, 40, 0.04);
    border-radius: 8px;
    padding: 6px 10px;
}

.item-nota-admin {
    font-size: 13px;
    color: #1d4e3f;
    background: rgba(16, 185, 129, 0.08);
    border-left: 3px solid #10b981;
    border-radius: 0 8px 8px 0;
    padding: 6px 10px;
}

.item-reserva-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #455059;
    margin-top: 2px;
    padding-top: 8px;
    border-top: 1px solid rgba(28, 37, 40, 0.07);
}

.item-canal {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    background: #f5fcff;
    color: #1d647b;
    border-radius: 999px;
    padding: 2px 9px;
}

.item-codigo {
    font-family: monospace;
    font-size: 14px;
    font-weight: 700;
    color: #454b4e;
    background: rgba(28, 37, 40, 0.07);
    border-radius: 999px;
    padding: 2px 9px;
    letter-spacing: 0.06em;
}

.item-pago {
    font-weight: 700;
    font-size: 12px;
    border-radius: 999px;
    padding: 2px 10px;
}

.item-pago.pagado {
    background: #d1fae5;
    color: #065f46;
}

.item-pago.pendiente {
    background: #fef3c7;
    color: #92400e;
}

.empty-state {
    font-size: 13px;
    color: #5c686e;
    text-align: center;
    padding: 24px 0;
}

.estado-pill {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 3px 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    flex-shrink: 0;
}

.estado-pendiente {
    background: #fef3c7;
    color: #3d1a00;
}

.estado-en-proceso {
    background: #dbeafe;
    color: #0d1f6b;
}

.estado-confirmado {
    background: #d1fae5;
    color: #022c1c;
}

.estado-cancelado {
    background: #fee2e2;
    color: #4a0808;
}

/* ======================================================
   POPUP EDITAR RESERVA — cabecera mejorada
====================================================== */

.editar-reserva-cabecera {
    background: linear-gradient(135deg, #1d647b 0%, #2996b6 100%);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.editar-reserva-cliente {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.editar-reserva-cliente .fa {
    font-size: 26px;
    opacity: 0.9;
}

.editar-reserva-tour {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.editar-reserva-tour .fa {
    color: #d2a05e;
}

.editar-reserva-codigo {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    font-family: monospace;
    letter-spacing: 0.08em;
}

.editar-precios-section {
    background: rgba(28, 37, 40, 0.03);
    border: 1px solid rgba(28, 37, 40, 0.09);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.editar-seccion-titulo {
    font-size: 11px;
    font-weight: 700;
    color: #1d647b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.editar-resumen-precios {
    background: #1d647b;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.resumen-precio-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
}

.resumen-precio-row strong {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.resumen-precio-row.resumen-ganancia {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 8px;
    margin-top: 2px;
}

.resumen-ganancia strong {
    color: #6ee7b7;
}

.checkbox-pago {
    margin-top: 6px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    color: #1c2528;
}

.checkbox-label input[type=checkbox] {
    width: 18px;
    height: 18px;
    accent-color: #2996b6;
    cursor: pointer;
}

/* ======================================================
   LISTA DE TOURS
====================================================== */

.listaElementos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    padding: 0;
}

.noResults {
    padding: 40px 20px;
    text-align: center;
    width: 100%;
}


/* ======================================================
   LISTA DE TOURS — Card design
====================================================== */

.tour-card {
    background: #fffdf9;
    border: 1px solid rgba(28, 37, 40, 0.10);
    border-radius: 16px;
    padding: 16px;
    width: 320px;
    box-shadow: 0 2px 12px rgba(17, 24, 28, 0.07);
    position: relative;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
}

.tour-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(17, 24, 28, 0.14);
    border-color: rgba(41, 150, 182, 0.30);
}

.tour-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.tour-icon {
    font-size: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-name {
    font-size: 16px;
    font-weight: 700;
    color: #1c2528;
    margin: 0;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}

.tour-estado-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 3px 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    white-space: nowrap;
}

.tour-estado-activo {
    background: #d1fae5;
    color: #065f46;
}

.tour-estado-inactivo {
    background: #f3f4f6;
    color: #6b7280;
}

/* Grid de precios */
.tour-prices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px;
    background: rgba(232, 246, 251, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(41, 150, 182, 0.15);
}

.price-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #5c686e;
}

.price-value {
    font-size: 16px;
    font-weight: 700;
    color: #d2a05e;
}

/* Información adicional */
.tour-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #5c686e;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-item i {
    font-size: 12px;
    color: #2996b6;
}

/* Categorías */
.tour-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge-categoria {
    display: inline-block;
    background: #e8f6fb;
    color: #1d647b;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(41, 150, 182, 0.20);
    transition: background 0.15s, color 0.15s;
}

.badge-categoria:hover {
    background: rgba(41, 150, 182, 0.15);
}

/* ======================================================
   FORMULARIOS
====================================================== */

.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 1rem;
}

.form-field>label:not(.checkbox-label) {
    font-size: 0.75rem;
    font-weight: 800;
    color: rgba(28, 37, 40, 0.88);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 3px;
}

.form-field input,
.form-field select,
.form-field textarea {
    min-height: 2.9rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(28, 37, 40, 0.12);
    border-radius: 0.7rem;
    background: rgba(255, 252, 247, 0.98);
    color: #1c2528;
    font-size: 0.95rem;
    width: 100%;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.form-field input:not([type="checkbox"]):not([type="radio"]):focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #2996b6;
    box-shadow: 0 0 0 3px rgba(41, 150, 182, 0.12);
    background: #fff;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row>.form-field {
    flex: 1;
}

/* ======================================================
   TABLA DE USUARIOS
====================================================== */

.tabla-usuarios {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.tabla-usuarios th {
    background: #e8f6fb;
    color: #1d647b;
    font-weight: 700;
    padding: 11px 16px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(41, 150, 182, 0.25);
}

.tabla-usuarios td {
    padding: 11px 16px;
    border-bottom: 1px solid rgba(28, 37, 40, 0.10);
    color: #1c2528;
    vertical-align: middle;
}

.tabla-usuarios tr:last-child td {
    border-bottom: none;
}

.tabla-usuarios tr:hover td {
    background: #e8f6fb;
}


/* ======================================================
   DISPARADOR DEL SELECTOR DE TOUR (botón que abre el modal)
====================================================== */

.tour-select {
    position: relative;
}

.tour-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 2.9rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(28, 37, 40, 0.12);
    border-radius: 0.7rem;
    background: rgba(255, 252, 247, 0.98);
    color: #1c2528;
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-shadow: none;
}

.tour-select-trigger::after {
    content: '▾';
    margin-left: 8px;
    font-size: 13px;
    color: #5c686e;
    flex-shrink: 0;
}

.tour-select-trigger:hover {
    border-color: #2996b6;
}

.tour-select-trigger.is-placeholder {
    color: rgba(28, 37, 40, 0.42);
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 768px) {
    .controllerContent {
        padding: 16px 14px;
    }

    .listaElementos>div {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .dia-card {
        min-height: 52px;
        font-size: 12px!important;
    }

    /* Encabezado: título arriba, tarjetas abajo centradas */
    .panel-header-top {
        flex-direction: column;
        align-items: stretch;
    }

    /* Grid de tarjetas: 5 columnas iguales, sin overflow */
    .resumen-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        width: 100%;
    }

    .resumen-card {
        padding: 8px 4px;
        min-width: 0;
        border-radius: 12px;
    }

    .resumen-icon {
        font-size: 14px;
        margin-bottom: 0;
    }

    .resumen-card strong {
        font-size: 18px;
    }

    /* Ocultar etiquetas de texto en móvil */
    .resumen-card .resumen-label-hide {
        display: none;
    }
}

/* ======================================================
   MÉTODOS DE PAGO (MODAL EDITAR RESERVA)
====================================================== */

.metodos-pago-section {
    margin-bottom: 20px;
    padding: 14px 16px;
    background: rgba(9, 176, 208, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(9, 176, 208, 0.18);
    animation: fadeSlideDown 0.18s ease;
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metodo-pago-titulo {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #5c686e;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.required-mark {
    color: #e03;
}

.metodos-pago-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.metodo-pago-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 6px;
    border-radius: 10px;
    border: 2px solid rgba(28, 37, 40, 0.10);
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #5c686e;
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.12s;
}

.metodo-pago-btn i {
    font-size: 18px;
}

.metodo-pago-btn:hover {
    border-color: #09B0D0;
    background: rgba(9, 176, 208, 0.06);
    color: #1d647b;
    transform: translateY(-1px);
}

.metodo-pago-btn.activo {
    border-color: #09B0D0;
    background: #09B0D0;
    color: #fff;
    box-shadow: 0 3px 10px rgba(9, 176, 208, 0.30);
}

.metodo-pago-btn.activo:hover {
    background: #1d647b;
    border-color: #1d647b;
    transform: none;
}

/* Badge de método de pago en tarjeta de reserva */
.metodo-pago-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

/* Precios en grid de tarjetas de reserva */

@media (max-width: 480px) {
    .metodos-pago-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}