/* ========================================
   CARRITO - DISEÑO MODERNO CON PALETA TERROSO Y FRESCO
   ======================================== */

/* Estilos base para el layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#contenedor-carrito {
    flex: 1;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 200px); /* Asegurar altura mínima */
}

/* Cuando se muestra el mensaje de éxito */
body:has(#mensaje-exito:not([style*="display: none"])) {
    min-height: 100vh;
}

#mensaje-exito {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 200px);
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 600px;
    width: 90%;
    border: 1px solid rgba(46, 139, 87, 0.1);
    position: relative;
}

#mensaje-exito::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #66BB6A, #81C784);
}

#upper-side {
    background: linear-gradient(135deg, #2E8B57 0%, #3CB371 50%, #20B2AA 100%);
    color: white;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#upper-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

#upper-side i {
    color: #FFD700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

#status {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
}

#lower-side {
    padding: 3rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

#message {
    color: #2c2c2c;
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 500;
}

#contBtn {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

#contBtn::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 0.5s;
}

#contBtn:hover {
    background: linear-gradient(135deg, #45a049 0%, #5cb85c 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.4);
}

#contBtn:hover::before {
    left: 100%;
}

#contBtn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

/* Alertas */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-info i {
    color: #17a2b8;
}

.alert-dark {
    background: rgba(60, 60, 60, 0.1);
    color: var(--color-charcoal);
    border: 1px solid rgba(60, 60, 60, 0.2);
}

/* Título del carrito */
#titulo {
    color: var(--color-charcoal);
    font-weight: 700;
    font-family: 'Merriweather', serif;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(60, 60, 60, 0.1);
}

/* Estilos para el header del carrito */
.products-title {
    color: var(--color-charcoal);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(60, 60, 60, 0.1);
}

.products-title i {
    color: #28a745;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.products-subtitle {
    color: var(--color-charcoal);
    opacity: 0.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Contenedor de productos del carrito */
#Carrito-Conteiner {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    border: 1px solid rgba(148, 93, 96, 0.1);
}

/* Item individual del carrito */
.cart-item {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(98, 110, 96, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--color-herb);
}

/* Imagen del producto en el carrito */
.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Información del producto */
.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cart-item-price {
    color: var(--color-terracotta);
    font-weight: 700;
    font-size: 1.2rem;
}

.cart-item-quantity {
    color: var(--color-herb);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Acciones del carrito */
.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 120px;
}

.cart-item-subtotal {
    text-align: right;
    color: var(--color-charcoal);
    font-size: 0.9rem;
}

.cart-item-subtotal strong {
    color: var(--color-terracotta);
}

/* Controles de cantidad */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--color-herb);
    background: white;
    color: var(--color-herb);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.quantity-btn:hover {
    background: var(--color-herb);
    color: white;
    transform: scale(1.1);
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: var(--color-charcoal);
    padding: 0.5rem;
    background: #f8f7f7;
    border-radius: 8px;
}

/* Botón eliminar */
.remove-btn {
    background: var(--color-chilli);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.remove-btn:hover {
    background: #8c372e;
    transform: translateY(-1px);
}

/* Aside del carrito (resumen) */
#aside {
    position: sticky;
    top: 2rem;
}

.summary-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(148, 93, 96, 0.1);
    overflow: hidden;
}

.summary-header {
    background: linear-gradient(135deg, var(--color-terracotta) 0%, #a66d70 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.summary-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.2rem;
}

.summary-body {
    padding: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(98, 110, 96, 0.1);
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-terracotta);
}

.summary-label {
    color: var(--color-charcoal);
    font-weight: 500;
}

.summary-value {
    color: var(--color-terracotta);
    font-weight: 600;
}

/* Botón confirmar pedido */
#confirmar-pedido-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 1.2rem 2rem;
    font-weight: 700;
    font-size: 1.2rem;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
}

#confirmar-pedido-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(40, 167, 69, 0.4);
    color: white;
}

#confirmar-pedido-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Carrito vacío */
#carrito-vacio {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    padding: 6rem 3rem;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(148, 93, 96, 0.1);
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Layout dinámico para carrito vacío */
#columna-principal.col-12 #carrito-vacio {
    max-width: 1000px;
    margin: 3rem auto;
}

/* Asegurar que el carrito vacío se vea bien en todos los tamaños */
@media (min-width: 1200px) {
    #columna-principal.col-12 #carrito-vacio {
        max-width: 1200px;
        padding: 8rem 4rem;
    }
}

#carrito-vacio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--color-herb) 0%, var(--color-terracotta) 100%);
}

#carrito-vacio i {
    font-size: 8rem;
    color: var(--color-herb);
    margin-bottom: 2rem;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

#carrito-vacio h3 {
    color: var(--color-charcoal);
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#carrito-vacio p {
    color: var(--color-charcoal);
    opacity: 0.8;
    margin-bottom: 3rem;
    font-size: 1.3rem;
    line-height: 1.7;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.empty-cart-btn {
    background: linear-gradient(135deg, var(--color-terracotta) 0%, #a66d70 100%);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 1.2rem 3rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 6px 20px rgba(148, 93, 96, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.empty-cart-btn:hover {
    background: linear-gradient(135deg, #7a484b 0%, #945d60 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(148, 93, 96, 0.5);
    text-decoration: none;
}

.empty-cart-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(148, 93, 96, 0.3);
}

/* Mejoras adicionales para el carrito vacío */
#carrito-vacio {
    animation: fadeInUp 0.8s ease-out;
}

/* Efecto de hover en el ícono */
#carrito-vacio:hover i {
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* Mejora del botón en focus */
.empty-cart-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(148, 93, 96, 0.3);
}

/* Modal de confirmación */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background: linear-gradient(135deg, var(--color-terracotta) 0%, #a66d70 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
    font-size: 1.3rem;
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 2rem;
}

/* Checkboxes personalizados */
.form-check-input:checked {
    background-color: var(--color-herb);
    border-color: var(--color-herb);
}

.form-check-label {
    color: var(--color-charcoal);
    font-weight: 500;
}

/* Formulario de dirección */
.form-label {
    color: var(--color-charcoal);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e8e6e6;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-herb);
    box-shadow: 0 0 0 3px rgba(98, 110, 96, 0.1);
    outline: none;
}

/* Botones del modal */
.modal-footer .btn-primary,
.modal-footer .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.modal-footer .btn-primary:hover,
.modal-footer .btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    color: white;
}

.modal-footer .btn-secondary {
    background: var(--color-charcoal);
    border-color: var(--color-charcoal);
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 500;
}

.modal-footer .btn-secondary:hover {
    background: #232323;
    border-color: #232323;
}

/* Mensaje de éxito */
#mensaje-exito {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 500px;
    margin: 2rem auto;
}

#upper-side {
    background: linear-gradient(135deg, var(--color-herb) 0%, #7a8a7a 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

#upper-side i {
    color: white;
    margin-bottom: 1rem;
}

#status {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

#lower-side {
    padding: 2rem;
    text-align: center;
}

#message {
    color: var(--color-charcoal);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

#contBtn {
    background: var(--color-terracotta);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

#contBtn:hover {
    background: #7a484b;
    color: white;
    transform: translateY(-1px);
}

/* Alertas */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-info i {
    color: #17a2b8;
}

.alert-dark {
    background: rgba(60, 60, 60, 0.1);
    color: var(--color-charcoal);
    border: 1px solid rgba(60, 60, 60, 0.2);
}

/* Tablet styles */
@media (max-width: 1024px) and (min-width: 769px) {
    #carrito-vacio {
        padding: 5rem 2.5rem;
        min-height: 380px;
    }
    
    #carrito-vacio i {
        font-size: 6rem;
    }
    
    #carrito-vacio h3 {
        font-size: 2.2rem;
    }
    
    #carrito-vacio p {
        font-size: 1.2rem;
        max-width: 450px;
    }
    
    .empty-cart-btn {
        padding: 1.1rem 2.5rem;
        font-size: 1.1rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    #contenedor-carrito {
        padding: 1rem 0;
    }
    
    #Carrito-Conteiner {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 16px;
    }
    
    /* Mejoras específicas para las cards del carrito en móvil */
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem;
        border-radius: 16px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(98, 110, 96, 0.15);
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        position: relative;
        overflow: hidden;
    }
    
    .cart-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--color-herb) 0%, var(--color-terracotta) 100%);
    }
    
    .cart-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
        border-color: var(--color-herb);
    }
    
    /* Imagen del producto mejorada */
    .cart-item-image {
        width: 100%;
        height: 120px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.8);
        object-fit: cover;
        margin-bottom: 0.5rem;
    }
    
    /* Información del producto mejorada */
    .cart-item-info {
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .cart-item-title {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--color-charcoal);
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    .cart-item-quantity {
        font-size: 1rem;
        color: var(--color-herb);
        font-weight: 600;
        margin-bottom: 0.75rem;
        padding: 0.25rem 0.75rem;
        background: rgba(98, 110, 96, 0.1);
        border-radius: 8px;
        display: inline-block;
    }
    
    .cart-item-price {
        font-size: 1.3rem;
        font-weight: 800;
        color: var(--color-terracotta);
        margin-bottom: 1rem;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    /* Controles de cantidad mejorados */
    .quantity-controls {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin: 1rem 0;
        padding: 0.5rem;
        background: rgba(98, 110, 96, 0.05);
        border-radius: 12px;
        border: 1px solid rgba(98, 110, 96, 0.1);
    }
    
    .quantity-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 2px solid var(--color-herb);
        background: white;
        color: var(--color-herb);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: bold;
        font-size: 1.1rem;
        box-shadow: 0 2px 8px rgba(98, 110, 96, 0.2);
    }
    
    .quantity-btn:hover {
        background: var(--color-herb);
        color: white;
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(98, 110, 96, 0.3);
    }
    
    .quantity-display {
        min-width: 50px;
        text-align: center;
        font-weight: 700;
        color: var(--color-charcoal);
        padding: 0.75rem;
        background: white;
        border-radius: 10px;
        border: 2px solid rgba(98, 110, 96, 0.2);
        font-size: 1.1rem;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }
    
    /* Acciones del carrito mejoradas */
    .cart-item-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(98, 110, 96, 0.1);
    }
    
    .cart-item-subtotal {
        text-align: center;
        color: var(--color-charcoal);
        font-size: 1rem;
        font-weight: 600;
        padding: 0.75rem;
        background: rgba(98, 110, 96, 0.05);
        border-radius: 10px;
        border: 1px solid rgba(98, 110, 96, 0.1);
    }
    
    .cart-item-subtotal strong {
        color: var(--color-terracotta);
        font-size: 1.1rem;
    }
    
    /* Botón eliminar mejorado */
    .remove-btn {
        background: linear-gradient(135deg, var(--color-chilli) 0%, #c82333 100%);
        color: white;
        border: none;
        border-radius: 12px;
        padding: 0.875rem 1.5rem;
        font-weight: 600;
        transition: all 0.3s ease;
        cursor: pointer;
        font-size: 1rem;
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .remove-btn:hover {
        background: linear-gradient(135deg, #8c372e 0%, #a71e2a 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
        color: white;
    }
    
    .remove-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    }
    
    .remove-btn i {
        font-size: 1.1rem;
    }
    
    #aside {
        margin-top: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    /* Mejoras para pantallas muy pequeñas */
    @media (max-width: 480px) {
        .cart-item {
            padding: 1rem;
            gap: 0.75rem;
        }
        
        .cart-item-image {
            width: 100%;
            height: 100px;
        }
        
        .cart-item-title {
            font-size: 1.1rem;
        }
        
        .cart-item-price {
            font-size: 1.2rem;
        }
        
        .quantity-controls {
            gap: 0.5rem;
            padding: 0.4rem;
        }
        
        .quantity-btn {
            width: 32px;
            height: 32px;
            font-size: 1rem;
        }
        
        .quantity-display {
            min-width: 45px;
            padding: 0.6rem;
            font-size: 1rem;
        }
        
        .remove-btn {
            padding: 0.75rem 1.25rem;
            font-size: 0.95rem;
        }
    }
    
    /* Mejoras para pantallas extra pequeñas */
    @media (max-width: 375px) {
        .cart-item {
            padding: 0.875rem;
            gap: 0.6rem;
        }
        
        .cart-item-image {
            width: 100%;
            height: 90px;
        }
        
        .cart-item-title {
            font-size: 1rem;
        }
        
        .cart-item-quantity {
            font-size: 0.9rem;
            padding: 0.2rem 0.6rem;
        }
        
        .cart-item-price {
            font-size: 1.1rem;
        }
        
        .quantity-controls {
            gap: 0.4rem;
            padding: 0.3rem;
        }
        
        .quantity-btn {
            width: 30px;
            height: 30px;
            font-size: 0.9rem;
        }
        
        .quantity-display {
            min-width: 40px;
            padding: 0.5rem;
            font-size: 0.9rem;
        }
        
        .remove-btn {
            padding: 0.6rem 1rem;
            font-size: 0.9rem;
        }
        
        .cart-item-subtotal {
            font-size: 0.9rem;
            padding: 0.6rem;
        }
    }
    
    #carrito-vacio {
        padding: 4rem 2rem;
        min-height: 350px;
        margin: 2rem 0;
    }
    
    #carrito-vacio i {
        font-size: 5rem;
        margin-bottom: 1.5rem;
    }
    
    #carrito-vacio h3 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    #carrito-vacio p {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
        max-width: 100%;
    }
    
    .empty-cart-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Mensaje de éxito responsive */
    #mensaje-exito {
        margin: 2rem 1rem;
        max-width: 100%;
    }
    
    #upper-side {
        padding: 3rem 2rem;
    }
    
    #upper-side i {
        font-size: 80px !important;
    }
    
    #status {
        font-size: 1.5rem;
    }
    
    #lower-side {
        padding: 2rem;
    }
    
    #message {
        font-size: 1rem;
    }
    
    #contBtn {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading spinner */
.fa-spinner {
    color: var(--color-herb);
}

/* Links en el modal de login */
.links a {
    color: var(--color-terracotta);
    text-decoration: none;
    font-weight: 500;
}

.links a:hover {
    color: #7a484b;
    text-decoration: underline;
} 

/* Estilos para el modal de envío */
.modal-envio {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-envio .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-envio .modal-header {
    background: linear-gradient(135deg, #945D60 0%, #AF473C 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
    border-bottom: none;
}

.modal-envio .modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.modal-envio .modal-body {
    padding: 2rem;
    background-color: #f8f9fa;
}

.modal-envio .modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1.5rem 2rem;
    border-radius: 0 0 15px 15px;
}

/* Opciones de entrega */
.opciones-entrega {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.opciones-entrega .form-check {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.opciones-entrega .form-check:hover {
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

.opciones-entrega .form-check-input:checked + .form-check-label {
    font-weight: 600;
    color: #945D60;
}

.opciones-entrega .form-check-input[type="radio"]:checked {
    background-color: #945D60;
    border-color: #945D60;
}

.opciones-entrega .form-check-input[type="radio"]:focus {
    box-shadow: 0 0 0 0.2rem rgba(148, 93, 96, 0.25);
}

.opciones-entrega .form-check-label {
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin: 0;
}

.opciones-entrega .form-check-label i {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* Dirección guardada */
.direccion-guardada {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.direccion-guardada::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.direccion-guardada .form-check-label {
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.direccion-guardada .form-check-input:checked + .form-check-label {
    color: #FFD700;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.direccion-guardada .form-check-input:checked ~ .direccion-guardada-display {
    border-left-color: #FFD700;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.direccion-guardada-display {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.direccion-guardada-display i {
    color: #FFD700;
    margin-right: 0.5rem;
}

.direccion-guardada-display:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Información de envío */
.info-envio {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.info-envio .row {
    margin: 0;
}

.info-envio .col-6 {
    padding: 0.5rem;
}

.info-envio strong {
    color: #FFD700;
    font-size: 1.1rem;
}

.info-envio span {
    font-size: 1.2rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Formulario de dirección */
.formulario-direccion {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(148, 93, 96, 0.1);
}

.formulario-direccion h6 {
    color: #495057;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(148, 93, 96, 0.2);
    position: relative;
    display: flex;
    align-items: center;
}

.formulario-direccion h6 i {
    margin-right: 0.75rem;
    color: #945D60;
    font-size: 1.4rem;
}

.formulario-direccion .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    display: block;
    position: relative;
    padding-left: 0.75rem;
    letter-spacing: 0.5px;
    line-height: 1.2;
    min-height: 24px;
    display: flex;
    align-items: center;
}

.formulario-direccion .form-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: linear-gradient(135deg, #945D60 0%, #AF473C 100%);
    border-radius: 2px;
    margin-top: -1px;
}

.formulario-direccion .form-control {
    background-color: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 52px;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

.formulario-direccion .form-control:focus {
    background-color: #ffffff;
    border-color: #945D60;
    box-shadow: 0 0 0 0.2rem rgba(148, 93, 96, 0.15), 0 4px 12px rgba(148, 93, 96, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.formulario-direccion .form-control::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.formulario-direccion .form-control:valid {
    border-color: #28a745;
    background-color: #ffffff;
}

.formulario-direccion .form-control:invalid {
    border-color: #dc3545;
    background-color: #ffffff;
}

.formulario-direccion .form-control:hover {
    border-color: #945D60;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Ajustes de espaciado para alineación perfecta */
.formulario-direccion .row {
    margin-bottom: 1.5rem;
    align-items: end;
}

.formulario-direccion .row:last-child {
    margin-bottom: 0;
}

.formulario-direccion .col-6,
.formulario-direccion .col-12 {
    display: flex;
    flex-direction: column;
}

.formulario-direccion .mb-3 {
    margin-bottom: 1.5rem !important;
}

.formulario-direccion .mb-3:last-child {
    margin-bottom: 0 !important;
}

/* Ajuste específico para campos opcionales */
.formulario-direccion .form-control[placeholder*="opcional"] {
    height: 52px;
    border-color: #28a745;
}

.formulario-direccion .form-control[placeholder*="opcional"]:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15), 0 4px 12px rgba(40, 167, 69, 0.1);
}

/* Botones del modal */
.modal-envio .btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
}

.modal-envio .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.modal-envio .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.modal-envio .btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.modal-envio .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

/* Estilos específicos para los botones del modal footer */
.modal-envio .modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(148, 93, 96, 0.1);
}

.modal-envio .modal-footer .d-flex {
    gap: 1rem;
    align-items: flex-end;
    justify-content: space-between;
    display: flex;
    width: 100%;
}

.modal-envio .modal-footer .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem !important;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
    height: 48px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(50% - 0.5rem) !important;
    flex: 1 !important;
    line-height: 1 !important;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
    min-width: 140px;
    box-sizing: border-box;
    margin: 0;
}

.modal-envio .modal-footer .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
    height: 48px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-envio .modal-footer .btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.modal-envio .modal-footer .btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
    height: 48px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-envio .modal-footer .btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

/* Loading */
.loading-envio {
    text-align: center;
    padding: 2rem;
    color: #945D60;
}

.loading-envio i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Alertas */
.alerta-envio {
    margin-bottom: 1rem;
    font-weight: 500;
}

.alerta-envio .alert {
    border: none;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0;
    font-weight: 500;
}

.alerta-envio .alert-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-left: 4px solid #FFD700;
}

.alerta-envio .alert-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-left: 4px solid #FFD700;
}

.alerta-envio .alert-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
    border-left: 4px solid #FFD700;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-envio .modal-dialog {
        margin: 1rem;
    }
    
    .modal-envio .modal-body {
        padding: 1.5rem;
    }
    
    .opciones-entrega .form-check {
        padding: 0.75rem;
    }
    
    .info-envio .col-6 {
        padding: 0.25rem;
    }
    
    .info-envio strong,
    .info-envio span {
        font-size: 1rem;
    }
    
    .formulario-direccion {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .formulario-direccion .form-control {
        padding: 0.875rem;
        font-size: 0.95rem;
        height: 48px;
    }
    
    .formulario-direccion .form-label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        min-height: 22px;
    }
    
    /* Responsive para botones del modal footer */
    .modal-envio .modal-footer {
        padding: 1rem;
    }
    
    .modal-envio .modal-footer .d-flex {
        flex-direction: column;
        gap: 0.75rem;
        justify-content: center;
    }
    
    .modal-envio .modal-footer .btn {
        padding: 0.75rem 1rem;
        font-size: 0.95rem !important;
        height: 44px !important;
        width: 100% !important;
        line-height: 1 !important;
        white-space: normal;
        vertical-align: middle;
        min-width: auto;
    }
}

/* Animaciones */
.modal-envio .form-check,
.modal-envio .formulario-direccion,
.modal-envio .info-envio,
.modal-envio .direccion-guardada {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Estados de los checkboxes */
.opciones-entrega .form-check-input:checked {
    background-color: #945D60;
    border-color: #945D60;
}

.direccion-guardada .form-check-input:checked {
    background-color: #FFD700;
    border-color: #FFD700;
}

/* Mejoras en el espaciado */
.modal-envio .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.modal-envio .col-6,
.modal-envio .col-12 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
} 

/* Estilos específicos para cuando el mensaje de éxito está visible */
#mensaje-exito:not([style*="display: none"]) {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 200px);
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 600px;
    border: 1px solid rgba(46, 139, 87, 0.1);
    position: relative;
}

#mensaje-exito:not([style*="display: none"])::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #66BB6A, #81C784);
}

#mensaje-exito:not([style*="display: none"]) #upper-side {
    background: linear-gradient(135deg, #2E8B57 0%, #3CB371 50%, #20B2AA 100%);
    color: white;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#mensaje-exito:not([style*="display: none"]) #upper-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

#mensaje-exito:not([style*="display: none"]) #upper-side i {
    color: #FFD700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

#mensaje-exito:not([style*="display: none"]) #status {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
}

#mensaje-exito:not([style*="display: none"]) #lower-side {
    padding: 3rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

#mensaje-exito:not([style*="display: none"]) #message {
    color: #2c2c2c;
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 500;
}

#mensaje-exito:not([style*="display: none"]) #contBtn {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

#mensaje-exito:not([style*="display: none"]) #contBtn::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 0.5s;
}

#mensaje-exito:not([style*="display: none"]) #contBtn:hover {
    background: linear-gradient(135deg, #45a049 0%, #5cb85c 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.4);
}

#mensaje-exito:not([style*="display: none"]) #contBtn:hover::before {
    left: 100%;
}

#mensaje-exito:not([style*="display: none"]) #contBtn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

/* ========================================
   RESPONSIVE DESIGN PARA DESKTOP - MENSAJE DE ÉXITO
   ======================================== */

/* Desktop - Pantallas grandes */
@media (min-width: 1200px) {
    #mensaje-exito {
        max-width: 1000px;
        width: 85%;
        min-height: 500px;
        flex-direction: row;
        align-items: stretch;
    }
    
    #mensaje-exito #upper-side {
        flex: 1;
        padding: 4rem 3rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-width: 400px;
    }
    
    #mensaje-exito #upper-side i {
        font-size: 120px !important;
        margin-bottom: 1.5rem;
    }
    
    #mensaje-exito #status {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    #mensaje-exito #upper-side p {
        font-size: 1.2rem !important;
    }
    
    #mensaje-exito #lower-side {
        flex: 1;
        padding: 4rem 3rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-width: 400px;
    }
    
    #mensaje-exito #message {
        font-size: 1.2rem;
        line-height: 1.6;
        margin-bottom: 2.5rem;
        text-align: center;
        max-width: 450px;
    }
    
    #mensaje-exito #contBtn {
        font-size: 1.1rem;
        padding: 0.9rem 2rem;
        min-width: 220px;
    }
}

/* Desktop extra grande */
@media (min-width: 1600px) {
    #mensaje-exito {
        max-width: 1200px;
        width: 80%;
        min-height: 600px;
        flex-direction: row;
        align-items: stretch;
    }
    
    #mensaje-exito #upper-side {
        flex: 1;
        padding: 5rem 4rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-width: 500px;
    }
    
    #mensaje-exito #upper-side i {
        font-size: 140px !important;
        margin-bottom: 2rem;
    }
    
    #mensaje-exito #status {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }
    
    #mensaje-exito #upper-side p {
        font-size: 1.4rem !important;
    }
    
    #mensaje-exito #lower-side {
        flex: 1;
        padding: 5rem 4rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-width: 500px;
    }
    
    #mensaje-exito #message {
        font-size: 1.3rem;
        line-height: 1.7;
        margin-bottom: 3rem;
        text-align: center;
        max-width: 550px;
    }
    
    #mensaje-exito #contBtn {
        font-size: 1.2rem;
        padding: 1rem 2.5rem;
        min-width: 250px;
    }
}

/* Tablet - Pantallas medianas */
@media (min-width: 768px) and (max-width: 1199px) {
    #mensaje-exito {
        max-width: 700px;
        width: 85%;
        min-height: 550px;
    }
    
    #mensaje-exito #upper-side {
        padding: 4.5rem 3.5rem;
    }
    
    #mensaje-exito #upper-side i {
        font-size: 130px !important;
        margin-bottom: 1.8rem;
    }
    
    #mensaje-exito #status {
        font-size: 2.2rem;
    }
    
    #mensaje-exito #upper-side p {
        font-size: 1.2rem !important;
    }
    
    #mensaje-exito #lower-side {
        padding: 3.5rem;
    }
    
    #mensaje-exito #message {
        font-size: 1.25rem;
        line-height: 1.65;
        margin-bottom: 2.8rem;
    }
    
    #mensaje-exito #contBtn {
        font-size: 1.1rem;
        padding: 0.9rem 2.2rem;
        min-width: 220px;
    }
}

/* Mejoras para el mensaje de confirmación - Asegurar visibilidad */
#mensaje-exito {
    position: relative;
    z-index: 1000;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Animación de entrada mejorada para el mensaje de éxito */
#mensaje-exito.animated {
    animation: slideInFromTop 0.8s ease-out;
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Asegurar que el mensaje esté siempre visible en la parte superior */
body:has(#mensaje-exito:not([style*="display: none"])) {
    scroll-behavior: smooth;
}

/* Mejorar la visibilidad del mensaje en móvil */
@media (max-width: 768px) {
    #mensaje-exito {
        margin-top: 1rem;
        margin-bottom: 1rem;
        width: 95%;
        max-width: none;
    }
    
    #mensaje-exito.animated {
        animation: slideInFromTopMobile 0.6s ease-out;
    }
}

@keyframes slideInFromTopMobile {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de pulso para el botón de "Ver Mis Pedidos" */
#contBtn.pulse-animation {
    animation: pulseButton 2s infinite;
}

@keyframes pulseButton {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(46, 139, 87, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
    }
}

/* Mejorar la visibilidad del mensaje de éxito */
#mensaje-exito:not([style*="display: none"]) {
    position: sticky;
    top: 0;
    z-index: 1001;
} 