/* ===== CHECKOUT SVINUM - CSS COMPLETO ===== */

:root {
    --primary-color: #000;
    --secondary-color: #666;
    --accent-color: #28a745;
    --danger-color: #dc3545;
    --light-gray: #f8f9fa;
    --border-light: #f0f0f0;
    --border-medium: #e0e0e0;
    --border-dark: #ddd;
    --shadow-light: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-heavy: 0 10px 30px rgba(0,0,0,0.2);
    --transition-fast: 0.3s ease;
    --transition-medium: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s ease;
    --shopify-purple: #5a31f4;
    --paypal-blue: #0070ba;
    --google-blue: #4285f4;
}

/* ===== LAYOUT PRINCIPAL ===== */
.checkout-main {
    background: #fafafa;
    min-height: 100vh;
    padding: 40px 0;
}

.checkout-main .container {
    max-width: 1200px;
}

/* ===== BARRA DE PROGRESO ===== */
.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    padding: 20px 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-medium);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.progress-step.active .step-number {
    background: var(--primary-color);
    color: white;
}

.progress-step span {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.progress-step.active span {
    color: var(--primary-color);
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--border-medium);
    margin: 0 20px;
    transition: background var(--transition-fast);
}

.progress-line.active {
    background: var(--primary-color);
}

/* ===== SECCIONES DEL CHECKOUT ===== */
.checkout-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.checkout-section:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-light);
}

.section-header {
    margin-bottom: 25px;
}

.section-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    position: relative;
}

.section-header h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

/* ===== PAGO EXPRESS ===== */
.express-checkout h3 {
    text-align: center;
    margin-bottom: 25px;
}

.express-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.express-btn {
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: none;
}

.express-btn.shopify-pay {
    background: var(--shopify-purple);
    color: white;
}

.express-btn.shopify-pay:hover {
    background: #4c28d4;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.express-btn.paypal {
    background: var(--paypal-blue);
    color: white;
}

.express-btn.paypal:hover {
    background: #005ea6;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.express-btn.google-pay {
    background: var(--google-blue);
    color: white;
}

.express-btn.google-pay:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.or-divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
}

.or-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-medium);
}

.or-divider span {
    background: white;
    padding: 0 20px;
    color: var(--secondary-color);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ===== FORMULARIOS ===== */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display:flex;
    gap:20px;
    flex-wrap:wrap;  
}

.form-row .form-group{
    flex:1 1 0;           
    min-width:0;             
}

.form-row .form-group.col-md-4 {
    grid-column: span 1;
}

.form-group label {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-control {
    padding: 15px;
    border: 2px solid var(--border-medium);
    border-radius: 8px;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
    outline: none;
}

.form-control::placeholder {
    color: #999;
}

.form-text {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-medium);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.form-check-input:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* ===== OPCIONES DE ENVÍO ===== */
.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shipping-option {
    border: 2px solid var(--border-medium);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.shipping-option:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.shipping-option.selected {
    border-color: var(--primary-color);
    background: rgba(0,0,0,0.02);
}

.shipping-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.shipping-option label {
    cursor: pointer;
    width: 100%;
    margin: 0;
}

.option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.option-name {
    font-weight: 600;
    color: var(--primary-color);
}

.option-time {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.option-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* ===== MÉTODOS DE PAGO ===== */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-method {
    border: 2px solid var(--border-medium);
    border-radius: 8px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.payment-method:hover {
    border-color: var(--primary-color);
}

.payment-method.selected {
    border-color: var(--primary-color);
    background: rgba(0,0,0,0.02);
}

.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.payment-method label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-weight: 500;
    color: var(--primary-color);
}

.payment-method i {
    font-size: 1.2rem;
}

.payment-method input[type="radio"] + label .klarna-icon {
    width: 40px;
    height: 36px;
    margin-right: 10px;
    vertical-align: middle;
}

/* ===== FORMULARIO DE TARJETA ===== */
.payment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-light);
}

.card-form .form-group {
    position: relative;
}

.card-icons {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
}

/* ===== CÓDIGO DE DESCUENTO ===== */
.discount-section {
    border: 1px dashed var(--border-medium);
    background: rgba(40, 167, 69, 0.05);
}

.discount-toggle {
    text-align: center;
}

.discount-toggle .btn-link {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    cursor: pointer;
}

.discount-toggle .btn-link:hover {
    text-decoration: underline;
}

.discount-form {
    margin-top: 20px;
}

.checkout-form .input-group {
    display: flex;
    border: 2px solid var(--border-medium);
    border-radius: 8px;
    overflow: hidden;
}

.checkout-form .input-group .form-control {
    border: none;
    border-radius: 0;
    flex: 1;
}

.checkout-form .input-group .btn {
    border: none;
    border-radius: 0;
    padding: 15px 25px;
    background: var(--primary-color);
    color: white;
    font-weight: 500;
    transition: background var(--transition-fast);
}

.checkout-form .input-group .btn:hover {
    background: #333;
}

.checkout-form .input-group .btn-outline-dark {
    background: transparent;
    color: var(--primary-color);
    border-left: 1px solid var(--border-medium);
}

.checkout-form .input-group .btn-outline-dark:hover {
    background: var(--primary-color);
    color: white;
}

/* ===== NAVEGACIÓN DEL CHECKOUT ===== */
.checkout-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.btn-back:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.btn-continue {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.btn-continue::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

.btn-continue:hover::before {
    left: 100%;
}

.btn-continue:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

/* ===== RESUMEN DEL PEDIDO ===== */
.order-summary {
    background: white;
    border-radius: 12px;
    padding: 30px 30px 15px 30px;
    border: 1px solid var(--border-light);
    position: sticky;
    top: 20px;
    height: fit-content;
    box-shadow: var(--shadow-light);
}

.order-summary h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.order-summary h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

/* ===== PRODUCTOS EN EL RESUMEN ===== */
.order-items {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-light);
}

.order-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
}

.order-item:hover {
    background: rgba(0,0,0,0.02);
    margin: 0 -15px;
    padding: 15px;
    border-radius: 8px;
}

.order-item:last-child {
    border-bottom: none;
}

.item-image {
    position: relative;
    flex-shrink: 0;
}

.item-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.item-quantity {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-details h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-color);
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.item-details p {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin: 0;
}

.item-price {
    font-weight: 600;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* ===== DESCUENTO MÓVIL ===== */
.mobile-discount {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-light);
}

/* ===== TOTALES DEL PEDIDO ===== */
.order-totals {
    padding-top: 20px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 8px 0;
    transition: background var(--transition-fast);
    border-radius: 4px;
}

.total-line:hover {
    background: var(--light-gray);
}

.total-line span:first-child {
    color: var(--secondary-color);
    font-weight: 500;
}

.total-line span:last-child {
    font-weight: 600;
    color: var(--primary-color);
}

.shipping-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.shipping-info i {
    cursor: help;
    color: var(--secondary-color);
}

.total-final {
    border-top: 2px solid var(--primary-color);
    margin-top: 15px;
    padding-top: 20px;
    font-size: 1.1rem;
    background: var(--light-gray);
    margin: 15px -15px 0;
    padding: 20px 15px 8px;
    border-radius: 8px;
}

.total-final span {
    font-weight: 700 !important;
    color: var(--primary-color) !important;
}

.total-final small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--secondary-color);
}

.tax-info {
    font-size: 0.85rem;
    color: var(--secondary-color);
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* ===== EFECTOS Y ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.checkout-section {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.checkout-section:nth-child(1) { animation-delay: 0.1s; }
.checkout-section:nth-child(2) { animation-delay: 0.2s; }
.checkout-section:nth-child(3) { animation-delay: 0.3s; }
.checkout-section:nth-child(4) { animation-delay: 0.4s; }
.checkout-section:nth-child(5) { animation-delay: 0.5s; }
.checkout-section:nth-child(6) { animation-delay: 0.6s; }

.order-summary {
    animation: slideIn 0.6s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

/* ===== ESTADOS DE ERROR ===== */
.form-control.error {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.error-message {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-message i {
    font-size: 0.9rem;
}

/* ===== ESTADOS DE CARGA ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== TOOLTIPS ===== */
.tooltip {
    font-size: 0.85rem;
}

.tooltip-inner {
    background: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .order-summary {
        position: static;
        margin-top: 30px;
    }
    
    .checkout-navigation {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .btn-continue {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .checkout-main {
        padding: 20px 0;
    }
    
    .checkout-progress {
        margin-bottom: 30px;
    }
    
    .progress-line {
        margin: 0 10px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .progress-step span {
        font-size: 0.8rem;
    }
    
    .checkout-section {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .section-header h3 {
        font-size: 1.2rem;
    }
    
    .express-buttons {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .order-summary {
        padding: 20px;
    }
    
    .order-item {
        gap: 12px;
    }
    
    .item-image img {
        width: 50px;
        height: 50px;
    }
    
    .item-details h4 {
        font-size: 0.9rem;
    }
    
    .mobile-discount {
        display: block;
    }
    
    .discount-section {
        display: none;
    }
    
    .c-form{
        order:2;
    }
    
    .c-resumen{
        order:1;
        margin-bottom:20px;
    }
    
    .total-final{
        width:100%;
        margin-inline:auto !important;
    }
}

@media (max-width: 576px) {
    .checkout-main .container {
        padding: 0 15px;
    }
    
    .checkout-section {
        padding: 15px;
        border-radius: 8px;
    }
    
    .order-summary {
        padding: 15px;
    }
    
    .express-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .form-control {
        padding: 12px;
    }
    
    .btn-continue {
        padding: 15px 25px;
        font-size: 0.95rem;
    }
    
    .total-final {
        margin: 15px -15px 0;
        padding: 15px;
    }
}

/* ===== ESTADOS ADICIONALES ===== */
.form-control:valid {
    border-color: var(--accent-color);
}

.shipping-option:focus-within,
.payment-method:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== MEJORAS DE ACCESIBILIDAD ===== */
.express-btn:focus,
.btn-continue:focus,
.btn-back:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.form-control:focus {
    outline: none;
}

/* ===== ANIMACIONES HOVER ADICIONALES ===== */
.order-item:hover .item-image img {
    transform: scale(1.05);
    transition: transform var(--transition-fast);
}

.shipping-option:hover .option-price {
    transform: scale(1.05);
    transition: transform var(--transition-fast);
}

.payment-method:hover i {
    transform: scale(1.1);
    transition: transform var(--transition-fast);
}

/* ─── Botón "quitar cupón" ─────────────────────────────── */
.btn-remove-coupon {
   all: unset;
   cursor: pointer;
   margin-left: 8px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 20px;
   height: 20px;
   border-radius: 50%;
   font-size: 0.7rem;
   line-height: 0;
   background: #e6e6e6;
   color: #555;
   transition: all 0.2s ease;
}

.btn-remove-coupon:hover {
   background: #dc3545;
   color: #fff;
   transform: scale(1.1);
}

.btn-remove-coupon:focus-visible {
   outline: 2px solid #dc3545;
   outline-offset: 2px;
}

.btn-remove-coupon:active {
   transform: scale(0.95);
}

/* Warning cuando no hay provincia seleccionada */
.shipping-warning {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 1px solid #ffc107;
  border-radius: 12px;
  margin: 16px 0;
}

.warning-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 193, 7, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #856404;
}

.warning-content h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #856404;
}

.warning-content p {
  margin: 0;
  font-size: 14px;
  color: #856404;
  line-height: 1.5;
}

/* Error cuando no hay métodos de envío - Versión compacta */
.shipping-error-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f8d7da;
  border: 1px solid #dc3545;
  border-radius: 8px;
  margin: 16px 0;
}

.error-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.error-icon {
  width: 40px;
  height: 40px;
  background: rgba(220, 53, 69, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc3545;
  flex-shrink: 0;
}

.error-text h4 {
  margin: 0 0 2px 0;
  font-size: 14px;
  font-weight: 600;
  color: #721c24;
}

.error-text p {
  margin: 0;
  font-size: 13px;
  color: #721c24;
  line-height: 1.4;
}

.btn-retry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-retry:hover {
  background: #c82333;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
  .shipping-warning {
    margin: 16px -16px;
    border-radius: 0;
  }
  
  .shipping-error-card {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    text-align: center;
    margin: 16px -16px;
    border-radius: 0;
  }
  
  .error-content {
    justify-content: center;
  }
  
  .btn-retry {
    align-self: center;
    width: auto;
  }
}

/* ===== DESCUENTOS Y CUPONES - ESTILO VERDE DESTACADO ===== */
.discount-line {
    padding: 10px 15px !important;
    margin: 6px 0;
    border-radius: 6px;
}

/* Texto del descuento en verde */
.discount-line span:first-child {
    color: #28a745 !important;
    font-weight: 600 !important;
}

/* Iconos de descuento */
.discount-line i {
    color: #28a745;
}

/* Monto del descuento (el valor negativo) */
.discount-line span:last-child {
    color: #28a745 !important;
    font-weight: 700 !important;
}

/* Nota pequeña de validación (primera compra) */
.discount-line small.text-muted {
    color: #6c757d !important;
    font-style: italic;
}

/* Botón de quitar cupón con estilo mejorado */
.discount-line .btn-remove-coupon {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid transparent;
}

.discount-line .btn-remove-coupon:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* Diferenciación visual entre descuento automático y cupón */
.auto-discount-line {
    border-left-color: #17a2b8; /* Azul para automáticos */
}

.auto-discount-line i {
    color: #28a745;
}

.coupon-line i {
    color: #28a745;
}

/* Animación de entrada para descuentos */
@keyframes slideInDiscount {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.discount-line {
    animation: slideInDiscount 0.4s ease-out;
}

/* Responsive: ajustar en móvil */
@media (max-width: 768px) {
    .discount-line {
        padding: 10px 12px !important;
        margin: 6px 0;
    }
    
    .discount-line span:last-child {
        font-size: 1rem;
    }
}