/* ========== COMPONENTES - MODALES, NOTIFICACIONES, FOOTER ========== */

/* Modal de confirmación de pedido - DISEÑO PREMIUM */
.order-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.4) 0%, rgba(75, 74, 74, 0.5) 100%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    padding: 1rem;
    animation: fadeInBackdrop 0.4s ease-out;
}

@keyframes fadeInBackdrop {
    from {
        backdrop-filter: blur(0px);
    }
    to {
        backdrop-filter: blur(8px);
    }
}

.order-confirmation-modal.active {
    opacity: 1;
    display: flex;
}

/* Contenido principal de confirmación */
.order-confirmation-content {
    background: linear-gradient(135deg, var(--blanco) 0%, rgba(255, 255, 255, 0.95) 100%);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    width: 100%;
    max-width: 520px;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.order-confirmation-modal.active .order-confirmation-content {
    transform: translateY(0) scale(1);
}

/* Fondo decorativo */
.order-confirmation-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Header con icono */
.confirmation-header {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.confirmation-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-icon {
    font-size: 5rem;
    color: #4caf50;
    animation: iconBounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.confirmation-icon-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes iconBounceIn {
    0% {
        transform: scale(0) rotateZ(-30deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1) rotateZ(0);
        opacity: 1;
    }
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
}

/* Sección principal */
.confirmation-main {
    position: relative;
    z-index: 1;
}

.order-confirmation-content h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #2c2c2c 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.5px;
    animation: slideDown 0.5s ease-out 0.1s backwards;
}

.confirmation-message {
    color: var(--gris-oscuro);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.7;
    animation: slideDown 0.5s ease-out 0.2s backwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pasos de estado */
.order-status-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(212, 175, 55, 0.03) 100%);
    border-radius: 16px;
    border: 1px solid rgba(76, 175, 80, 0.1);
    animation: slideDown 0.5s ease-out 0.3s backwards;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step-item.completed {
    opacity: 1;
}

.step-item.active {
    opacity: 1;
    transform: scale(1.1);
}

.step-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    background: var(--gris-claro);
    color: var(--gris-medio);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.step-item.completed .step-icon {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.step-item.active .step-icon {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 193, 7, 0.5);
    }
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gris-oscuro);
    text-align: center;
    transition: color 0.3s ease;
}

.step-item.completed .step-label {
    color: #2c2c2c;
}

.step-item.active .step-label {
    color: #2c2c2c;
}

.step-divider {
    flex: 0.5;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.3), transparent);
    margin: 0 0.5rem;
}

/* Número de referencia */
.order-reference {
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
    border: 2px solid rgba(76, 175, 80, 0.2);
    border-radius: 12px;
    animation: slideDown 0.5s ease-out 0.4s backwards;
}

.reference-label {
    font-size: 0.85rem;
    color: var(--gris-medio);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reference-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4caf50;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

/* Información de contacto mejorada */
.contact-info {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    animation: slideDown 0.5s ease-out 0.5s backwards;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(55, 212, 126, 0.08) 0%, rgba(0, 255, 128, 0.212) 100%);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(76, 175, 80, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.contact-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--verde-oscuro);
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(212, 168, 85, 0.3);
}

.contact-detail {
    flex: 1;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--gris-medio);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 0.95rem;
    color: var(--negro);
    font-weight: 600;
}

/* Botón de acción */
.confirmation-actions {
    margin-top: 2rem;
    animation: slideDown 0.5s ease-out 0.6s backwards;
}

.back-to-home-btn {
    background: var(--verde-oscuro);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(85, 212, 123, 0.3);
    position: relative;
    overflow: hidden;
}

.back-to-home-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.back-to-home-btn:hover::before {
    left: 100%;
}

.back-to-home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 168, 85, 0.4);
}

.back-to-home-btn:active {
    transform: translateY(-1px);
}

/* Responsivo para tablets */
@media (max-width: 768px) {
    .order-confirmation-content {
        padding: 1.75rem 1.5rem;
        border-radius: 16px;
        max-width: 90%;
    }

    .order-confirmation-content h2 {
        font-size: 1.6rem;
    }

    .confirmation-message {
        font-size: 0.95rem;
    }

    .confirmation-icon {
        font-size: 4rem;
    }

    .order-status-steps {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }

    .step-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin: 1.5rem 0;
    }

    .back-to-home-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Responsivo para móviles pequeños */
@media (max-width: 480px) {
    .order-confirmation-modal {
        padding: 0.5rem;
    }

    .order-confirmation-content {
        padding: 1.5rem 1rem;
        border-radius: 14px;
        max-width: 95%;
    }

    .order-confirmation-content h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .confirmation-message {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .confirmation-icon {
        font-size: 3.5rem;
    }

    .confirmation-icon-glow {
        width: 100px;
        height: 100px;
    }

    .order-status-steps {
        padding: 1rem;
        margin: 1.25rem 0;
        gap: 0.75rem;
    }

    .step-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .step-divider {
        flex: 0.3;
        height: 1.5px;
        margin: 0 0.25rem;
    }

    .order-reference {
        margin: 1.25rem 0;
        padding: 0.75rem;
    }

    .reference-label {
        font-size: 0.8rem;
    }

    .reference-number {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin: 1.25rem 0;
    }

    .contact-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .contact-label {
        font-size: 0.7rem;
    }

    .contact-value {
        font-size: 0.9rem;
    }

    .confirmation-actions {
        margin-top: 1.5rem;
    }

    .back-to-home-btn {
        padding: 0.85rem 1.25rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }
}


/* Notificaciones del carrito */
.cart-notification {
    background: var(--menta-pastel);
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--negro);
    padding: 1.1rem 1.2rem;
    border-radius: var(--borde-radius);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 3001;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.cart-notification.notification-success {
    background: var(--menta-pastel);
    color: var(--negro);
}

.cart-notification.notification-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cart-notification p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

/* Footer */
.footer {
    background: linear-gradient(to right, var(--negro), var(--negro-claro));
    color: var(--blanco);
    text-align: center;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
    position: relative;
    width: 100%;
    box-shadow: 0px -3px 10px rgba(0, 0, 0, 0.2);
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-version {
    font-size: 14px;
    opacity: 0.8;
}

.footer-text {
    font-size: 14px;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

/* Botón flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: #075E54;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}
/* ========== IMAGEN DE MONEDA - ZELLE ========== */

.currency-icon {
    display: inline-block;
    height: 1em;
    width: auto;
    vertical-align: -0.125em;
    margin: 0 0.2rem;
    object-fit: contain;
}

/* Variantes de tamaño para diferentes contextos */

/* Para precios normales en productos */
.currency-icon.price-sm {
    height: 0.9em;
}

/* Para precios grandes en detalle */
.currency-icon.price-lg {
    height: 1.1em;
    margin: 0 0.25rem;
}

/* Para best-sellers */
.currency-icon.price-xs {
    height: 0.8em;
}