/**
 * AcuaCheckout - Estilos de la Página de Checkout de 1 Solo Paso
 */

.acua-checkout-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

.acua-checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.acua-logo-box img {
    max-height: 50px;
    width: auto;
}

.acua-checkout-title-wrap h2 {
    margin: 0 0 4px;
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
}

.acua-checkout-title-wrap p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.acua-rate-badge {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
}

/* Grid Layout Principal */
.acua-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: flex-start;
}

/* Tarjetas de Secciones */
.acua-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
    overflow: hidden;
}

.acua-card-header {
    padding: 18px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.acua-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0088cc;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acua-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.acua-card-body {
    padding: 24px;
}

/* Formularios y Campos */
.acua-grid-2cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.acua-col-full {
    grid-column: 1 / -1;
}

.acua-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.acua-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.acua-form-group .req {
    color: #ef4444;
}

.acua-input,
.acua-select,
.acua-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.acua-input:focus,
.acua-select:focus,
.acua-textarea:focus {
    outline: none;
    border-color: #0088cc;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
}

/* Opciones de Envío (Radio Cards) */
.acua-shipping-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.acua-radio-card {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.acua-radio-card input[type="radio"] {
    position: absolute;
    top: 14px;
    right: 14px;
}

.acua-radio-card:hover {
    border-color: #94a3b8;
}

.acua-radio-card.active {
    border-color: #0088cc;
    background: #f0f9ff;
}

.acua-radio-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
}

.acua-badge-free {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
}

.acua-badge-cod {
    display: inline-block;
    background: #fef3c7;
    color: #b45309;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
}

.acua-radio-content p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
}

.acua-subpanel {
    display: none;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}

.acua-subpanel.active {
    display: block;
}

.acua-info-alert {
    background: #e0f2fe;
    border-left: 4px solid #0284c7;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: #0369a1;
}

/* Tabs de Pasarelas de Pago */
.acua-payment-gateways-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.acua-pay-tab {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    position: relative;
}

.acua-pay-tab input[type="radio"] {
    display: none;
}

.acua-pay-tab:hover {
    border-color: #94a3b8;
}

.acua-pay-tab.active {
    border-color: #0088cc;
    background: #f0f9ff;
}

.acua-pay-tab-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.acua-pay-icon {
    font-size: 22px;
}

.acua-pay-tab strong {
    font-size: 13px;
    color: #1e293b;
}

.acua-pay-tab small {
    font-size: 11px;
    color: #64748b;
}

.acua-payment-subpanel {
    display: none;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}

.acua-payment-subpanel.active {
    display: block;
}

.acua-api-badge-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.acua-api-tag {
    background: #0284c7;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.acua-api-mode {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.acua-panel-desc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
}

/* Datos Bancarios Box */
.acua-bank-details-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    margin-top: 12px;
}

.acua-bank-detail-item h5 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #0088cc;
}

.acua-bank-detail-item p {
    margin: 3px 0;
    font-size: 13px;
    color: #334155;
}

/* Dropzone de Capture */
.acua-file-dropzone {
    border: 2px dashed #94a3b8;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.acua-file-dropzone:hover,
.acua-file-dropzone.dragover {
    border-color: #0088cc;
    background: #f0f9ff;
}

.acua-upload-icon {
    font-size: 32px;
    margin-bottom: 6px;
}

.acua-dropzone-inner p {
    margin: 0 0 4px;
    font-size: 14px;
    color: #334155;
}

.acua-dropzone-inner small {
    color: #94a3b8;
    font-size: 12px;
}

.acua-dropzone-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    text-align: left;
}

.acua-preview-thumbnail-wrap {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

.acua-preview-thumbnail-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acua-preview-info {
    flex: 1;
}

.acua-preview-info span {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.acua-upload-success-badge {
    color: #16a34a;
    font-size: 11px !important;
}

.acua-btn-remove-capture {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.acua-upload-progressbar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.acua-progressbar-fill {
    height: 100%;
    background: #0088cc;
    width: 0%;
    transition: width 0.3s;
}

/* Sidebar Resumen de Pedido */
.acua-checkout-sidebar-col {
    position: sticky;
    top: 20px;
}

.acua-order-summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    padding: 24px;
}

.acua-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.acua-summary-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.acua-summary-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

.acua-summary-items-list {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.acua-sum-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.acua-sum-thumb {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.acua-sum-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acua-sum-qty {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #0088cc;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acua-sum-info h4 {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}

.acua-sum-info small {
    color: #94a3b8;
    display: block;
}

.acua-sum-prices strong {
    color: #0088cc;
    font-size: 13px;
}

.acua-sum-prices span {
    font-size: 11px;
    color: #64748b;
}

.acua-summary-totals {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.acua-sum-row {
    display: flex;
    justify-content: space-between;
    color: #475569;
}

.acua-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 6px 0;
}

.acua-sum-total-highlight {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: right;
}

.acua-grand-total-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-align: left;
    margin-bottom: 4px;
}

.acua-grand-total-usd {
    font-size: 24px;
    font-weight: 800;
    color: #0088cc;
    line-height: 1.1;
}

.acua-grand-total-ves {
    font-size: 13px;
    color: #475569;
    margin-top: 2px;
}

/* Botón de Confirmación */
.acua-terms-check {
    margin-bottom: 14px;
}

.acua-terms-check label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
}

.acua-btn-submit-order {
    width: 100%;
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    color: #ffffff;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0, 136, 204, 0.35);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.acua-btn-submit-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 136, 204, 0.45);
}

.acua-secure-checkout-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    color: #94a3b8;
}

@media (max-width: 992px) {
    .acua-checkout-grid {
        grid-template-columns: 1fr;
    }
    .acua-shipping-options,
    .acua-payment-gateways-tabs {
        grid-template-columns: 1fr;
    }
    .acua-grid-2cols {
        grid-template-columns: 1fr;
    }
}
