/* ========================================
   CUSTOMER DISPLAY - PANTALLA DE CLIENTE
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

.tpos-customer-display {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    overflow: hidden;
}

/* Screen (Pantalla de bienvenida) */
.tpos-cd-screen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: white;
}

/* Vista de venta */
.tpos-cd-sale {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    padding: 0;
    margin: 0;
}

.tpos-cd-container {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 0;
}

/* ========================================
   COLUMNA IZQUIERDA - IMAGEN DEL EVENTO
   ======================================== */

.tpos-cd-left {
    flex: 0 0 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: white;
    overflow: hidden;
}

.tpos-cd-event-header {
    text-align: center;
    margin-bottom: 40px;
    z-index: 10;
}

.tpos-cd-event-header h2 {
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 15px 0;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.tpos-cd-event-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.tpos-cd-event-image {
    width: 100%;
    max-width: 400px;
    max-height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpos-cd-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   COLUMNA DERECHA - DETALLES DE COMPRA
   ======================================== */

.tpos-cd-right {
    flex: 0 0 50%;
    background: white;
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.05);
}

.tpos-cd-section {
    margin-bottom: 30px;
}

.tpos-cd-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

/* Productos */
.tpos-cd-products-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tpos-cd-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #4a12cd;
    border-radius: 8px;
    border-left: 0px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.tpos-cd-product-name {
    font-weight: 600;
    color: #fff;
    flex: 1;
}

.tpos-cd-product-qty {
    color: #fff;
    margin: 0 12px;
    font-size: 13px;
    font-weight: 500;
}

.tpos-cd-product-price {
    font-weight: 700;
    color: #fff;
    font-size: 15px;
    min-width: 80px;
    text-align: right;
}

/* Detalles genéricos */
.tpos-cd-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tpos-cd-detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    padding: 8px 0;
}

.tpos-cd-detail-label {
    font-weight: 500;
}

.tpos-cd-detail-value {
    color: #333;
    font-weight: 500;
}

/* Advertencia DataFono */
.tpos-cd-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    font-size: 14px;
    color: #333;
    text-align: center;
}

.tpos-cd-warning p {
    margin: 0;
}

.tpos-cd-warning strong {
    color: #ff6b35;
    font-weight: 600;
}

/* Separador */
.tpos-cd-separator {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 20px 0;
}

/* Sección de Checkout */
.tpos-cd-checkout-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    margin-top: 20px;
}

.tpos-cd-checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #667eea;
}

.tpos-cd-amount {
    color: #667eea;
    font-size: 24px;
}

/* Cliente */
.tpos-cd-checkout-customer {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.tpos-cd-checkout-customer p {
    margin: 0;
    font-size: 14px;
    color: #0056b3;
    font-weight: 500;
}

.tpos-cd-customer-email {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.8;
}

#tpos-cd-customer-confirmation {
    color: #ffffff;
    background: none;
}

/* Método de pago */
.tpos-cd-payment-method {
    text-align: center;
    font-size: 14px;
    color: #666;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.tpos-cd-payment-method p {
    margin: 0;
}

.tpos-cd-payment-method strong {
    color: #333;
    font-weight: 600;
}

/* QR para Bold */
.tpos-cd-qr-section {
    text-align: center;
    padding: 20px;
    background: white;
    border: 1px dashed #667eea;
    border-radius: 8px;
    margin-top: 20px;
}

.tpos-cd-qr-instructions {
    font-size: 13px;
    color: #666;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.tpos-cd-qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.tpos-cd-qr-container img {
    max-width: 200px;
    height: auto;
}

.tpos-cd-qr-note {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.tpos-cd-qr-note strong {
    color: #333;
}

/* Orden completada */
.tpos-cd-order-complete {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin-top: 30px;
}

.tpos-cd-success {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tpos-cd-checkmark {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 15px;
    animation: popIn 0.4s ease-out;
}

@keyframes popIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.tpos-cd-success h3 {
    font-size: 28px;
    color: #155724;
    margin: 0 0 15px 0;
}

.tpos-cd-order-id {
    font-size: 24px;
    font-weight: 700;
    color: #0c5460;
    margin: 0 0 10px 0;
}

.tpos-cd-order-message {
    font-size: 16px;
    color: #0c5460;
    margin: 0;
    opacity: 0.9;
}

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

@media (max-width: 1200px) {
    .tpos-cd-event-header h1 {
        font-size: 32px;
    }

    .tpos-cd-event-image {
        max-width: 300px;
        max-height: 400px;
    }

    .tpos-cd-right {
        padding: 30px;
    }
}

@media (max-width: 900px) {
    .tpos-cd-container {
        flex-direction: column;
    }

    .tpos-cd-left,
    .tpos-cd-right {
        flex: 0 0 auto;
        width: 100%;
    }

    .tpos-cd-left {
        min-height: 40vh;
        padding: 30px 20px;
    }

    .tpos-cd-right {
        min-height: 60vh;
    }

    .tpos-cd-event-header h1 {
        font-size: 24px;
    }

    .tpos-cd-event-image {
        max-width: 250px;
        max-height: 350px;
    }
}

@media (max-width: 600px) {
    .tpos-cd-left {
        min-height: 35vh;
        padding: 20px;
    }

    .tpos-cd-right {
        min-height: 65vh;
        padding: 20px;
    }

    .tpos-cd-event-header h2 {
        font-size: 14px;
    }

    .tpos-cd-event-header h1 {
        font-size: 18px;
    }

    .tpos-cd-event-image {
        max-width: 200px;
        max-height: 300px;
    }

    .tpos-cd-checkout-total {
        font-size: 16px;
    }

    .tpos-cd-amount {
        font-size: 20px;
    }

    .tpos-cd-section h3 {
        font-size: 12px;
    }

    .tpos-cd-product-item {
        font-size: 12px;
    }
}