@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(to bottom, #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;
    width: 100%;
}

.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;
}

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

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

.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-abonos-btn {
    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;
    display: block;
    max-width: max-content;
    margin: 20px auto;
}

.booking-abonos-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;
    width: 100%;
}

.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;
}

fluentform[id="6"] .bv-active {
    background: #ffb300;
    color: #000;
    font-weight: 700;
    pointer-events: none;
}

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

/* Estado actual */
.booking-status-row {
    display: flex;
    align-items: center;
    justify-content: 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 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 */
@media (max-width: 600px) {
    .booking-details strong {
        flex: 1 1 100%;
    }

    .booking-card {
        margin: 0px auto;
        margin-bottom: 20px !important;
    }

    .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;
    }
}

/* Popup de Pago Moderno */
#payment-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeInPopup 0.4s ease-out forwards;
    font-family: "Poppins", sans-serif;
}

.payment-popup-container {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    padding: 0;
    border-radius: 20px;
    max-width: 460px;
    width: 92%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(220, 225, 230, 0.6);
    transform: scale(0.9);
    animation: popupScaleIn 0.4s ease-out forwards;
    overflow: hidden;
}

.payment-popup-header {
    background: linear-gradient(135deg, #fdbe15 0%, #f5a623 100%);
    padding: 20px 28px;
    color: #2d3748;
    position: relative;
}

.payment-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.payment-popup-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.payment-popup-icon {
    margin-bottom: 6px;
    opacity: 0.9;
}

.payment-popup-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.payment-popup-subtitle {
    margin: 6px 0 0;
    opacity: 0.85;
    font-size: 0.9rem;
    font-weight: 400;
}

.payment-popup-content {
    padding: 28px;
}

.payment-summary {
    background: linear-gradient(135deg, #f7f9fb 0%, #edf2f7 100%);
    border: 1px solid #d1d9e0;
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 24px;
    text-align: left;
}

.payment-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.payment-summary-label {
    color: #64748b;
    font-weight: 500;
}

.payment-summary-value {
    font-weight: 600;
    color: #2d3748;
}

.payment-summary-value.paid {
    color: #059669;
}

.payment-summary-divider {
    border: none;
    height: 1px;
    background: #cbd5e1;
    margin: 14px 0;
}

.payment-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-summary-total-label {
    color: #2d3748;
    font-weight: 600;
    font-size: 1rem;
}

.payment-summary-total-value {
    color: #dc2626;
    font-weight: 800;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    padding: 6px 14px;
    border-radius: 10px;
    border: 1px solid #fca5a5;
}

.payment-options {
    margin-bottom: 20px;
    display: grid;
    gap: 10px;
}

.payment-btn {
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.payment-btn-total {
    background: linear-gradient(135deg, #fdbe15 0%, #f5a623 100%);
    box-shadow: 0 4px 12px rgba(253, 190, 21, 0.3);
    color: #2d3748;
}

.payment-btn-total:hover {
    box-shadow: 0 8px 25px rgba(253, 190, 21, 0.4);
}

.payment-btn-partial {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.25);
}

.payment-btn-partial:hover {
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.35);
}

.payment-btn-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payment-btn-amount {
    opacity: 0.9;
    font-size: 0.8rem;
    margin-top: 2px;
    font-weight: 500;
}

.payment-input-section {
    display: none;
    margin-bottom: 20px;
    text-align: left;
}

.payment-input-label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
}

.payment-input-container {
    position: relative;
}

.payment-input-symbol {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-weight: 600;
    z-index: 1;
    font-size: 1rem;
}

.payment-input {
    width: 100%;
    padding: 14px 14px 14px 30px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    background: #fafafa;
    font-family: inherit;
}

.payment-input:focus {
    outline: none;
    border-color: #fdbe15;
    box-shadow: 0 0 0 3px rgba(253, 190, 21, 0.1);
    background: #ffffff;
}

.payment-input-help {
    color: #6b7280;
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
}

.payment-input-error {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 6px;
    display: none;
    background: #fef2f2;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #fecaca;
}

.payment-methods {
    display: none;
}

.payment-methods-title {
    color: #374151;
    margin-bottom: 14px;
    font-weight: 600;
    font-size: 1rem;
}

.payment-methods-grid {
    display: grid;
    gap: 10px;
}

.payment-method-btn {
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}

.payment-method-btn:hover {
    transform: translateY(-2px);
}

.payment-method-nequi {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.25);
}

.payment-method-nequi:hover {
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.35);
}

.payment-method-placetopay {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.payment-method-placetopay:hover {
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.35);
}

/* Animaciones */
@keyframes fadeInPopup {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popupScaleIn {
    from {
        transform: scale(0.9);
    }

    to {
        transform: scale(1);
    }
}

/* Popup overlay */
.payment-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInPopup 0.3s ease;
}

.payment-popup-container {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: popupScaleIn 0.3s ease;
}

.payment-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 1;
}

.payment-popup-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.payment-popup-close:active {
    transform: scale(0.95);
}

/* Estilos mejorados para los botones de pago */
.payment-btn {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    min-height: 70px;
    position: relative;
    overflow: hidden;
}

.payment-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.payment-btn-total {
    background: linear-gradient(135deg, #fdbe15 0%, #f5a623 100%);
    color: #2d3748;
    border-color: #fdbe15;
    font-size: 20px;
}

.payment-btn-total:hover {
    background: linear-gradient(135deg, #f5a623, #e6941f);
    box-shadow: 0 8px 20px rgba(253, 190, 21, 0.4);
}

.payment-btn-partial {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    border-color: #2196f3;
}

.payment-btn-partial:hover {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
}

.payment-btn-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.payment-btn-amount {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 600;
}

/* Estilos mejorados para los métodos de pago */
.payment-method-btn {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    min-height: 70px;
    position: relative;
    overflow: hidden;
}

.payment-method-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.payment-method-nequi {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #334155;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.payment-method-nequi:hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.payment-method-placetopay {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 700;
    font-size: 18px;
}

.payment-method-placetopay:hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .payment-popup-container {
        width: 95%;
        margin: 20px;
    }

    .payment-popup-close {
        top: 10px;
        right: 10px;
    }

    .payment-btn,
    .payment-method-btn {
        font-size: 16px;
        padding: 16px 20px;
        min-height: 60px;
    }

    .payment-btn-total {
        font-size: 18px;
    }
}

@media (max-width: 480px) {

    .payment-btn,
    .payment-method-btn {
        font-size: 14px;
        padding: 14px 18px;
        min-height: 50px;
    }

    .payment-btn-total {
        font-size: 16px;
    }
}

/*  */
.wpbc_settings_page_wrapper compact {
    width: 100%;
    max-width: 100%;
}

/* Estilos para iconos de tarjetas de crédito */
.bv-cards-button {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 5px 10px !important;
    gap: 5px !important;
}

.bv-card-icon {
    /* background: white !important; */
    /* border-radius: 6px !important; */
    padding: 4px !important;
    /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important; */
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    display: block !important;
    width: 60px !important;
    height: 36px !important;
    /* border: 1px solid #e5e7eb !important; */
    flex-shrink: 0 !important;
    object-fit: contain !important;
}

/* .bv-card-icon:hover {
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
} */

.bv-cards-button:hover .bv-card-icon {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}


.bv-group {
    list-style: none;
    margin-bottom: 10px;
}

.bv-group-toggle {
    width: 100%;
    background: #ffb300;
    color: #fff;
    border: none;
    padding: 10px 14px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.bv-group-toggle:hover {
    background: #ffa000;
}

.bv-group-content {
    padding: 8px 12px;
    border-radius: 0 0 6px 6px;
}

.bv-group-content li {
    list-style: none;
    padding: 8px 6px;
    font-size: 13px;
}

.bv-group-content li:last-child {
    border-bottom: none;
}

.bv-arrow {
    transition: transform 0.3s ease;
    top: 2px;
    position: relative;
}

.bv-group.open .bv-arrow {
    transform: rotate(180deg);
    top: -4px;
    position: relative;
}